@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  /* === Hijau + Kuning + Putih === */
  --primary:       #16a34a;
  --primary-dark:  #15803d;
  --primary-light: #22c55e;
  --secondary:     #eab308;
  --secondary-dark:#ca8a04;
  --success:       #16a34a;
  --warning:       #eab308;
  --danger:        #ef4444;
  --info:          #0ea5e9;

  /* Backgrounds & surfaces (light mode) */
  --dark:          #f0fdf4;
  --dark-2:        #ffffff;
  --dark-3:        #f1f5f9;
  --sidebar-bg:    #14532d;
  --sidebar-hover: rgba(255,255,255,0.10);
  --sidebar-active:rgba(255,255,255,0.18);

  /* Text */
  --text-light:    #1e293b;
  --text-muted:    #64748b;

  /* UI */
  --border:        rgba(0,0,0,0.08);
  --glass:         rgba(22,163,74,0.05);
  --glass-hover:   rgba(22,163,74,0.09);
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 4px 24px rgba(0,0,0,0.10);
  --sidebar-w:     260px;
  --transition:    0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text-light);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f0fdf4; }
::-webkit-scrollbar-thumb { background: #86efac; border-radius: 3px; }

/* ===== LAYOUT ===== */
.wrapper { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: none;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
  transition: transform var(--transition);
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

.sidebar-logo {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo .logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, #eab308, #f59e0b);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(234,179,8,0.4);
}

.sidebar-logo .logo-text h2 {
  font-size: 15px; font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.sidebar-logo .logo-text span {
  font-size: 11px; color: rgba(255,255,255,0.6);
}

.sidebar-nav { padding: 12px 0; flex: 1; }

.nav-section {
  padding: 8px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: rgba(255,255,255,0.40);
  text-transform: uppercase;
  margin-top: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.70);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 0;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}

.nav-item:hover {
  background: var(--sidebar-hover);
  color: #ffffff;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(234,179,8,0.25), transparent);
  color: #fde68a;
  border-left: 3px solid #eab308;
  padding-left: 17px;
}

.nav-item i {
  width: 18px;
  text-align: center;
  font-size: 15px;
  flex-shrink: 0;
}

.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-footer .avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #eab308, #16a34a);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #fff;
  flex-shrink: 0;
}

.sidebar-footer .user-info h4 { font-size: 13px; font-weight: 600; color: #fff; }
.sidebar-footer .user-info span { font-size: 11px; color: rgba(255,255,255,0.55); }
.sidebar-footer .logout-btn {
  margin-left: auto;
  color: rgba(255,255,255,0.5);
  font-size: 16px;
  cursor: pointer;
  transition: color var(--transition);
}
.sidebar-footer .logout-btn:hover { color: #fca5a5; }

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== TOPBAR ===== */
.topbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.topbar-title { font-size: 17px; font-weight: 700; flex: 1; }
.topbar-title span { font-size: 13px; color: var(--text-muted); font-weight: 400; display: block; }

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.btn-icon {
  width: 38px; height: 38px;
  background: #f0fdf4;
  border: 1px solid #d1fae5;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 16px;
  transition: all var(--transition);
  position: relative;
}
.btn-icon:hover { background: #dcfce7; color: #15803d; }
.btn-icon .notif-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid #ffffff;
}

/* ===== PAGE CONTENT ===== */
.page-content { padding: 28px; flex: 1; }

/* ===== CARDS ===== */
.card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-header h3 {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header h3 i { color: var(--primary-light); }

.card-body { padding: 22px; }

/* ===== STAT CARDS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.stat-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.blue   { background: rgba(22,163,74,0.12);  color: #16a34a; }
.stat-icon.green  { background: rgba(22,163,74,0.18);  color: #15803d; }
.stat-icon.yellow { background: rgba(234,179,8,0.15);  color: #ca8a04; }
.stat-icon.red    { background: rgba(239,68,68,0.12);  color: #dc2626; }
.stat-icon.cyan   { background: rgba(14,165,233,0.12); color: #0284c7; }
.stat-icon.purple { background: rgba(22,163,74,0.10);  color: #166534; }

.stat-info h3 { font-size: 26px; font-weight: 800; line-height: 1; }
.stat-info p  { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stat-info .trend { font-size: 11px; margin-top: 4px; }
.stat-info .trend.up   { color: var(--success); }
.stat-info .trend.down { color: var(--danger); }

/* ===== TABLES ===== */
.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

thead th {
  background: #f0fdf4;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 13px 16px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid #bbf7d0;
}

tbody tr {
  border-top: 1px solid #f1f5f9;
  transition: background var(--transition);
}

tbody tr:hover { background: #f0fdf4; }
tbody td { padding: 13px 16px; font-size: 13.5px; vertical-align: middle; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success  { background: #dcfce7; color: #15803d; }
.badge-warning  { background: #fef9c3; color: #854d0e; }
.badge-danger   { background: #fee2e2; color: #dc2626; }
.badge-info     { background: #e0f2fe; color: #0369a1; }
.badge-primary  { background: #dcfce7; color: #166534; }
.badge-dark     { background: #f1f5f9;  color: #64748b; }
.badge-secondary{ background: #f1f5f9;  color: #64748b; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary   { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-success   { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-warning   { background: #eab308; color: #1a1a1a; font-weight:700; }
.btn-warning:hover { background: #ca8a04; }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-info      { background: var(--info); color: #fff; }
.btn-secondary { background: #f1f5f9; color: #475569; border:1px solid #e2e8f0; }
.btn-secondary:hover { background: #e2e8f0; color: #1e293b; }
.btn-outline {
  background: transparent;
  border: 1px solid #d1fae5;
  color: #16a34a;
}
.btn-outline:hover { background: #f0fdf4; color: #15803d; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-xs { padding: 3px 9px; font-size: 11px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-sm);
  color: #1e293b;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}

.form-control::placeholder { color: #94a3b8; }

select.form-control option { background: #ffffff; }

textarea.form-control { resize: vertical; min-height: 90px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ===== MODALS ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-backdrop.show { display: flex; }

.modal {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  animation: modalIn 0.25s ease;
}

.modal-lg { max-width: 800px; }

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h4 { font-size: 16px; font-weight: 700; }
.modal-close { cursor: pointer; color: var(--text-muted); font-size: 20px; }
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ===== ALERTS ===== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 13.5px;
}

.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-danger  { background: #fff1f2; border: 1px solid #fecdd3; color: #b91c1c; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-info    { background: #f0f9ff; border: 1px solid #bae6fd; color: #075985; }

/* ===== SEARCH & FILTER ===== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-input-wrap i {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-input-wrap input {
  width: 100%;
  padding-left: 36px;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

.page-links { display: flex; gap: 4px; }
.page-links a, .page-links span {
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 13px;
  transition: all var(--transition);
  color: var(--text-muted);
}
.page-links a:hover   { background: var(--glass); color: var(--text-light); }
.page-links .active   { background: #16a34a; border-color: #16a34a; color: #fff; }
.page-links .disabled { opacity: 0.4; pointer-events: none; }

/* ===== CHARTS ===== */
.chart-container {
  position: relative;
  height: 280px;
  width: 100%;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
}

.empty-state i { font-size: 48px; margin-bottom: 14px; opacity: 0.4; }
.empty-state h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.empty-state p  { font-size: 13px; }

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 50%, #fefce8 100%);
  position: relative;
  overflow: hidden;
}

.login-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(22,163,74,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(234,179,8,0.12) 0%, transparent 50%);
}

.login-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #d1fae5;
  border-radius: 20px;
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(22,163,74,0.12);
}

.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo .icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #16a34a, #eab308);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 14px;
  box-shadow: 0 8px 24px rgba(22,163,74,0.35);
}

.login-logo h1 { font-size: 22px; font-weight: 800; }
.login-logo p  { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.login-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin: 20px 0;
  position: relative;
}
.login-divider::before, .login-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--border);
}
.login-divider::before { left: 0; }
.login-divider::after  { right: 0; }

/* ===== DASHBOARD CHARTS GRID ===== */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  animation: toastIn 0.3s ease;
  color: #1e293b;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.toast-success { border-left: 3px solid var(--success); }
.toast-danger  { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warning); }

/* ===== LOADER ===== */
.page-loader {
  position: fixed; inset: 0;
  background: #f0fdf4;
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

.spinner {
  width: 44px; height: 44px;
  border: 3px solid #d1fae5;
  border-top-color: #16a34a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== MISC ===== */
.text-muted  { color: #64748b; }
.text-success{ color: #16a34a; }
.text-danger { color: #dc2626; }
.text-warning{ color: #ca8a04; }
.text-primary{ color: #16a34a; }
.text-info   { color: #0284c7; }
.fw-bold { font-weight: 700; }
.fw-600  { font-weight: 600; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.w-100 { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .charts-grid { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Tabel bisa di-scroll horizontal */
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table { min-width: 600px; }

  /* Grid halaman modul (1fr + sidebar) jadi 1 kolom */
  [style*="grid-template-columns:1fr 340px"],
  [style*="grid-template-columns: 1fr 340px"],
  [style*="grid-template-columns:1fr 300px"],
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Topbar: kurangi padding */
  .topbar { padding: 0 16px; }
  .topbar-title { font-size: 15px; }
  .topbar-title span { display: none; }

  /* Flash message padding */
  [style*="padding: 0 28px"] { padding: 0 16px !important; }
}

@media (max-width: 768px) {
  /* Page content */
  .page-content { padding: 16px; }

  /* Stats grid */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Card header flex wrap */
  .card-header { flex-wrap: wrap; gap: 8px; padding: 14px 16px; }
  .card-body { padding: 16px; }

  /* Buttons smaller */
  .btn { padding: 8px 14px; font-size: 13px; }
  .btn-sm { padding: 5px 10px; font-size: 12px; }
  .btn-xs { padding: 3px 7px; font-size: 11px; }

  /* Form group */
  .form-group { margin-bottom: 14px; }
  .form-control { font-size: 14px; }

  /* d-flex align-center gap-2 (breadcrumb style) */
  .d-flex.align-center.gap-2.mb-3 { flex-wrap: wrap; gap: 8px; }

  /* Action buttons table row */
  td .d-flex { flex-wrap: wrap; gap: 4px; }

  /* Login card */
  .login-card { padding: 28px 20px; }
  .login-logo h1 { font-size: 24px; }
}

@media (max-width: 576px) {
  /* Stats 1 kolom */
  .stats-grid { grid-template-columns: 1fr; }

  /* Topbar */
  .topbar { height: 56px; gap: 8px; }
  .topbar-title { font-size: 14px; }

  /* Page content less padding */
  .page-content { padding: 12px; }

  /* Card */
  .card-header { padding: 12px 14px; }
  .card-body { padding: 14px; }

  /* Table action buttons dalam satu baris */
  td form, td a.btn { display: inline; }

  /* Modal / popup */
  .modal-box { padding: 20px 16px; }

  /* Alert */
  .alert { padding: 10px 14px; font-size: 13px; }

  /* Login page */
  .login-page { padding: 16px; }
  .login-card { padding: 24px 16px; }
  .demo-users { padding: 10px; }
  .demo-row { gap: 4px; }
  .demo-chip { font-size: 10px; padding: 3px 8px; }
}

/* ===== MENU TOGGLE ===== */
.menu-toggle {
  display: none;
  width: 38px; height: 38px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  font-size: 18px;
}

@media (max-width: 992px) { .menu-toggle { display: flex; } }

/* ===== OVERLAY ===== */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}
.sidebar-overlay.show { display: block; }

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  z-index: 98;
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

.mobile-bottom-nav .bnav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-bottom-nav .bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 12px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: color .2s;
  min-width: 56px;
}

.mobile-bottom-nav .bnav-item i { font-size: 20px; }
.mobile-bottom-nav .bnav-item.active { color: #16a34a; }
.mobile-bottom-nav .bnav-item:hover { color: #16a34a; }

@media (max-width: 992px) {
  .mobile-bottom-nav { display: block; }
  /* Beri ruang di bawah agar konten tidak tertutup bottom nav */
  .page-content { padding-bottom: 72px; }
}

/* ===== TOUCH FRIENDLY ===== */
@media (hover: none) and (pointer: coarse) {
  .btn, .nav-item, .btn-icon, .bnav-item { min-height: 44px; }
  .form-control, select.form-control { min-height: 44px; font-size: 16px; }
  .nav-item { padding: 14px 20px; }
}

