/*
 * File: app.css
 * Created on Sun Mar 01 2026
 * Last Updated: Sun Mar 01 2026 8:24:05 PM
 * Author: Erwan Setyo Budi
 * Email: erwans818@gmail.com
 */

:root {
  --soft-border: rgba(255, 255, 255, .08);
}

body {
  background: var(--bs-body-bg);
}

/* ===== Header Sticky Adjustment ===== */
.header-stack {
  position: relative;
  width: 100%;
  z-index: 1030;
}

/* Midbar sticky */
.midbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  /* Dibawah dropdown menu (1030) tapi diatas konten */
  background: color-mix(in srgb, var(--bs-body-bg) 98%, transparent);
  backdrop-filter: blur(8px);
  /* Efek blur di belakang */
  border-bottom: 1px solid var(--bs-border-color);
  transition: box-shadow 0.2s ease;
}

/* Menambahkan shadow kecil saat sticky untuk efek depth */
.midbar.sticky-shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .midbar.sticky-shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}


/* Brand dot */
.brand-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff0033, #ff7a00);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(255, 0, 70, .25);
}

/* Mega menu */
.mega-menu {
  border: 1px solid var(--bs-border-color);
  border-radius: 16px;
  background: var(--bs-body-bg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  padding: 12px 12px;
}

.mega-pill {
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--bs-body-color);
  transition: transform .15s ease, background-color .15s ease;
  background: color-mix(in srgb, var(--bs-body-bg) 85%, var(--bs-secondary-bg));
  min-height: 52px;
}

.mega-pill:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--bs-body-bg) 60%, var(--bs-secondary-bg));
  color: var(--bs-body-color);
}

.mega-pill i {
  font-size: 1.1rem;
}

/* Hero banners */
.hero-grid .hero-big {
  min-height: 220px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  background:
    radial-gradient(1000px 400px at 20% 20%, rgba(255, 0, 70, .25), transparent 55%),
    radial-gradient(900px 400px at 80% 40%, rgba(0, 140, 255, .25), transparent 55%),
    linear-gradient(135deg, rgba(20, 20, 20, .8), rgba(20, 20, 20, .35));
  position: relative;
}

[data-bs-theme="light"] .hero-grid .hero-big {
  background:
    radial-gradient(1000px 400px at 20% 20%, rgba(255, 0, 70, .18), transparent 55%),
    radial-gradient(900px 400px at 80% 40%, rgba(0, 140, 255, .18), transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(245, 246, 250, 1));
}

.hero-big .badge-hot {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.hero-big .hero-content {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}

.hero-big .hero-title {
  font-weight: 900;
  letter-spacing: .4px;
  margin: 0;
}

.hero-big .hero-sub {
  margin: 0;
  opacity: .85;
}

/* Swiper slide untuk hero carousel */
.hero-carousel .swiper-slide {
  height: auto;
}

.hero-carousel .hero-big {
  height: 100%;
  min-height: 250px;
  margin: 0;
}

.hero-small {
  min-height: 106px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  background:
    radial-gradient(500px 250px at 20% 30%, rgba(255, 210, 0, .22), transparent 55%),
    radial-gradient(600px 260px at 80% 40%, rgba(0, 200, 140, .18), transparent 55%),
    linear-gradient(135deg, rgba(20, 20, 20, .75), rgba(20, 20, 20, .3));
  position: relative;
  padding: 14px;
}

[data-bs-theme="light"] .hero-small {
  background:
    radial-gradient(500px 250px at 20% 30%, rgba(255, 210, 0, .18), transparent 55%),
    radial-gradient(600px 260px at 80% 40%, rgba(0, 200, 140, .14), transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(245, 246, 250, 1));
}

.benefits-slider {
  background-color: rgba(13, 110, 253, 0.05);
}

[data-bs-theme="dark"] .benefits-slider {
  background-color: rgba(13, 110, 253, 0.15);
}

.benefits-slider .rounded-circle {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .benefits-slider .rounded-circle {
  background-color: #2d2d2d !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.text-balance {
  text-wrap: balance;
}

#benefitsSlider .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #ced4da;
  opacity: 1;
  margin: 0 4px;
  transition: all 0.3s ease;
}

[data-bs-theme="dark"] #benefitsSlider .swiper-pagination-bullet {
  background: #495057;
}

#benefitsSlider .swiper-pagination-bullet-active {
  background: #0d6efd;
  width: 24px;
  border-radius: 4px;
}

[data-bs-theme="dark"] #benefitsSlider .swiper-pagination-bullet-active {
  background: #3d8bfd;
}

/* Download buttons styling */
.d-inline-block[style*="height: 48px"] {
  transition: transform 0.2s ease;
}

.d-inline-block[style*="height: 48px"]:hover {
  transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .benefits-slider .rounded-circle {
    width: 40px !important;
    height: 40px !important;
  }

  .benefits-slider .rounded-circle svg {
    width: 20px !important;
    height: 20px !important;
  }

  .fs-2 {
    font-size: 1.75rem !important;
  }
}

/* Category cards (small) */
.cat-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 18px;
  background: var(--bs-body-bg);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform .15s ease;
  text-decoration: none;
  color: var(--bs-body-color);
  min-height: 68px;
}

.cat-card:hover {
  transform: translateY(-2px);
  color: var(--bs-body-color);
}

.cat-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--bs-secondary-bg) 55%, var(--bs-body-bg));
  border: 1px solid var(--bs-border-color);
  flex: 0 0 auto;
}

.cat-ico i {
  font-size: 1.2rem;
}

/* Section header like marketplace */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-title {
  margin: 0;
  font-weight: 800;
  letter-spacing: .2px;
}

/* Slider + static left banner layout */
.block-split {
  border: 1px solid var(--bs-border-color);
  border-radius: 18px;
  background: var(--bs-body-bg);
  overflow: hidden;
}

.left-banner {
  height: 100%;
  min-height: 240px;
  position: relative;
  border-right: 1px solid var(--bs-border-color);
  background:
    radial-gradient(600px 260px at 30% 25%, rgba(255, 0, 70, .22), transparent 55%),
    radial-gradient(600px 260px at 80% 65%, rgba(0, 140, 255, .20), transparent 55%),
    linear-gradient(135deg, rgba(20, 20, 20, .8), rgba(20, 20, 20, .35));
  color: #fff;
}

[data-bs-theme="light"] .left-banner {
  color: var(--bs-body-color);
  background:
    radial-gradient(600px 260px at 30% 25%, rgba(255, 0, 70, .16), transparent 55%),
    radial-gradient(600px 260px at 80% 65%, rgba(0, 140, 255, .14), transparent 55%),
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(245, 246, 250, 1));
}

.left-banner .inner {
  position: absolute;
  inset: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.left-banner .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--soft-border);
  width: fit-content;
  background: rgba(255, 255, 255, .08);
}

[data-bs-theme="light"] .left-banner .tag {
  border-color: var(--bs-border-color);
  background: color-mix(in srgb, var(--bs-secondary-bg) 50%, transparent);
}

/* Product / book cards */
.p-card {
  border: 1px solid var(--bs-border-color);
  border-radius: 16px;
  background: var(--bs-body-bg);
  overflow: hidden;
  height: 100%;
  transition: transform .15s ease;
}

.p-card:hover {
  transform: translateY(-2px);
}

.p-thumb {
  aspect-ratio: 3/4;
  width: 100%;
  object-fit: cover;
  background: color-mix(in srgb, var(--bs-secondary-bg) 60%, var(--bs-body-bg));
}

.p-meta {
  padding: 10px 10px 12px;
}

.p-title {
  font-weight: 700;
  line-height: 1.2;
  font-size: .95rem;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

.p-price {
  font-weight: 800;
  margin: 0;
}

.p-sub {
  margin: 0;
  font-size: .82rem;
  opacity: .8;
}

.btn-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Swiper controls */
.swiper-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-body-color);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

.swiper-btn:hover {
  background: color-mix(in srgb, var(--bs-body-bg) 70%, var(--bs-secondary-bg));
}

.swiper-btn:disabled {
  opacity: .5;
}

.swiper-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Official store tiles */
.store-tile {
  border: 1px solid var(--bs-border-color);
  border-radius: 16px;
  background: var(--bs-body-bg);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.store-logo {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--bs-secondary-bg) 60%, var(--bs-body-bg));
  font-weight: 900;
  letter-spacing: .6px;
}

/* Footer */
footer {
  border-top: 1px solid var(--bs-border-color);
  padding: 26px 0;
  margin-top: 28px;
}

.top-announcement {
  background: #2b2f35;
}

[data-bs-theme="dark"] .top-announcement {
  background: #1f2329;
}

.promo-link {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 56vw;
}

.toplink {
  color: rgba(255, 255, 255, .75);
}

.toplink:hover {
  color: #fff;
}

footer {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

footer .bg-light {
  background-color: #f8f9fa !important;
}

[data-bs-theme="dark"] footer .bg-light {
  background-color: #1e1e1e !important;
}

footer .border-neutral-200 {
  border-color: #e9ecef;
}

[data-bs-theme="dark"] footer .border-neutral-200 {
  border-color: #2d2d2d;
}

footer .text-secondary {
  color: #6c757d !important;
}

[data-bs-theme="dark"] footer .text-secondary {
  color: #9ca3af !important;
}

footer .text-dark {
  color: #212529 !important;
}

[data-bs-theme="dark"] footer .text-dark {
  color: #e5e7eb !important;
}

footer .btn-outline-secondary {
  border-color: #dee2e6;
  color: #6c757d;
}

[data-bs-theme="dark"] footer .btn-outline-secondary {
  border-color: #404040;
  color: #9ca3af;
}

footer .btn-outline-secondary:hover {
  background-color: #6c757d;
  color: white;
  border-color: #6c757d;
}

footer .list-unstyled a {
  transition: color 0.2s ease;
  font-size: 0.9rem;
}

footer .list-unstyled a:hover {
  color: #0d6efd !important;
}

[data-bs-theme="dark"] footer .list-unstyled a:hover {
  color: #3d8bfd !important;
}

/* Container fluid untuk top section */
.container-fluid {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
}

/* Responsive adjustments untuk tagline */
@media (max-width: 768px) {
  footer .brand-dot {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.5rem !important;
  }

  footer .fw-semibold.text-secondary {
    font-size: 0.9rem !important;
  }
}

@media (max-width: 576px) {
  .d-flex.justify-content-between {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }

  footer .text-end {
    text-align: left !important;
    width: 100%;
  }
}

/* Search */
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-ico {
  position: absolute;
  left: 14px;
  font-size: 1.1rem;
  opacity: .65;
}

.search-input {
  padding-left: 44px;
  border-radius: 999px;
}

.kbd-hint {
  position: absolute;
  right: 10px;
  opacity: .85;
}

.kbd {
  font-size: .75rem;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1px solid var(--bs-border-color);
  background: color-mix(in srgb, var(--bs-body-bg) 70%, var(--bs-secondary-bg));
}

/* Icons */
.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.departments-btn {
  border-radius: 999px;
  padding: 10px 14px;
}

/* Nav style */
.nav-underline .nav-link {
  padding: 14px 10px;
  font-weight: 600;
}

/* ===== Mega menu ===== */
.mega-dropdown .dropdown-menu.mega-menu {
  border-radius: 16px;
  border: 1px solid var(--bs-border-color);
  overflow: hidden;
}

.mega-inner {
  background: var(--bs-body-bg);
}

.mega-title {
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: .2px;
}

.mega-item {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--bs-body-color);
  transition: background-color .12s ease;
}

.mega-item:hover {
  background: color-mix(in srgb, var(--bs-body-bg) 70%, var(--bs-secondary-bg));
  color: var(--bs-body-color);
}

/* Desktop: dropdown full-width and centered like screenshot */
@media (min-width: 992px) {
  .mega-dropdown {
    position: static;
  }

  /* allow wide mega menu */
  .mega-dropdown .dropdown-menu.mega-menu {
    left: 50% !important;
    transform: translateX(-50%);
    top: calc(100% + 8px);
  }
}

/* Mobile: make mega menu normal width */
@media (max-width: 991.98px) {
  .mega-dropdown .dropdown-menu.mega-menu {
    min-width: 100% !important;
  }
}

/* Modal look closer to screenshot */
.modal-content {
  border-radius: 14px;
}

.modal-header {
  padding: 16px 20px;
}

.modal-body {
  padding: 18px 20px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--bs-border-color);
}

/* E-Resource Cards Styling */
.eresource-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.eresource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.eresource-header {
  position: relative;
  padding: 1.5rem 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dee2e6;
}

.eresource-logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.eresource-category {
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.eresource-body {
  padding: 1.25rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.eresource-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #212529;
}

.eresource-description {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 1rem;
  line-height: 1.5;
  flex: 1;
}

.eresource-body .btn {
  margin-top: auto;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* Swiper customization */
#eresourcesSlider .swiper-slide {
  height: auto;
}

.swiper-pagination {
  position: relative;
  margin-top: 1.5rem;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #ced4da;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: #0d6efd;
  width: 24px;
  border-radius: 4px;
}

/* Blog Cards Styling */
.blog-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

[data-bs-theme="dark"] .blog-card {
  background: #2d2d2d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .blog-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.blog-header {
  position: relative;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 140px;
}

.blog-initials {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.first-letter {
  font-size: 4.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
  line-height: 1;
}

.second-letter {
  font-size: 2.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1;
  margin-left: -4px;
}

.blog-category {
  font-size: 0.7rem;
  padding: 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.blog-body {
  padding: 1.25rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  transition: background-color 0.3s ease;
}

[data-bs-theme="dark"] .blog-body {
  background-color: #2d2d2d;
}

.blog-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-title-link {
  color: #212529 !important;
  transition: color 0.2s ease;
}

[data-bs-theme="dark"] .blog-title-link {
  color: #e5e7eb !important;
}

.blog-title-link:hover {
  color: #0d6efd !important;
}

[data-bs-theme="dark"] .blog-title-link:hover {
  color: #3d8bfd !important;
}

.blog-excerpt {
  font-size: 0.85rem;
  color: #6c757d;
  margin-bottom: 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  transition: color 0.3s ease;
}

[data-bs-theme="dark"] .blog-excerpt {
  color: #9ca3af;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e9ecef;
  transition: border-color 0.3s ease;
}

[data-bs-theme="dark"] .blog-footer {
  border-top-color: #404040;
}

.blog-date {
  font-size: 0.75rem;
  color: #6c757d;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

[data-bs-theme="dark"] .blog-date {
  color: #9ca3af;
}

.blog-footer .btn {
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.blog-btn {
  border-color: #dee2e6;
  color: #6c757d;
}

[data-bs-theme="dark"] .blog-btn {
  border-color: #404040;
  color: #9ca3af;
}

.blog-btn:hover {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: white;
}

/* Swiper customization for blog */
#blogSlider .swiper-slide {
  height: auto;
}

#blogSlider .swiper-pagination {
  position: relative;
  margin-top: 1.5rem;
}

#blogSlider .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #ced4da;
  opacity: 1;
  margin: 0 4px;
  transition: all 0.3s ease;
}

[data-bs-theme="dark"] #blogSlider .swiper-pagination-bullet {
  background: #495057;
}

#blogSlider .swiper-pagination-bullet-active {
  background: #0d6efd;
  width: 24px;
  border-radius: 4px;
}

[data-bs-theme="dark"] #blogSlider .swiper-pagination-bullet-active {
  background: #3d8bfd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .first-letter {
    font-size: 3.5rem;
  }

  .second-letter {
    font-size: 2rem;
  }

  .blog-category {
    font-size: 0.65rem;
    padding: 0.25rem 0.75rem;
  }

  .blog-body {
    padding: 1rem;
  }

  .blog-title {
    font-size: 0.95rem;
  }

  .blog-excerpt {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .blog-header {
    min-height: 120px;
    padding: 1.5rem 0.75rem;
  }

  .first-letter {
    font-size: 3rem;
  }

  .second-letter {
    font-size: 1.75rem;
  }

  .blog-body {
    padding: 0.875rem;
  }

  .blog-title {
    font-size: 0.9rem;
  }
}


/* Category Cards Styling */
.category-card {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  width: 100%;
}

.category-card-inner {
  position: relative;
  border-radius: 16px;
  padding: 1rem 1rem;
  height: 100px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Dark mode adjustment for shadows */
[data-bs-theme="dark"] .category-card-inner {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.category-card:hover .category-card-inner {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

[data-bs-theme="dark"] .category-card:hover .category-card-inner {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.category-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 2;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.05);
}

.category-content {
  flex: 1;
  z-index: 2;
  position: relative;
  min-width: 0;
  /* Untuk mencegah overflow text */
}

.category-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.35rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.category-count {
  font-size: 0.7rem;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 500;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.category-count i {
  font-size: 0.65rem;
  margin-right: 0.2rem;
}

.category-overlay {
  position: absolute;
  top: 0;
  right: -15px;
  bottom: 0;
  width: 70px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: skewX(-15deg);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.category-initial {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.25);
  transform: skewX(15deg) rotate(-3deg);
  margin-left: -13px;
  line-height: 1;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Swiper customization for categories */
#categorySlider {
  padding: 0.5rem 0.25rem;
  overflow: visible;
}

#categorySlider .swiper-slide {
  height: auto;
  width: 270px !important;
  /* Memaksa lebar 270px */
  opacity: 1;
  transition: opacity 0.3s ease;
}

#categorySlider .swiper-wrapper {
  align-items: stretch;
}

#categorySlider .swiper-pagination {
  position: relative;
  margin-top: 1.5rem;
}

#categorySlider .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #ced4da;
  opacity: 1;
  margin: 0 4px;
  transition: all 0.3s ease;
}

/* Dark mode pagination */
[data-bs-theme="dark"] #categorySlider .swiper-pagination-bullet {
  background: #495057;
}

#categorySlider .swiper-pagination-bullet-active {
  background: #0d6efd;
  width: 24px;
  border-radius: 4px;
}

[data-bs-theme="dark"] #categorySlider .swiper-pagination-bullet-active {
  background: #3d8bfd;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  #categorySlider .swiper-slide {
    width: 250px !important;
  }
}

@media (max-width: 992px) {
  #categorySlider .swiper-slide {
    width: 230px !important;
  }

  .category-card-inner {
    height: 95px;
    padding: 0.9rem;
  }

  .category-icon {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .category-title {
    font-size: 0.9rem;
  }

  .category-initial {
    font-size: 3.2rem;
  }
}

@media (max-width: 768px) {
  #categorySlider .swiper-slide {
    width: 210px !important;
  }

  .category-card-inner {
    height: 90px;
    padding: 0.85rem 0.75rem;
  }

  .category-icon {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
    border-radius: 10px;
  }

  .category-title {
    font-size: 0.85rem;
  }

  .category-count {
    font-size: 0.65rem;
    padding: 0.15rem 0.6rem;
  }

  .category-initial {
    font-size: 3rem;
  }

  .category-overlay {
    width: 60px;
    right: -12px;
  }
}

@media (max-width: 576px) {
  #categorySlider .swiper-slide {
    width: 190px !important;
  }

  .category-card-inner {
    height: 85px;
    padding: 0.75rem;
    gap: 0.6rem;
  }

  .category-icon {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
    border-radius: 9px;
  }

  .category-title {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  .category-count {
    font-size: 0.6rem;
    padding: 0.1rem 0.5rem;
  }

  .category-initial {
    font-size: 2.5rem;
  }

  .category-overlay {
    width: 50px;
    right: -10px;
  }
}

/* Dark mode specific adjustments */
[data-bs-theme="dark"] .category-count {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .category-icon {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.2);
}

[data-bs-theme="dark"] .category-overlay {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: rgba(255, 255, 255, 0.15);
}

[data-bs-theme="dark"] .category-initial {
  color: rgba(255, 255, 255, 0.2);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.w-100 {
  display: flex;
  justify-content: space-between;
}

.flex {
  display: flex;
}

.flex-row {
  flex-direction: row;
}

.border {
  border-width: 1px;
}

.border-gray-300 {
  border-color: #d1d5db;
}

.p-3 {
  padding: 1rem;
}

.col-7 {
  flex: 7;
}

.col-2 {
  flex: 2;
}

.col-3 {
  flex: 3;
}

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.text-grey-dark {
  color: #6b7280;
}

.availability-item {
  font-weight: bold;
}

.item-available {
  color: #28a745;
  /* Warna hijau untuk status tersedia */
}

.text-sm {
  font-size: 0.875rem;
  /* Ukuran font kecil */
}

.text-muted {
  color: #6c757d;
  /* Warna abu-abu untuk teks kecil */
}

.mb-3 {
  margin-bottom: 1rem;
}

/* Book Cover Styling */
.book-cover-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.book-cover {
  position: relative;
  background: linear-gradient(145deg, var(--bs-tertiary-bg) 0%, var(--bs-body-bg) 100%);
  border-radius: 24px !important;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-cover:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2) !important;
}

.book-cover img {
  transition: transform 0.5s ease;
  display: block;
  width: 100%;
  height: auto;
  min-height: 400px;
  object-fit: cover;
}

.book-cover:hover img {
  transform: scale(1.02);
}

.book-cover-placeholder {
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 24px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-cover-placeholder:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2) !important;
}

[data-bs-theme="dark"] .book-cover-placeholder {
  background: linear-gradient(135deg, #2d2d2d 0%, #363636 100%);
}

.book-cover-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

/* GMD Badge */
.gmd-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 10;
  backdrop-filter: blur(4px);
}

/* Cover Badge (Promo) */
.cover-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #dc3545, #b02a37);
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
  z-index: 10;
  backdrop-filter: blur(4px);
}

/* Multiple badges positioning */
.book-cover-wrapper .cover-badge+.gmd-badge {
  top: 80px;
}

/* Responsive */
@media (max-width: 768px) {

  .book-cover img,
  .book-cover-placeholder {
    min-height: 350px;
  }

  .cover-badge {
    top: 15px;
    left: 15px;
    padding: 6px 15px;
    font-size: 0.8rem;
  }

  .gmd-badge {
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    font-size: 0.7rem;
  }

  .book-cover-wrapper .cover-badge+.gmd-badge {
    top: 70px;
  }
}

@media (max-width: 576px) {

  .book-cover img,
  .book-cover-placeholder {
    min-height: 300px;
  }
}

/* Search Header Styling */
.search-header {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
}

[data-bs-theme="dark"] .search-header {
  background: #2d2d2d;
  border-color: #404040 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Search Info Styling */
.search-info {
  font-size: 0.95rem;
  color: var(--bs-body-color);
}

.search-found-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.search-found-info strong {
  color: var(--bs-primary);
  font-weight: 600;
}

.search-keyword-info {
  display: inline-block;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  background: var(--bs-tertiary-bg);
  padding: 0.2rem 0.8rem;
  border-radius: 50px;
  font-size: 0.85rem;
  border: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] .search-keyword-info {
  background: #363636;
  border-color: #404040;
}

/* Sort By Styling */
.sort-wrapper {
  background: var(--bs-body-bg);
  padding: 0.25rem 0.5rem;
  border-radius: 50px;
  border: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] .sort-wrapper {
  background: #2d2d2d;
}

.sort-wrapper .form-label {
  font-size: 0.85rem;
  margin-right: 0.5rem;
  white-space: nowrap;
}

.sort-wrapper .form-select-sm {
  font-size: 0.85rem;
  padding: 0.25rem 2rem 0.25rem 0.75rem;
  border-radius: 50px;
  border: 1px solid var(--bs-border-color);
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-wrapper .form-select-sm:hover {
  border-color: var(--bs-primary);
}

.sort-wrapper .form-select-sm:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

[data-bs-theme="dark"] .sort-wrapper .form-select-sm {
  background-color: #2d2d2d;
  border-color: #404040;
  color: #e5e7eb;
}

[data-bs-theme="dark"] .sort-wrapper .form-select-sm option {
  background-color: #2d2d2d;
  color: #e5e7eb;
}

/* View Toggle Button */
.view-toggle-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: all 0.2s ease;
  border-width: 2px;
}

.view-toggle-btn i {
  font-size: 1.2rem;
}

.view-toggle-btn.btn-outline-primary {
  border-color: var(--bs-border-color);
  color: var(--bs-secondary-color);
}

.view-toggle-btn.btn-outline-primary:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

.view-toggle-btn.btn-primary {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
}

.view-toggle-btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .search-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }

  .search-actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start !important;
  }

  .sort-wrapper {
    width: 100%;
    padding: 0.5rem;
  }

  .sort-wrapper .form-select-sm {
    flex: 1;
    min-width: unset;
  }

  .view-toggle-form {
    align-self: flex-end;
  }
}

@media (max-width: 576px) {
  .search-info {
    font-size: 0.85rem;
  }

  .search-keyword-info {
    max-width: 150px;
    font-size: 0.8rem;
  }

  .sort-wrapper {
    flex-wrap: wrap;
  }

  .sort-wrapper .form-label {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .sort-wrapper .form-select-sm {
    width: 100%;
  }
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .search-found-info i {
  color: #3d8bfd;
}

[data-bs-theme="dark"] .search-found-info strong {
  color: #3d8bfd;
}

/* Animation */
.search-header {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Sort and View Container */
.form-inline {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-left: 1rem;
}

/* Sort By Label */
.form-inline .font-weight-bold {
  font-weight: 600 !important;
  color: var(--bs-secondary-color);
  font-size: 0.9rem;
  margin-right: 0.5rem;
  white-space: nowrap;
}

/* Sort Select Dropdown */
.custom-select-sm {
  font-size: 0.85rem;
  padding: 0.4rem 2rem 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--bs-border-color);
  background-color: var(--bs-body-bg);
  color: var(--bs-body-color);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 180px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
}

.custom-select-sm:hover {
  border-color: var(--bs-primary);
}

.custom-select-sm:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
  outline: none;
}

/* Dark mode for select */
[data-bs-theme="dark"] .custom-select-sm {
  background-color: #2d2d2d;
  border-color: #404040;
  color: #e5e7eb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

[data-bs-theme="dark"] .custom-select-sm option {
  background-color: #2d2d2d;
  color: #e5e7eb;
}

/* View Toggle Button */
.form-inline .btn-outline-secondary {
  border: 1px solid var(--bs-border-color);
  color: var(--bs-secondary-color);
  background: var(--bs-body-bg);
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
}

.form-inline .btn-outline-secondary:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

.form-inline .btn-outline-secondary i,
.form-inline .btn-outline-secondary svg {
  font-size: 1rem;
  width: 14px;
  height: 14px;
}

/* Dark mode for button */
[data-bs-theme="dark"] .form-inline .btn-outline-secondary {
  background: #2d2d2d;
  border-color: #404040;
  color: #9ca3af;
}

[data-bs-theme="dark"] .form-inline .btn-outline-secondary:hover {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
}

/* Form layout */
.form-inline form {
  display: inline-flex;
  margin-left: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .form-inline {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-left: 0;
  }

  .custom-select-sm {
    min-width: 150px;
  }
}

@media (max-width: 576px) {
  .form-inline {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .form-inline label {
    margin-bottom: 0.25rem;
  }

  .custom-select-sm {
    width: 100%;
  }

  .form-inline form {
    align-self: flex-end;
  }
}

/* Active state for grid view button (if needed) */
.form-inline .btn-primary {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: white;
}

.form-inline .btn-primary:hover {
  background: var(--bs-primary-dark, #0b5ed7);
  border-color: var(--bs-primary-dark, #0a58ca);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

/* Content Page Styling */
.content-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Content Header */
.content-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.content-header::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--bs-primary) 0%, #764ba2 100%);
  margin: 1.5rem auto 0;
  border-radius: 2px;
}

.content-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--bs-heading-color);
  letter-spacing: -0.02em;
}

.content-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--bs-secondary-color);
  font-size: 0.95rem;
  margin-top: 1rem;
}

.content-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.content-meta-item i {
  color: var(--bs-primary);
  font-size: 1.1rem;
}

/* Featured Image */
.content-featured-image {
  margin: 2rem -1.5rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.content-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.content-featured-image:hover img {
  transform: scale(1.02);
}

/* CKEditor Content Styling */
.ck-content {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.8;
  color: var(--bs-body-color);
  background: var(--bs-body-bg);
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ck-content.p-5 {
  padding: 3rem !important;
}

/* Headings */
.ck-content h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--bs-heading-color);
  letter-spacing: -0.02em;
}

.ck-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--bs-heading-color);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bs-border-color);
}

.ck-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  color: var(--bs-heading-color);
}

.ck-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--bs-heading-color);
}

/* Paragraphs */
.ck-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--bs-body-color);
}

/* Links */
.ck-content a {
  color: var(--bs-primary);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dotted transparent;
  transition: all 0.2s ease;
}

.ck-content a:hover {
  border-bottom-color: var(--bs-primary);
  color: var(--bs-primary-dark, #0b5ed7);
}

/* Lists */
.ck-content ul,
.ck-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.ck-content li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.ck-content ul li {
  list-style-type: disc;
}

.ck-content ul li::marker {
  color: var(--bs-primary);
}

.ck-content ol li {
  list-style-type: decimal;
}

.ck-content ol li::marker {
  color: var(--bs-primary);
  font-weight: 600;
}

/* Blockquotes */
.ck-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--bs-tertiary-bg) 0%, var(--bs-body-bg) 100%);
  border-left: 4px solid var(--bs-primary);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--bs-secondary-color);
  position: relative;
}

.ck-content blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 4rem;
  color: var(--bs-primary);
  opacity: 0.2;
  font-family: serif;
}

.ck-content blockquote p {
  margin-bottom: 0;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

/* Images */
.ck-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ck-content img:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Image with caption */
.ck-content figure {
  margin: 2rem 0;
}

.ck-content figcaption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--bs-secondary-color);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Tables */
.ck-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.ck-content th {
  background: var(--bs-primary);
  color: white;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
}

.ck-content td {
  padding: 1rem;
  border-bottom: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
}

.ck-content tr:last-child td {
  border-bottom: none;
}

.ck-content tr:hover td {
  background: var(--bs-tertiary-bg);
}

/* Code blocks */
.ck-content pre {
  background: var(--bs-tertiary-bg);
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  border: 1px solid var(--bs-border-color);
  margin: 1.5rem 0;
}

.ck-content code {
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--bs-body-color);
}

.ck-content p code {
  background: var(--bs-tertiary-bg);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
  border: 1px solid var(--bs-border-color);
}

/* Horizontal rule */
.ck-content hr {
  margin: 3rem 0;
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bs-primary), transparent);
}

/* Buttons inside content */
.ck-content .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.ck-content .btn-primary {
  background: var(--bs-primary);
  color: white;
}

.ck-content .btn-primary:hover {
  background: var(--bs-primary-dark, #0b5ed7);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

.ck-content .btn-outline-primary {
  border: 2px solid var(--bs-primary);
  color: var(--bs-primary);
  background: transparent;
}

.ck-content .btn-outline-primary:hover {
  background: var(--bs-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

/* Alert boxes */
.ck-content .alert {
  padding: 1.5rem;
  border-radius: 12px;
  margin: 1.5rem 0;
  border-left: 4px solid;
}

.ck-content .alert-info {
  background: rgba(13, 110, 253, 0.1);
  border-left-color: var(--bs-primary);
  color: var(--bs-primary);
}

.ck-content .alert-success {
  background: rgba(25, 135, 84, 0.1);
  border-left-color: #198754;
  color: #198754;
}

.ck-content .alert-warning {
  background: rgba(255, 193, 7, 0.1);
  border-left-color: #ffc107;
  color: #856404;
}

.ck-content .alert-danger {
  background: rgba(220, 53, 69, 0.1);
  border-left-color: #dc3545;
  color: #dc3545;
}

/* Share buttons */
.content-share {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--bs-border-color);
  border-bottom: 1px solid var(--bs-border-color);
}

.content-share h5 {
  margin-bottom: 1rem;
  color: var(--bs-secondary-color);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.share-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.share-button.facebook {
  background: #1877f2;
}

.share-button.twitter {
  background: #1da1f2;
}

.share-button.whatsapp {
  background: #25d366;
}

.share-button.telegram {
  background: #0088cc;
}

.share-button.linkedin {
  background: #0077b5;
}

/* Related articles */
.related-articles {
  margin-top: 3rem;
}

.related-articles h4 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--bs-heading-color);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.related-card {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 16px;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.related-card h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--bs-body-color);
}

.related-card p {
  font-size: 0.9rem;
  color: var(--bs-secondary-color);
  margin-bottom: 0;
}

/* Dark mode adjustments */
[data-bs-theme="dark"] .ck-content {
  background: #2d2d2d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .ck-content blockquote {
  background: linear-gradient(135deg, #363636 0%, #2d2d2d 100%);
  border-left-color: #3d8bfd;
}

[data-bs-theme="dark"] .ck-content pre {
  background: #363636;
  border-color: #404040;
}

[data-bs-theme="dark"] .ck-content td {
  background: #2d2d2d;
}

[data-bs-theme="dark"] .ck-content tr:hover td {
  background: #363636;
}

[data-bs-theme="dark"] .related-card {
  background: #2d2d2d;
  border-color: #404040;
}

/* Responsive */
@media (max-width: 768px) {
  .content-title {
    font-size: 2rem;
  }

  .ck-content.p-5 {
    padding: 2rem !important;
  }

  .content-meta {
    gap: 1rem;
  }

  .share-buttons {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .content-title {
    font-size: 1.5rem;
  }

  .ck-content.p-5 {
    padding: 1.5rem !important;
  }

  .content-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* Additional CSS untuk Grid View */
.grid-actions-menu .dropdown-menu {
    min-width: 220px;
    border-radius: 12px;
    padding: 0.5rem;
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

[data-bs-theme="dark"] .grid-actions-menu .dropdown-menu {
    background: #2d2d2d;
    border-color: #404040;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

.grid-actions-menu .dropdown-item {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    color: var(--bs-body-color);
}

.grid-actions-menu .dropdown-item:hover {
    background: var(--bs-tertiary-bg);
    color: var(--bs-primary);
    transform: translateX(5px);
}

.grid-actions-menu .dropdown-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bs-primary);
    padding: 0.5rem 1rem;
}

.grid-actions-menu .dropdown-divider {
    border-top: 1px solid var(--bs-border-color);
    margin: 0.5rem 0;
}

/* Bookmark button in grid footer */
.bookmark-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bookmark-btn i {
    font-size: 1.1rem;
}

.bookmark-btn.active {
    background: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

.bookmark-btn:hover:not(.active) {
    background: var(--bs-tertiary-bg);
    color: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* Action Links in List View */
.action-link {
    color: var(--bs-secondary-color);
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    transition: all 0.2s ease;
    background: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
}

.action-link:hover {
    color: var(--bs-primary);
    background: var(--bs-body-bg);
    border-color: var(--bs-primary);
    transform: translateY(-2px);
}

[data-bs-theme="dark"] .action-link {
    background: #363636;
    border-color: #404040;
}

[data-bs-theme="dark"] .action-link:hover {
    background: #2d2d2d;
}

/* Responsive untuk Grid */
@media (max-width: 576px) {
    .biblio-grid-card .card-footer .d-flex {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch !important;
    }
    
    .biblio-grid-card .card-footer .btn {
        width: 100%;
    }
}

/* Animasi */
.biblio-grid-card {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid View Styling - Masonry Layout */
.biblioResult {
    margin: 0 -10px; /* Compensate for item padding */
}

.grid-item {
    padding: 0 10px !important;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* Card styling untuk grid */
.grid-item .card {
    border: 1px solid var(--bs-border-color) !important;
    border-radius: 16px !important;
    overflow: hidden;
    background: var(--bs-body-bg);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: auto;
    position: relative;
}

.grid-item .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

[data-bs-theme="dark"] .grid-item .card {
    background: #2d2d2d;
    border-color: #404040 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

[data-bs-theme="dark"] .grid-item .card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
}

/* Grid Item Menu (Three dots) */
.grid-item--menu {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.grid-item--menu .dropdown-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    color: var(--bs-secondary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.grid-item--menu .dropdown-toggle:hover {
    background: white;
    color: var(--bs-primary);
    transform: scale(1.1);
}

[data-bs-theme="dark"] .grid-item--menu .dropdown-toggle {
    background: rgba(45,45,45,0.9);
    color: #9ca3af;
}

[data-bs-theme="dark"] .grid-item--menu .dropdown-toggle:hover {
    background: #2d2d2d;
    color: var(--bs-primary);
}

/* Dropdown Menu Styling */
.grid-item--menu .dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 0.5rem;
    min-width: 200px;
    background: white;
    margin-top: 5px;
}

[data-bs-theme="dark"] .grid-item--menu .dropdown-menu {
    background: #2d2d2d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.grid-item--menu .dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--bs-body-color);
    transition: all 0.2s ease;
}

.grid-item--menu .dropdown-item:hover {
    background: var(--bs-tertiary-bg);
    color: var(--bs-primary);
    transform: translateX(5px);
}

[data-bs-theme="dark"] .grid-item--menu .dropdown-item:hover {
    background: #363636;
}

.grid-item--menu .dropdown-divider {
    border-top: 1px solid var(--bs-border-color);
    margin: 0.5rem 0;
}

/* Image Container */
.grid-item .p-5 {
    padding: 1.5rem !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

[data-bs-theme="dark"] .grid-item .p-5 {
    background: linear-gradient(135deg, #363636 0%, #2d2d2d 100%);
}

.grid-item img.img-thumbnail {
    border: 4px solid white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    padding: 0;
}

.grid-item .card:hover img.img-thumbnail {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

[data-bs-theme="dark"] .grid-item img.img-thumbnail {
    border-color: #404040;
    background: #2d2d2d;
}

/* Title Link */
.grid-item--title {
    color: var(--bs-body-color) !important;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6rem;
    transition: color 0.2s ease;
}

.grid-item--title:hover {
    color: var(--bs-primary) !important;
}

[data-bs-theme="dark"] .grid-item--title {
    color: #e5e7eb !important;
}

[data-bs-theme="dark"] .grid-item--title:hover {
    color: #3d8bfd !important;
}

/* List Group Items (Custom Fields) */
.grid-item .list-group {
    margin-top: 0.5rem;
}

.grid-item .list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    border: none;
    border-top: 1px solid var(--bs-border-color);
    font-size: 0.8rem;
    background: transparent;
}

.grid-item .list-group-item:first-child {
    border-top: none;
}

.grid-item .list-group-item label {
    color: var(--bs-secondary-color);
    font-weight: 500;
    margin-right: 0.5rem;
}

.grid-item .list-group-item span:last-child {
    color: var(--bs-body-color);
    font-weight: 600;
    text-align: right;
}

[data-bs-theme="dark"] .grid-item .list-group-item {
    border-top-color: #404040;
}

[data-bs-theme="dark"] .grid-item .list-group-item label {
    color: #9ca3af;
}

[data-bs-theme="dark"] .grid-item .list-group-item span:last-child {
    color: #e5e7eb;
}

/* Not Available Image */
img.not-available {
    opacity: 0.5;
    filter: grayscale(100%);
}

/* Animation for grid items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid-item {
    animation: fadeInUp 0.5s ease;
    animation-fill-mode: both;
}

/* Stagger animation for grid items */
.grid-item:nth-child(1) { animation-delay: 0.05s; }
.grid-item:nth-child(2) { animation-delay: 0.1s; }
.grid-item:nth-child(3) { animation-delay: 0.15s; }
.grid-item:nth-child(4) { animation-delay: 0.2s; }
.grid-item:nth-child(5) { animation-delay: 0.25s; }
.grid-item:nth-child(6) { animation-delay: 0.3s; }
.grid-item:nth-child(7) { animation-delay: 0.35s; }
.grid-item:nth-child(8) { animation-delay: 0.4s; }
.grid-item:nth-child(9) { animation-delay: 0.45s; }
.grid-item:nth-child(10) { animation-delay: 0.5s; }
.grid-item:nth-child(11) { animation-delay: 0.55s; }
.grid-item:nth-child(12) { animation-delay: 0.6s; }

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-item .p-5 {
        min-height: 200px;
        padding: 1rem !important;
    }
    
    .grid-item--menu .dropdown-menu {
        min-width: 180px;
    }
}

@media (max-width: 576px) {
    .grid-item .p-5 {
        min-height: 180px;
    }
    
    .grid-item--title {
        font-size: 0.9rem;
    }
    
    .grid-item .list-group-item {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
}

/* Member Area Dashboard Styling */
.member-dashboard {
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Member Sidebar */
.member-sidebar {
    width: 280px;
    background: var(--bs-body-bg);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--bs-border-color);
    transition: all 0.3s ease;
    height: fit-content;
    position: sticky;
    top: 100px;
}

[data-bs-theme="dark"] .member-sidebar {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: #2d2d2d;
}

.member-avatar {
    text-align: center;
    margin-bottom: 1.5rem;
}

.member-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bs-border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.member-avatar img:hover {
    transform: scale(1.05);
}

.member-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-align: center;
    color: var(--bs-body-color);
}

.member-type {
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.member-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    background: var(--bs-tertiary-bg);
    border-radius: 16px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
}

.member-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.member-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: var(--bs-body-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.member-menu-item:hover {
    background: var(--bs-tertiary-bg);
    color: var(--bs-primary);
    transform: translateX(5px);
}

.member-menu-item.active {
    background: var(--bs-primary);
    color: white;
}

.member-menu-item i {
    font-size: 1.2rem;
    width: 24px;
}

.btn-member {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
}

.btn-member-primary {
    background: var(--bs-primary);
    color: white;
    border: none;
}

.btn-member-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13,110,253,0.3);
    color: white;
}

.btn-member-danger {
    background: #dc3545;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-member-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220,53,69,0.3);
    color: white;
}

/* Member Content */
.member-content {
    flex: 1;
    background: var(--bs-body-bg);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] .member-content {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    background: #2d2d2d;
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bs-border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.member-greeting h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--bs-body-color);
}

.member-greeting p {
    color: var(--bs-secondary-color);
    margin-bottom: 0;
}

.member-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-active {
    background: rgba(25,135,84,0.1);
    color: #198754;
    border: 1px solid rgba(25,135,84,0.2);
}

.status-pending {
    background: rgba(255,193,7,0.1);
    color: #856404;
    border: 1px solid rgba(255,193,7,0.2);
}

.status-expired {
    background: rgba(220,53,69,0.1);
    color: #dc3545;
    border: 1px solid rgba(220,53,69,0.2);
}

/* Member Tabs */
.member-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--bs-border-color);
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.member-tab {
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: var(--bs-secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.member-tab:hover {
    background: var(--bs-tertiary-bg);
    color: var(--bs-primary);
}

.member-tab.active {
    background: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

/* Member Content Area */
.member-content-area {
    min-height: 400px;
}

.member-content-area h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--bs-body-color);
}

/* Tables */
.member-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    overflow: hidden;
}

.member-table th {
    background: var(--bs-tertiary-bg);
    padding: 1rem;
    font-weight: 600;
    color: var(--bs-body-color);
    border-bottom: 2px solid var(--bs-border-color);
    text-align: left;
}

.member-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
}

.member-table tr:last-child td {
    border-bottom: none;
}

.member-table tr:hover td {
    background: var(--bs-tertiary-bg);
}

.member-table .overdue {
    color: #dc3545;
    font-weight: 600;
}

/* Table Responsive */
@media (max-width: 768px) {
    .member-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Info Cards */
.member-info-card {
    background: var(--bs-tertiary-bg);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.member-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.85rem;
    color: var(--bs-secondary-color);
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--bs-body-color);
}

/* Alert Messages */
.member-alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.member-alert-success {
    background: rgba(25,135,84,0.1);
    border: 1px solid rgba(25,135,84,0.2);
    color: #198754;
}

.member-alert-danger {
    background: rgba(220,53,69,0.1);
    border: 1px solid rgba(220,53,69,0.2);
    color: #dc3545;
}

.member-alert-warning {
    background: rgba(255,193,7,0.1);
    border: 1px solid rgba(255,193,7,0.2);
    color: #856404;
}

.member-alert-info {
    background: rgba(13,110,253,0.1);
    border: 1px solid rgba(13,110,253,0.2);
    color: var(--bs-primary);
}

/* Basket Section */
.basket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.basket-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.basket-actions .btn {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline-secondary {
    border: 1px solid var(--bs-border-color);
    background: transparent;
    color: var(--bs-body-color);
}

.btn-outline-secondary:hover {
    background: var(--bs-tertiary-bg);
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

/* Forms */
.member-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--bs-body-color);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--bs-border-color);
    border-radius: 12px;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
    outline: none;
}

/* Login Page */
.member-login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem;
}

.member-login-card {
    background: var(--bs-body-bg);
    border-radius: 32px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--bs-border-color);
    max-width: 450px;
    width: 100%;
}

[data-bs-theme="dark"] .member-login-card {
    background: #2d2d2d;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.member-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.member-login-header .library-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.member-login-header .library-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 700;
}

.member-login-header .library-info {
    text-align: left;
}

.member-login-header .library-info h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--bs-body-color);
}

.member-login-header .library-info p {
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
    margin-bottom: 0;
}

.member-login-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--bs-body-color);
}

.member-login-subtitle {
    color: var(--bs-secondary-color);
    font-size: 1rem;
}

.member-login-body {
    margin-bottom: 1.5rem;
}

.member-login-footer {
    text-align: center;
}

.w-100 {
    width: 100%;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.me-2 {
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .member-dashboard {
        flex-direction: column;
    }
    
    .member-sidebar {
        width: 100%;
        position: static;
    }
    
    .member-stats {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .member-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .member-tabs {
        flex-direction: column;
    }
    
    .member-tab {
        width: 100%;
        text-align: center;
    }
    
    .basket-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .member-info-card {
        grid-template-columns: 1fr;
    }
    
    .member-login-card {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .member-dashboard {
        padding: 0 0.5rem;
    }
    
    .member-content {
        padding: 1rem;
    }
    
    .member-greeting h1 {
        font-size: 1.5rem;
    }
}