/**
 * ASTINDO KALSEL - CSS Utama
 * Desain via CSS variables (mudah diganti), light/dark mode, responsive mobile-first.
 */

:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --secondary: #6c757d;
  --accent: #f4a017;
  --dark: #10151f;
  --light: #f8f9fa;
  --text: #212529;
  --text-muted: #6c757d;
  --surface: #ffffff;
  --surface-2: #f1f3f5;
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 8px 24px rgba(16, 21, 31, 0.08);
  --shadow-sm: 0 3px 10px rgba(16, 21, 31, 0.06);
  --radius: 14px;
  --topbar-h: 40px;
  --nav-h: 68px;
}

[data-bs-theme="dark"] {
  --text: #e9ecef;
  --text-muted: #adb5bd;
  --surface: #171b22;
  --surface-2: #1f242d;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--surface);
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

.section {
  padding: 64px 0;
}

.section-sm {
  padding: 40px 0;
}

.bg-surface-2 {
  background: var(--surface-2);
}

.text-muted-2 {
  color: var(--text-muted) !important;
}

/* Section titles */
.section-title {
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

/* ============ TOP HEADER ============ */
.topbar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 8px 0;
}

.topbar a {
  color: rgba(255, 255, 255, 0.85);
}

.topbar a:hover {
  color: #fff;
}

.topbar .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  margin-left: 4px;
  transition: background .2s;
}

.topbar .social-links a:hover {
  background: var(--primary);
}

/* ============ TOP HEADER ============ */
.topbar {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 8px 0;
  z-index: 1055;
}

/* ============ NAVBAR ============ */
.main-navbar {
  background: transparent;
  padding: 12px 0;
  transition: all .3s ease;
  box-shadow: none;
  z-index: 1030;
}

.main-navbar.solid {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
}

.main-navbar .nav-link {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px !important;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  color: var(--primary);
}

/* Flag the dropdown item (<li>) when its dropdown is open */
.main-navbar .dropdown.open > .nav-link {
  color: var(--primary) !important;
  background-color: rgba(13, 110, 253, 0.06) !important;
}

.main-navbar .dropdown.open > .nav-link::after {
  border-color: var(--primary) !important;
}

.main-navbar .dropdown.open .dropdown-toggle::after {
  border-color: var(--primary) !important;
}

/* Dropdown flag icons (chevron + active link highlight) render ON TOP when open */
.main-navbar .dropdown.open .dropdown-toggle,
.main-navbar .dropdown.open > .nav-link {
  position: relative;
  z-index: 1060;
}

.main-navbar .dropdown.open .dropdown-item {
  color: var(--primary) !important;
  background-color: rgba(13, 110, 253, 0.04) !important;
}

.main-navbar .dropdown.open .dropdown-item:hover {
  background-color: rgba(13, 110, 253, 0.08) !important;
}

.main-navbar .navbar-brand img {
  height: 42px;
}

.main-navbar .dropdown-menu {
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 1050;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--primary);
}

/* Saat navbar transparan di atas hero (teks putih) */
.nav-on-hero .main-navbar:not(.solid) .nav-link,
.nav-on-hero .main-navbar:not(.solid) .navbar-brand,
.nav-on-hero .main-navbar:not(.solid) .theme-toggle-btn {
  color: #fff !important;
}

.nav-on-hero .main-navbar:not(.solid) .navbar-toggler-icon {
  filter: invert(1);
}

.theme-toggle-btn {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 14px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.theme-toggle-btn .icon {
  font-size: 13px;
}

[data-bs-theme="dark"] .icon-sun,
[data-bs-theme="dark"] .icon-moon {
  display: none;
}

[data-bs-theme="light"] .icon-moon,
[data-bs-theme="light"] .icon-sun {
  display: inline-flex;
}

/* ============ HERO SLIDER ============ */
.hero {
  position: relative;
  margin-top: calc(-0.7 * (var(--topbar-h) + var(--nav-h)));
  min-height: 560px;
  max-height: 92vh;
  overflow: hidden;
  /* Semua slide ditumpuk di satu sel grid: tinggi hero tetap sama
     saat slide berganti, sehingga layout di bawahnya tidak bergeser. */
  display: grid;
  grid-template-columns: 1fr;
}

.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 15, 30, 0.75) 10%, rgba(10, 15, 30, 0.35) 60%, rgba(10, 15, 30, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 140px 0 120px;
  max-width: 680px;
}

.hero-content .badge {
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-content h1 {
  font-weight: 800;
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: -1px;
}

.hero-content p {
  font-size: clamp(15px, 2vw, 19px);
  opacity: 0.92;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 18px;
  backdrop-filter: blur(4px);
  transition: background .2s;
}

.hero-nav:hover {
  background: var(--primary);
}

.hero-nav.prev {
  left: 16px;
}

.hero-nav.next {
  right: 16px;
}

.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dots button {
  width: 26px;
  height: 4px;
  border-radius: 4px;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  transition: all .25s;
}

.hero-dots button.active {
  background: #fff;
  width: 40px;
}

/* ============ CARDS ============ */
.card-astindo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  /* Tinggi otomatis: kalau kartu punya saudara lain di kolom, jangan
     mengisi 100% tinggi kolom karena itu membuat konten meluap
     melewati footer (space kosong / konten menimpa footer). */
  height: auto;
  display: flex;
  flex-direction: column;
}

/* Hanya kartu tunggal (grid kartu) yang mengisi tinggi kolomnya,
   supaya tinggi kartu sejajar antar kolom dalam satu baris. */
.card-astindo:only-child {
  height: 100%;
}

.card-astindo:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-astindo .card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card-astindo .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}

.card-astindo:hover .card-img img {
  transform: scale(1.06);
}

.card-astindo .card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-astindo .card-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

.card-astindo h5,
.card-astindo h6 {
  font-weight: 700;
}

.card-astindo .card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.card-astindo .card-price {
  color: var(--primary);
  font-weight: 800;
}

.card-astindo .card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

/* Chart card canvas container */
.chart-box {
  min-height: 260px;
  position: relative;
}

/* Product/member logo chip */
.logo-chip {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

/* ============ PROMO CARD ============ */
.promo-card .promo-price {
  color: #dc3545;
  font-weight: 800;
}

.promo-card .normal-price {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 13px;
}

.discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: #dc3545;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 8px;
}

/* ============ ADMIN SIDEBAR (AdminLTE 3.2) ============ */
/* Sidebar kanan - panel user di atas, menu menu bawah */
.admin-sidebar {
  width: 260px;
  min-width: 260px;
  transition: transform .2s ease, width .2s ease;
}

.admin-sidebar.open {
  width: 260px;
  min-width: 260px;
}

/* Panel user di atas sidebar - logo + Administrator */
.admin-sidebar .user-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 6px 18px rgba(13, 110, 253, 0.30);
}

.admin-sidebar .user-panel .image {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.25);
}

.admin-sidebar .user-panel .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-sidebar .user-panel .info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-sidebar .user-panel .info p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar .user-panel .info .online {
  font-size: 10px;
  font-weight: 600;
  color: #d4edda;
  margin-top: 2px;
}

/* Group menu (opsional, contoh: Dashboard / Lainnya) */
.admin-sidebar .menu-group {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 10px 12px 6px;
  border-bottom: 1px solid var(--border);
}

/* Menu sidebar */
.admin-sidebar .sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-sidebar .sidebar-menu > li {
  margin-bottom: 3px;
}

.admin-sidebar .sidebar-menu > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 9px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s ease;
  border: 1px solid transparent;
}

.admin-sidebar .sidebar-menu > li > a i {
  flex-shrink: 0;
  width: 18px;
  text-align: center;
  font-size: 15px;
}

.admin-sidebar .sidebar-menu > li > a:hover {
  background: var(--surface-2);
  color: var(--primary);
  border-color: rgba(13, 110, 253, 0.15);
}

.admin-sidebar .sidebar-menu > li.active > a {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.28);
}

.admin-sidebar .sidebar-menu > li.active > a:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.admin-sidebar .sidebar-menu > li.active > a i,
.admin-sidebar .sidebar-menu > li.active > a:hover i {
  color: #fff;
}

.admin-sidebar .sidebar-menu > li > a .badge {
  margin-left: auto;
  background: var(--text-muted);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Search form di dalam sidebar */
.admin-sidebar .sidebar-form {
  position: relative;
  margin-bottom: 18px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.admin-sidebar .sidebar-form .form-control {
  border: none;
  border-radius: 0;
  padding: 11px 14px;
  padding-left: 42px;
  font-size: 13px;
  background: var(--surface);
}

.admin-sidebar .sidebar-form .form-control::placeholder {
  color: var(--text-muted);
}

.admin-sidebar .sidebar-form .btn-flat {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-sidebar .sidebar-form .btn-flat:hover {
  background: var(--primary);
  color: #fff;
}

/* Footer di dalam sidebar (Logout button) */
.admin-sidebar .sidebar-footer {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
}

.admin-sidebar .sidebar-footer .btn-danger {
  background: var(--text-muted);
  border: none;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 8px;
  transition: all .15s ease;
}

.admin-sidebar .sidebar-footer .btn-danger:hover {
  background: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

/* ============ ADMIN CONTENT PADDING / MARGIN UTILITIES ============ */
/* Content utama (dekat sidebar) */
.admin-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-left: 260px;
  box-sizing: border-box;
}

/* Container umum di dalam konten admin */
.admin-content .container-fluid {
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Konten halaman admin */
.admin-page-content {
  padding: 24px 28px 32px;
  box-sizing: border-box;
  max-width: 1600px;
  margin: 0 auto;
  overflow-x: auto;
}

/* Margin antar elemen umum */
.admin-content .mb-1  { margin-bottom: 0.5rem !important; }
.admin-content .mb-2  { margin-bottom: 1rem !important; }
.admin-content .mb-3  { margin-bottom: 1.5rem !important; }
.admin-content .mb-4  { margin-bottom: 2rem !important; }
.admin-content .mb-5  { margin-bottom: 3rem !important; }
.admin-content .mt-1  { margin-top: 0.5rem !important; }
.admin-content .mt-2  { margin-top: 1rem !important; }
.admin-content .mt-3  { margin-top: 1.5rem !important; }
.admin-content .mt-4  { margin-top: 2rem !important; }
.admin-content .mt-5  { margin-top: 3rem !important; }

/* Padding (kiri-kanan sesuai kebijakan admin-content) */
.admin-content .py-1  { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.admin-content .py-2  { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.admin-content .py-3  { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.admin-content .py-4  { padding-top: 2rem !important; padding-bottom: 2rem !important; }
.admin-content .py-5  { padding-top: 3rem !important; padding-bottom: 3rem !important; }
.admin-content .px-1  { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.admin-content .px-2  { padding-left: 1rem !important; padding-right: 1rem !important; }
.admin-content .px-3  { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.admin-content .px-4  { padding-left: 2rem !important; padding-right: 2rem !important; }
.admin-content .px-5  { padding-left: 3rem !important; padding-right: 3rem !important; }

/* Spasi untuk card dan tabel */
.admin-content .card {
  margin-bottom: 1.25rem;
}

.admin-content .card + .card {
  margin-top: 1.25rem;
}

.admin-content .table-responsive {
  margin-bottom: 1.25rem;
}

.admin-content .table-responsive + .card {
  margin-top: 1.25rem;
}

/* Form control spacing */
.admin-content .form-control,
.admin-content .form-select {
  margin-bottom: 0.85rem;
}

.admin-content .form-group:last-child,
.admin-content .mb-0:last-child {
  margin-bottom: 0 !important;
}

/* Warna utilitas khusus teks */
.admin-content .text-sm  { font-size: 0.875rem; }
.admin-content .text-xs  { font-size: 0.75rem; }
.admin-content .fw-600 { font-weight: 600; }
.admin-content .fw-700 { font-weight: 700; }
.admin-content .lh-1 { line-height: 1.5; }

/* ===== Responsive: layar kecil (sidebar menutupi content, toggle terlihat) ===== */
@media (max-width: 575.98px) {
  .admin-sidebar {
    width: 100%;
    min-width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1045;
    transform: translateX(100%);
    box-shadow: 0 12px 32px rgba(16, 21, 31, 0.20);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar .user-panel {
    padding: 14px;
  }

  .admin-sidebar .sidebar-menu > li > a {
    padding: 10px 12px;
    font-size: 13px;
  }

  .admin-sidebar .sidebar-menu > li > a i {
    width: 16px;
    font-size: 14px;
  }
}

/* ============ SIDEBAR ============ */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-top: 10px;
  margin-bottom: 20px;
  position: sticky;
  top: 20px;
  align-self: start;
}

.sidebar-card h6 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.sidebar-news-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.sidebar-news-item img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.sidebar-news-item .t {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}

.benefit-item:last-child {
  border-bottom: none;
}

.benefit-item .ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(13, 110, 253, 0.1);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============ PARALLAX CTA ============ */
.parallax-cta {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 90px 0;
  text-align: center;
}

.parallax-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(13, 110, 253, 0.75), rgba(10, 15, 30, 0.85));
}

.parallax-cta .container {
  position: relative;
  z-index: 2;
}

.parallax-cta h2 {
  font-weight: 800;
  font-size: clamp(24px, 4vw, 40px);
}

/* ============ STICKY FOOTER ============ */
/* Halaman yang kontennya lebih pendek dari viewport: sisa ruang diambil
   oleh .footer-spacer sehingga footer tetap menempel di dasar halaman
   (tidak ada ruang putih kosong di bawah footer). */
body.site-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.footer-spacer {
  flex: 1 0 0;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 0;
}

.footer h6 {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 13px;
  margin-bottom: 16px;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
  display: inline-block;
  padding: 3px 0;
}

.footer a:hover {
  color: var(--accent);
}

.footer .footer-links a {
  display: block;
  transition: all .2s;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px;
  padding: 18px 0;
  font-size: 13.5px;
}

/* ============ ADMIN DASHBOARD (Plain Bootstrap, fast + simple + powerful) ============ */

/* Header */
.admin-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0;
  z-index: 1040;
  position: sticky;
  top: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0;
}

.admin-header .navbar {
  border: none;
  box-shadow: none;
  flex: 1;
  align-items: center;
}

/* Navbar: only one dropdown on the right (Admin) */
.navbar-light .navbar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.navbar-light .navbar-nav .nav-item {
  margin-bottom: 4px;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  transition: all .15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary) !important;
  background: rgba(13, 110, 253, 0.08);
}

/* Only Admin dropdown visible on the right */
.navbar-light .navbar-nav .nav-item.admin-only {
  display: flex;
}

.navbar-light .navbar-nav .nav-item.admin-only:not(:first-child) {
  display: none;
}

.navbar-light .navbar-nav .nav-item.admin-only.show,
.navbar-light .navbar-nav .nav-item.admin-only.open {
  display: flex;
}

.navbar-light .navbar-nav .nav-link.dropdown-toggle {
  cursor: pointer;
}

.navbar-light .navbar-nav .dropdown-menu {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 8px 0;
  min-width: 220px;
  left: auto;
  right: 0;
}

.navbar-light .navbar-nav .dropdown-item {
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  transition: all .15s ease;
}

.navbar-light .navbar-nav .dropdown-item:hover,
.navbar-light .navbar-nav .dropdown-item.active {
  background: var(--primary);
  color: #fff;
}

.navbar-light .navbar-nav .dropdown-item .badge {
  margin-left: auto;
  background: var(--text-muted);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Admin logo */
.logo-admin {
  color: var(--text);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-admin:hover {
  color: var(--primary);
  text-decoration: none;
}

.logo-admin-text {
  color: var(--text);
}

.logo-admin-text .text-muted {
  color: var(--text-muted) !important;
  font-weight: 600;
}

/* User avatar */
.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===================== ADMIN SIDEBAR (plain bootstrap) ===================== */
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 260px;
  background: #fff;
  border-right: 1px solid var(--border);
  box-shadow: 4px 0 20px rgba(16, 21, 31, 0.06);
  overflow-y: auto;
  flex-shrink: 0;
  transition: transform .2s ease;
  z-index: 1045;
}

/* Sidebar header (logo + search) */
.sidebar-header {
  padding: 20px 16px 14px;
  border-bottom: 1px solid var(--border);
}

.sidebar-header .logo-admin {
  font-size: 18px;
  padding: 0;
  margin: 0 0 12px;
}

.sidebar-search .input-group {
  border-radius: 10px;
  border: 1px solid var(--border);
  padding: 4px 4px 4px 12px;
  background: var(--surface);
  transition: border .15s ease, box-shadow .15s ease;
}

.sidebar-search .input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .12);
}

.sidebar-search .form-control {
  border: none;
  box-shadow: none;
  padding: 8px 0;
  font-size: 12.5px;
}

.sidebar-search .form-control::placeholder {
  color: var(--text-muted);
}

.sidebar-search .input-group-append .btn {
  width: auto;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-search .input-group-append .btn:hover {
  background: var(--primary-dark);
}

/* Sidebar nav */
.sidebar-nav {
  padding: 14px 10px 20px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9px;
  transition: all .15s ease;
}

.sidebar-nav .nav-link i {
  width: 18px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.sidebar-nav .nav-link:hover {
  background: var(--surface-2);
  color: var(--primary);
}

.sidebar-nav .nav-link.active {
  background: var(--primary);
  color: #fff;
}

.sidebar-nav .nav-link.active:hover {
  background: var(--primary-dark);
}

.sidebar-nav .nav-link.active i,
.sidebar-nav .nav-link.active:hover i {
  color: #fff;
}

.nav-link .badge {
  margin-left: auto;
  background: var(--text-muted);
  color: #fff;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Content wrapper untuk dashboard */
.admin-wrapper .admin-content {
  min-width: 0;
}

.content-header {
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  margin-left: -260px;
  padding-left: calc(28px + 260px);
  box-sizing: border-box;
}

.page-title {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--text);
  margin: 0;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 4px 0 0;
  font-size: 12px;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary-dark);
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

.breadcrumb-nav {
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  color: var(--primary);
}

/* ===================== STAT CARDS (dashboard) ===================== */
.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all .18s ease;
  height: 100%;
  flex-direction: column;
  justify-content: center;
}

.stat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
  color: var(--text);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===================== CHART BOX ===================== */
.chart-box {
  position: relative;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chart-box canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 100%;
}

/* ===================== CARDS ===================== */
.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  height: 100%;
}

.card + .card {
  margin-top: 1.25rem;
}

.card-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
  font-weight: 700;
  font-size: 15px;
}

.card-body {
  padding: 18px;
}

.card-body.table-responsive,
.card-body .table-responsive {
  padding: 0;
}

.card-title {
  margin-bottom: 0;
  font-size: 15px;
}

/* Table utils */
.table-hover tbody tr:hover {
  background: var(--surface-2);
}

.table thead th {
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}

/* ===================== FOOTER ===================== */
.admin-footer {
  background: #f8f9fa;
  border-top: 1px solid var(--border);
  padding: 14px 0;
  flex-shrink: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-footer .footer-left,
.admin-footer .footer-right {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  flex: 1;
}

.admin-footer .footer-right {
  text-align: right;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 767.98px) {
  .admin-sidebar {
    position: fixed;
    z-index: 1045;
    transform: translateX(-100%);
  }
  
  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-content {
    padding-left: 0;
    padding: 12px 14px 20px;
  }

  .content-header {
    margin-left: 0;
    padding-left: 14px;
    padding: 14px 14px 0;
  }

  .page-title {
    font-size: 20px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-value {
    font-size: 22px;
  }

  .footer-left,
  .footer-right {
    text-align: center !important;
    width: 100%;
    margin-bottom: 6px;
  }

  .admin-header .navbar-nav {
    margin-left: auto;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .admin-sidebar {
    width: 220px;
  }

  .admin-content {
    padding-left: 220px;
    padding: 18px 20px 24px;
  }

  .content-header {
    margin-left: -220px;
    padding-left: calc(20px + 220px);
  }
}

/* ===================== END ADMIN DASHBOARD ==================== */


/* ============ FLOATING WA + MOBILE BOTTOM BAR ============ */
.float-wa, .back-to-top {
  position: fixed;
  right: 18px;
  bottom: 74px;
  z-index: 1040;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform .2s;
}

.float-wa:hover {
  transform: scale(1.08);
  color: #fff;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 74px;
  z-index: 1040;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transition: transform .2s, opacity .2s;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: scale(1.08);
}

.mobile-contact-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.mobile-contact-bar a {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
}

.mobile-contact-bar a i {
  display: block;
  font-size: 17px;
  margin-bottom: 2px;
}

/* Ruang di bawah konten hanya jika bar mobile (fixed) benar-benar dirender,
   agar tidak menyisakan jarak putih kosong di bawah footer */
body:has(.mobile-contact-bar) {
  padding-bottom: 58px;
}

/* ============ PAGE HERO (sub-halaman) ============ */
.page-hero {
  background: linear-gradient(120deg, var(--primary), var(--dark));
  color: #fff;
  padding: 64px 0 46px;
}

.page-hero h1 {
  font-weight: 800;
  font-size: clamp(24px, 4vw, 36px);
}

.page-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
}

.page-hero .breadcrumb-item.active {
  color: #fff;
}

/* ============ GALLERY ============ */
.gallery-grid {
  columns: 3;
  column-gap: 14px;
}

@media (max-width: 991px) {
  .gallery-grid {
    columns: 2;
  }
}

@media (max-width: 575px) {
  .gallery-grid {
    columns: 1;
  }
}

.gallery-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 14px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  break-inside: avoid;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform .4s;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 24px 12px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 13px;
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .6);
}

.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 92vw;
  max-height: 88vh;
}

.lightbox .lb-caption {
  color: #fff;
  font-size: 15px;
  margin-top: 14px;
  text-align: center;
  max-width: 800px;
  line-height: 1.4;
  padding: 0 10px;
}

.lightbox .lb-close,
.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}

.lightbox .lb-close {
  top: 18px;
  right: 18px;
}

.lightbox .lb-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .lb-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox .lb-close:hover,
.lightbox .lb-prev:hover,
.lightbox .lb-next:hover {
  background: var(--primary);
}

/* ============ TABS (detail produk) ============ */
.nav-tabs {
  border-bottom-color: var(--border);
}

.nav-tabs .nav-link {
  color: var(--text);
  font-weight: 600;
}

.nav-tabs .nav-link.active {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
}

.tab-content {
  padding-top: 18px;
}

/* ============ FORMS ============ */
.form-control,
.form-select {
  border-radius: 10px;
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .15);
  background: var(--surface);
  color: var(--text);
}

.btn {
  border-radius: 10px;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
}

.btn-accent:hover {
  filter: brightness(0.93);
  color: #1a1a1a;
}

/* Pastikan teks tombol btn-accent tetap visible saat hover (tidak
 * ter-override oleh aturan global "a { color: var(--primary) }" serta
 * filter: brightness yang membuat gelap/tertutup). */
a.btn-accent {
  color: #1a1a1a !important;
}

a.btn-accent:hover {
  filter: none;
  color: #1a1a1a !important;
  background: #e0900d;
}

/* ============ MISC ============ */
.table {
  --bs-table-bg: transparent;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* Mencegah tabel melebar di luar kontainer */
.admin-page-content .table {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
  min-width: 0;
}

.search-suggest {
  position: absolute;
  top: 105%;
  left: 0;
  right: 0;
  z-index: 1050;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 380px;
  overflow-y: auto;
  display: none;
}

.search-suggest .sgroup {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: 8px 14px 2px;
}

.search-suggest a {
  display: flex;
  gap: 10px;
  padding: 9px 14px;
  color: var(--text);
  font-size: 14px;
}

.search-suggest a:hover {
  background: var(--surface-2);
  text-decoration: none;
}

.search-suggest i {
  color: var(--primary);
  margin-top: 2px;
}

.search-page-group h6 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  color: var(--text-muted);
  margin: 22px 0 10px;
}

.stats-mini {
  font-size: 13px;
  color: var(--text-muted);
}

.day-item {
  border-left: 3px solid var(--primary);
  padding: 4px 0 4px 16px;
  margin-bottom: 14px;
}

.loading-spinner {
  text-align: center;
  padding: 18px;
  display: none;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .hero {
    min-height: 480px;
  }

  .hero-content {
    padding: 120px 0 90px;
  }

  .main-navbar .navbar-collapse {
    background: var(--surface);
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow);
    margin-top: 10px;
    border: 1px solid var(--border);
  }

  .main-navbar:not(.solid) .navbar-collapse .nav-link {
    color: var(--text) !important;
  }
}

@media (max-width: 575.98px) {

  .topbar-contact .hide-sm,
  .topbar-contact .email-text {
    display: none;
  }

  .mobile-contact-bar {
    display: flex;
  }

  body:has(.mobile-contact-bar) {
    padding-bottom: 62px;
  }

  .section {
    padding: 44px 0;
  }

  .float-wa {
    bottom: 68px;
  }

  .parallax-cta {
    background-attachment: scroll;
  }
}