* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    color: #2d3748;
    line-height: 1.6;
}

/* Header Styles */
header {
  background: linear-gradient(135deg, #4a6fa5, #3a5a86);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Navigation Styles */
nav {
  background-color: #3a5a86;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
}

nav li {
  margin: 0 1.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #ffd166;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ffd166;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Container Styles */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.search-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.search-bar input {
  width: 70%;
  max-width: 500px;
  padding: 0.8rem 1.5rem;
  border: 2px solid #e1e5eb;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  border-color: #4a6fa5;
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.2);
}

.search-bar button {
  background-color: #4a6fa5;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0 1.5rem;
  margin-left: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-bar button:hover {
  background-color: #3a5a86;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }
  
  .books-grid {
    grid-template-columns: 1fr;
  }
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Logo Styling */
.header-logo {
  width: 100px;   /* Container 80px */
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
 /*background-color: rgba(255, 255, 255, 0.1); /* Transparan putih */
  padding: 8px;
  backdrop-filter: blur(5px); /* Efek blur untuk transparansi */
  /*border: 1px solid rgba(255, 255, 255, 0.2); /* Border transparan */
}

.header-logo img {
  width: 120%;
  height: 120%;
  object-fit: contain;
  filter: brightness(0.9); /* Sedikit gelapkan jika perlu */
}

.left-logo {
  margin-right: 2rem;
}

.right-logo {
  margin-left: 2rem;
}

/* Header Text */
.header-text {
  flex: 1;
  text-align: center;
}

/* Responsive Header */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  
  .header-logo {
    width: 60px;
    height: 60px;
    margin: 0.5rem 0;
  }
  
  .left-logo, .right-logo {
    margin: 0.5rem 0;
  }
  
  .header-text {
    margin: 1rem 0;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  header p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .header-logo {
    width: 50px;
    height: 50px;
  }
  
  header h1 {
    font-size: 1.8rem;
  }
}

/* Navigation Styles */
nav {
  background-color: #3a5a86;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
}

nav li {
  margin: 0 1.5rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #ffd166;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ffd166;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Login/User Button */
.user-menu {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.user-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.user-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Responsive Navigation */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav li {
    margin: 0.5rem 0;
  }
  
  .user-menu {
    position: static;
    transform: none;
    text-align: center;
    margin-top: 1rem;
  }
}

/* Breadcrumb */
.breadcrumb {
    background-color: white;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    color: #718096;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.breadcrumb a {
    color: #4a6fa5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #3a5a86;
    text-decoration: underline;
}

/* Main Content Styles */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Book Details Section */
.book-details {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Book Cover */
.book-cover-container {
    position: relative;
}

.book-cover-large {
    width: 100%;
    height: 450px;
    background: linear-gradient(135deg, #4a6fa5, #3a5a86);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(74, 111, 165, 0.3);
    position: relative;
    overflow: hidden;
}

.book-cover-large::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1));
}

.book-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ffd166;
    color: #2d3748;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(255, 209, 102, 0.3);
}

/* Book Info */
.book-info h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #2d3748;
    line-height: 1.3;
}

.book-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    color: #718096;
    font-size: 1rem;
    flex-wrap: wrap;
}

.book-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stars {
    color: #ffd166;
    font-size: 1.2rem;
}

.rating-text {
    color: #718096;
    font-weight: 600;
}

.book-description {
    margin-bottom: 2rem;
    color: #4a5568;
    font-size: 1.05rem;
}

.book-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-label {
    font-weight: 600;
    color: #2d3748;
}

.detail-value {
    color: #4a5568;
    text-align: right;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #4a6fa5, #3a5a86);
    color: white;
    box-shadow: 0 5px 15px rgba(74, 111, 165, 0.3);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 111, 165, 0.4);
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #edf2f7;
    transform: translateY(-2px);
}

.btn-favorite {
    background: #fff5f5;
    color: #e53e3e;
    border: 2px solid #fed7d7;
}

.btn-favorite:hover {
    background: #fed7d7;
}

/* Tabs Section */
.tabs-section {
    background: white;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
    background: #f7fafc;
}

.tab {
    padding: 1.25rem 2rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab:hover {
    color: #4a6fa5;
    background: #edf2f7;
}

.tab.active {
    border-bottom-color: #4a6fa5;
    color: #4a6fa5;
    background: white;
}

.tab-content {
    padding: 2.5rem;
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Reviews */
.review-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    align-items: center;
}

.review-author {
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #4a6fa5, #3a5a86);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.review-date {
    color: #718096;
    font-size: 0.9rem;
}

.review-content {
    color: #4a5568;
    line-height: 1.6;
}

/* Similar Books */
.similar-books {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.similar-books h2 {
    margin-bottom: 1.5rem;
    color: #2d3748;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.book-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    border-color: #4a6fa5;
}

.book-cover-small {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #4a6fa5, #3a5a86);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.book-cover-small::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1));
}

.book-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
    line-height: 1.4;
}

.book-card p {
    font-size: 0.9rem;
    color: #718096;
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #3a5a86, #2c3e50);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links a {
    color: white;
    margin: 0 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffd166;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #ffd166;
    transform: translateY(-3px);
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 992px) {
    .book-details {
        grid-template-columns: 1fr;
    }
    
    .book-cover-large {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .book-details-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .tabs-header {
        flex-direction: column;
    }
    
    .tab {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .books-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.25rem 0;
    }
    
    .book-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}