/* ===== Navbar Modern ===== */
.navbar-modern {
  background: rgba(26, 26, 46, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.8rem 0;
  transition: all 0.3s ease;
}

.navbar-modern .navbar-brand {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-modern .navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #1a1a2e;
}

.navbar-modern .navbar-brand .brand-text {
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-modern .nav-link {
  color: rgba(255, 255, 255, 0.7) !important;
  font-weight: 500;
  padding: 0.5rem 1.2rem !important;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.9rem;
}

.navbar-modern .nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

.navbar-modern .nav-link.active {
  color: #fff !important;
  background: rgba(79, 172, 254, 0.15);
}

.navbar-modern .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 4px;
}

.navbar-modern .btn-login {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border: none;
  color: #fff !important;
  font-weight: 700;
  padding: 0.5rem 1.5rem;
  border-radius: 12px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.25);
}

.navbar-modern .btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 172, 254, 0.35);
}

.navbar-modern .navbar-toggler {
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem;
  border-radius: 10px;
}

.navbar-modern .navbar-toggler:focus {
  box-shadow: none;
}

.navbar-modern .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-modern .dropdown-menu {
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.navbar-modern .dropdown-item {
  color: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.navbar-modern .dropdown-item:hover {
  background: rgba(79, 172, 254, 0.12);
  color: #fff;
}

.navbar-modern .dropdown-item i {
  margin-right: 8px;
  font-size: 1.1rem;
}

.navbar-modern .dropdown-divider {
  border-color: rgba(255, 255, 255, 0.08);
  margin: 0.3rem 0;
}

.navbar-modern .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a2e;
  font-size: 1rem;
  font-weight: 700;
}

/* ===== Hero Section ===== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 480px;
  display: flex;
  align-items: center;
  border-radius: 0 0 40px 40px;
  overflow: hidden;
  margin-top: -1.5rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 172, 254, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroGlow 6s ease-in-out infinite alternate;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 201, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroGlow 8s ease-in-out infinite alternate-reverse;
}

@keyframes heroGlow {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }

  100% {
    transform: translate(30px, -20px) scale(1.2);
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions .btn {
  padding: 12px 32px;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hero-actions .btn-primary {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border: none;
  color: #1a1a2e;
  box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

.hero-actions .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(79, 172, 254, 0.4);
}

.hero-actions .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.hero-actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
  color: #fff !important;
}

.hero-illustration {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration-inner {
  width: 320px;
  height: 320px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: floatIcon 6s ease-in-out infinite;
}

@keyframes floatIcon {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

.hero-illustration-inner i {
  font-size: 8rem;
  color: rgba(79, 172, 254, 0.3);
}

/* ===== Stats Counter Section ===== */
.stats-section {
  position: relative;
  margin-top: -60px;
  z-index: 10;
}

.stats-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.stats-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.stats-icon.blue {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0284c7;
}

.stats-icon.green {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #16a34a;
}

.stats-icon.orange {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #ea580c;
}

.stats-icon.purple {
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  color: #7c3aed;
}

.stats-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.2;
}

.stats-label {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

/* ===== Section Titles ===== */
.section-title-wrapper {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a2e;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-radius: 4px;
}

.section-subtitle {
  color: #64748b;
  font-size: 1rem;
  margin-top: 0.8rem;
}

/* ===== Category Filter ===== */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 2rem;
}

.category-pill {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.category-pill:hover {
  border-color: #4facfe;
  color: #4facfe;
  background: #f0f7ff;
  transform: translateY(-2px);
}

.category-pill.active {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

/* ===== Book Cards ===== */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.book-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.book-card-cover {
  position: relative;
  height: 260px;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  transition: all 0.5s ease;
}

.book-card:hover .book-card-cover {
  transform: scale(1.05);
}

.book-card-cover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.book-card:hover .book-card-cover::after {
  opacity: 1;
}

.book-card-year {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a1a2e;
  z-index: 2;
}

.book-card-body {
  padding: 18px 20px 20px;
}

.book-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-card-author {
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 12px;
}

.book-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.book-card-stock {
  font-size: 0.8rem;
  color: #64748b;
}

.book-card-stock .available {
  color: #16a34a;
  font-weight: 700;
}

.book-card-stock .unavailable {
  color: #dc2626;
  font-weight: 700;
}

.book-card-btn {
  padding: 6px 18px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border: none;
  color: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
}

.book-card-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
  color: #fff;
}

/* ===== Search Bar ===== */
.search-wrapper {
  position: relative;
  max-width: 500px;
  width: 100%;
}

.search-wrapper .form-control {
  height: 52px;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  padding-left: 48px;
  padding-right: 20px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.search-wrapper .form-control:focus {
  border-color: #4facfe;
  box-shadow: 0 4px 20px rgba(79, 172, 254, 0.15);
}

.search-wrapper .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.2rem;
  z-index: 5;
}

/* ===== Info Section ===== */
.info-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  border: 1px solid #e2e8f0;
}

.info-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.2rem;
}

.info-icon-box.blue {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0284c7;
}

.info-icon-box.green {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #16a34a;
}

.info-icon-box.orange {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  color: #ea580c;
}

/* ===== Footer ===== */
.footer-modern {
  background: #1a1a2e;
  border-radius: 24px 24px 0 0;
  padding: 2rem 2rem;
  margin-top: 3rem;
}

.footer-modern p {
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-modern a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-modern a:hover {
  color: #4facfe;
}

/* ===== Animations ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up:nth-child(1) {
  animation-delay: 0.1s;
}

.fade-in-up:nth-child(2) {
  animation-delay: 0.2s;
}

.fade-in-up:nth-child(3) {
  animation-delay: 0.3s;
}

.fade-in-up:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Search Page No Result ===== */
.no-result {
  text-align: center;
  padding: 3rem 1rem;
}

.no-result-icon {
  font-size: 4rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.no-result-text {
  font-size: 1.2rem;
  color: #64748b;
  font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: 400px;
    border-radius: 0 0 30px 30px;
    padding: 3rem 0;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-illustration-inner {
    width: 220px;
    height: 220px;
  }

  .hero-illustration-inner i {
    font-size: 5rem;
  }

  .stats-section {
    margin-top: 2rem;
  }

  .book-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-actions .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .book-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .book-card-cover {
    height: 200px;
  }

  .stats-card {
    padding: 20px 16px;
  }

  .info-section {
    padding: 2rem 1.5rem;
  }
}

/* ===== Auth Pages ===== */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 85vh;
}

.auth-card {
  background: #fff;
  border-radius: 24px;
  border: none;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
}

.auth-card-inner {
  padding: 2.5rem 2.5rem 3rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header .auth-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #0284c7;
  margin: 0 auto 1rem;
}

.auth-header h4 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0;
}

.auth-header p {
  color: #64748b;
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

.auth-form .form-control {
  height: 52px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  padding: 0.75rem 1.2rem;
  font-size: 0.93rem;
  transition: all 0.3s ease;
  background: #fff;
}

.auth-form .form-control:focus {
  border-color: #4facfe;
  box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.1);
}

.auth-form .form-control::placeholder {
  color: #94a3b8;
}

.auth-form .form-floating-group {
  position: relative;
  margin-bottom: 1rem;
}

.auth-form .form-floating-group .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.15rem;
  z-index: 5;
  pointer-events: none;
}

.auth-form .form-floating-group .form-control {
  padding-left: 46px;
}

.auth-form .form-check-input:checked {
  background-color: #4facfe;
  border-color: #4facfe;
}

.auth-form .form-check-label {
  color: #475569;
  font-size: 0.88rem;
}

.auth-btn {
  height: 52px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border: none;
  color: #fff !important;
  box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
  transition: all 0.3s ease;
  width: 100%;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(79, 172, 254, 0.4);
  color: #fff !important;
}

.auth-footer-text {
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: #64748b;
}

.auth-footer-text a {
  color: #4facfe;
  font-weight: 600;
  text-decoration: none;
}

.auth-footer-text a:hover {
  text-decoration: underline;
}

.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 26, 46, 0.08);
  backdrop-filter: blur(10px);
  border: none;
  color: #475569;
  padding: 10px 20px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 1.2rem;
  position: absolute;
  z-index: 10;
}

.auth-back-btn:hover {
  background: rgba(26, 26, 46, 0.12);
  color: #1a1a2e;
  transform: translateX(-3px);
}

.auth-alert {
  border-radius: 14px;
  padding: 0.8rem 1.2rem;
  font-size: 0.88rem;
  border: none;
  margin-bottom: 1.2rem;
}

.auth-message-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.auth-message-card .message-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #16a34a;
  margin: 0 auto 1.2rem;
}

.auth-message-card h5 {
  font-weight: 700;
  color: #1a1a2e;
}

.auth-message-card p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
}
