/* ============================================================
   LMS BIMBINGAN KELUARGA SAKINAH - Global Styles
   Mobile-First, Responsive
   ============================================================ */

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

:root {
  --hijau-tua: #1a5c38;
  --hijau-mid: #2d7a50;
  --hijau-muda: #4caf82;
  --hijau-pale: #e8f5ef;
  --emas: #c9a227;
  --emas-muda: #f0d98a;
  --putih: #ffffff;
  --abu-gelap: #1e1e2e;
  --abu: #6b7280;
  --abu-muda: #f3f4f6;
  --merah: #dc2626;
  --biru: #2563eb;
  --oranye: #f59e0b;
  --ungu: #7c3aed;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-arabic: 'Amiri', serif;
  --transition: all 0.2s ease;
}

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

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  background: #f4f6f9;
  color: var(--abu-gelap);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--hijau-tua); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--hijau-mid); }

img { max-width: 100%; display: block; }

/* ============================================================ TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
.text-arabic { font-family: var(--font-arabic); font-size: 1.4rem; color: var(--hijau-tua); }
.text-muted { color: var(--abu); font-size: 0.875rem; }
.text-hijau { color: var(--hijau-tua); }
.text-emas { color: var(--emas); }
.text-merah { color: var(--merah); }

/* ============================================================ LAYOUT */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrapper { display: flex; min-height: 100vh; }
.main-content { flex: 1; min-width: 0; padding: 16px; }

/* ============================================================ SIDEBAR */
.sidebar {
  width: 260px;
  background: var(--hijau-tua);
  color: var(--putih);
  min-height: 100vh;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.sidebar.open { transform: translateX(0); }

.sidebar-logo {
  padding: 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.sidebar-logo img { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 8px; border: 2px solid var(--emas); object-fit: cover; }
.sidebar-logo h4 { font-size: 0.85rem; color: var(--emas); letter-spacing: 1px; text-transform: uppercase; }
.sidebar-logo p { font-size: 0.75rem; color: rgba(255,255,255,0.6); }

.sidebar-nav { flex: 1; padding: 12px 0; }
.nav-section-label { padding: 12px 16px 4px; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.4); }

.nav-item a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; color: rgba(255,255,255,0.8);
  font-size: 0.875rem; font-weight: 500;
  transition: var(--transition); border-radius: 8px; margin: 2px 8px;
}
.nav-item a:hover, .nav-item.active a {
  background: rgba(255,255,255,0.12); color: var(--putih);
}
.nav-item.active a { background: var(--emas); color: var(--hijau-tua); font-weight: 700; }
.nav-item a .icon { font-size: 1.1rem; width: 20px; text-align: center; }
.nav-badge { margin-left: auto; background: var(--merah); color: #fff; font-size: 0.65rem; font-weight: 700; padding: 1px 6px; border-radius: 10px; }

.sidebar-user {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; gap: 10px;
}
.sidebar-user-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--emas); flex-shrink: 0; }
.sidebar-user-info h5 { font-size: 0.8rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.sidebar-user-info small { font-size: 0.7rem; color: rgba(255,255,255,0.5); }

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

/* ============================================================ TOPBAR */
.topbar {
  background: var(--putih);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
}
.topbar-menu-btn {
  background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--abu-gelap);
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; flex-shrink: 0;
}
.topbar-menu-btn:hover { background: var(--abu-muda); }
.topbar-title { font-size: 1rem; font-weight: 700; color: var(--hijau-tua); flex: 1; }
.topbar-actions { display: flex; gap: 8px; }
.topbar-notif {
  position: relative; width: 36px; height: 36px; display: flex; align-items: center;
  justify-content: center; border-radius: 8px; background: var(--abu-muda); cursor: pointer;
  font-size: 1.1rem; color: var(--abu-gelap);
}
.notif-badge {
  position: absolute; top: 4px; right: 4px; width: 8px; height: 8px;
  background: var(--merah); border-radius: 50%; border: 1.5px solid var(--putih);
}

/* ============================================================ CARDS */
.card {
  background: var(--putih); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  border: 1px solid #e8ece9;
}
.card-header {
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}
.card-header h3 { font-size: 1rem; color: var(--abu-gelap); }
.card-body { padding: 20px; }
.card-footer { padding: 12px 20px; border-top: 1px solid #f0f0f0; background: #fafafa; }

/* ============================================================ STAT CARDS */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card {
  background: var(--putih); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 6px;
  border-left: 4px solid transparent; position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px; border-radius: 50%;
  background: currentColor; opacity: 0.06;
}
.stat-card.hijau { border-color: var(--hijau-muda); color: var(--hijau-tua); }
.stat-card.emas { border-color: var(--emas); color: var(--emas); }
.stat-card.biru { border-color: var(--biru); color: var(--biru); }
.stat-card.merah { border-color: var(--merah); color: var(--merah); }
.stat-card .stat-icon { font-size: 1.5rem; }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 800; color: var(--abu-gelap); }
.stat-card .stat-label { font-size: 0.75rem; color: var(--abu); }
.stat-card .stat-sub { font-size: 0.75rem; color: var(--hijau-mid); font-weight: 600; }

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px;
  border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 600;
  cursor: pointer; border: none; transition: var(--transition); text-align: center;
  white-space: nowrap; text-decoration: none; justify-content: center;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--hijau-tua); color: #fff; }
.btn-primary:hover { background: var(--hijau-mid); color: #fff; }
.btn-emas { background: var(--emas); color: #fff; }
.btn-emas:hover { background: #b8911f; color: #fff; }
.btn-merah { background: var(--merah); color: #fff; }
.btn-merah:hover { background: #b91c1c; color: #fff; }
.btn-outline { background: transparent; color: var(--hijau-tua); border: 2px solid var(--hijau-tua); }
.btn-outline:hover { background: var(--hijau-tua); color: #fff; }
.btn-ghost { background: var(--abu-muda); color: var(--abu-gelap); }
.btn-ghost:hover { background: #e2e4e7; color: var(--abu-gelap); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; pointer-events: none; }

/* ============================================================ FORMS */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; color: var(--abu-gelap); }
.form-label .required { color: var(--merah); }
.form-control {
  width: 100%; padding: 10px 14px; border: 1.5px solid #d1d5db;
  border-radius: var(--radius-sm); font-size: 0.875rem; transition: var(--transition);
  font-family: var(--font-main); background: var(--putih); color: var(--abu-gelap);
}
.form-control:focus { outline: none; border-color: var(--hijau-mid); box-shadow: 0 0 0 3px rgba(45,122,80,0.12); }
.form-control.is-invalid { border-color: var(--merah); }
.form-error { color: var(--merah); font-size: 0.75rem; margin-top: 4px; }
.form-hint { color: var(--abu); font-size: 0.75rem; margin-top: 4px; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }

.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ============================================================ TABLES */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.table th {
  background: var(--hijau-pale); color: var(--hijau-tua); font-weight: 700;
  padding: 10px 12px; text-align: left; white-space: nowrap;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.table td { padding: 10px 12px; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.table tr:hover td { background: #fafffe; }
.table tr:last-child td { border-bottom: none; }

/* ============================================================ BADGES */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: 20px; font-size: 0.72rem; font-weight: 700;
}
.badge-hijau { background: var(--hijau-pale); color: var(--hijau-tua); }
.badge-emas { background: #fef3c7; color: #92400e; }
.badge-merah { background: #fee2e2; color: var(--merah); }
.badge-biru { background: #dbeafe; color: var(--biru); }
.badge-abu { background: var(--abu-muda); color: var(--abu); }
.badge-ungu { background: #ede9fe; color: var(--ungu); }

/* ============================================================ ALERTS */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.875rem; display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px;
}
.alert-success { background: var(--hijau-pale); color: var(--hijau-tua); border: 1px solid #a7d7bb; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* ============================================================ PROGRAM CARDS */
.program-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.program-card {
  background: var(--putih); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: var(--transition); border: 1px solid #e8ece9;
}
.program-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.program-thumb { height: 160px; object-fit: cover; width: 100%; background: var(--hijau-pale); }
.program-thumb-placeholder {
  height: 160px; background: linear-gradient(135deg, var(--hijau-tua), var(--hijau-mid));
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.program-body { padding: 16px; }
.program-body h3 { font-size: 0.95rem; margin-bottom: 6px; }
.program-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.program-price { font-size: 1.1rem; font-weight: 800; color: var(--hijau-tua); margin-bottom: 12px; }
.program-price.gratis { color: var(--merah); }

/* ============================================================ PROGRESS BAR */
.progress { background: #e5e7eb; border-radius: 20px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 20px; background: var(--hijau-mid); transition: width 0.5s ease; }
.progress-bar.emas { background: var(--emas); }
.progress-label { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--abu); margin-bottom: 4px; }

/* ============================================================ MODAL */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 200; align-items: flex-end; justify-content: center; padding: 0;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--putih); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-header {
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #f0f0f0; position: sticky; top: 0; background: var(--putih); z-index: 1;
}
.modal-header h3 { font-size: 1rem; }
.modal-close { background: var(--abu-muda); border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.modal-body { padding: 20px; }
.modal-footer { padding: 12px 20px; border-top: 1px solid #f0f0f0; display: flex; gap: 8px; }

/* ============================================================ CERTIFICATE */
.certificate-wrapper {
  background: linear-gradient(135deg, #fdfdf5, #fff9e6);
  border: 8px solid var(--emas); border-radius: 16px;
  padding: 40px; text-align: center; position: relative;
  font-family: var(--font-arabic); box-shadow: inset 0 0 40px rgba(201,162,39,0.08);
}
.certificate-corner {
  position: absolute; width: 60px; height: 60px;
  background: radial-gradient(var(--emas), var(--hijau-tua));
  border-radius: 50%; opacity: 0.15;
}
.certificate-corner.tl { top: 16px; left: 16px; }
.certificate-corner.tr { top: 16px; right: 16px; }
.certificate-corner.bl { bottom: 16px; left: 16px; }
.certificate-corner.br { bottom: 16px; right: 16px; }

/* ============================================================ LOGIN PAGE */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--hijau-tua) 0%, var(--hijau-mid) 50%, #4a8f6a 100%);
  padding: 20px; position: relative;
}
.login-page::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.login-card {
  background: var(--putih); border-radius: 20px; width: 100%; max-width: 420px;
  padding: 32px 28px; box-shadow: 0 20px 60px rgba(0,0,0,0.25); position: relative; z-index: 1;
}
.login-logo { text-align: center; margin-bottom: 24px; }
.login-logo img { width: 80px; height: 80px; object-fit: contain; margin: 0 auto 12px; }
.login-logo h2 { color: var(--hijau-tua); font-size: 1.1rem; line-height: 1.4; }
.login-logo small { color: var(--abu); font-size: 0.8rem; }

/* ============================================================ LANDING PAGE */
.hero-section {
  background: linear-gradient(160deg, var(--hijau-tua) 0%, var(--hijau-mid) 100%);
  padding: 60px 16px 80px; text-align: center; position: relative; overflow: hidden;
  color: var(--putih);
}
.hero-section::after {
  content: ''; position: absolute; bottom: -30px; left: 0; right: 0;
  height: 60px; background: #f4f6f9; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

/* ============================================================ CHECKOUT */
.checkout-steps {
  display: flex; justify-content: center; gap: 0; margin-bottom: 24px; 
}
.step {
  display: flex; align-items: center; gap: 8px; padding: 8px 16px;
  font-size: 0.78rem; font-weight: 600; color: var(--abu);
}
.step.active { color: var(--hijau-tua); }
.step.done { color: var(--hijau-muda); }
.step-circle {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700;
  flex-shrink: 0;
}
.step.active .step-circle { background: var(--hijau-tua); color: #fff; border-color: var(--hijau-tua); }
.step.done .step-circle { background: var(--hijau-muda); color: #fff; border-color: var(--hijau-muda); }
.step-line { width: 30px; height: 2px; background: #e5e7eb; }

/* ============================================================ COUNTDOWN TIMER */
.countdown-box {
  background: linear-gradient(135deg, var(--hijau-tua), var(--hijau-mid));
  color: var(--putih); border-radius: var(--radius); padding: 16px; text-align: center;
}
.countdown-timer { display: flex; gap: 12px; justify-content: center; margin-top: 8px; }
.countdown-unit { text-align: center; }
.countdown-unit .num { font-size: 2rem; font-weight: 800; display: block; font-variant-numeric: tabular-nums; }
.countdown-unit .lbl { font-size: 0.65rem; opacity: 0.8; text-transform: uppercase; letter-spacing: 1px; }

/* ============================================================ TABS */
.tabs { display: flex; gap: 0; border-bottom: 2px solid #e5e7eb; margin-bottom: 20px; overflow-x: auto; }
.tab-btn {
  padding: 10px 16px; font-size: 0.875rem; font-weight: 600; color: var(--abu);
  background: none; border: none; cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: var(--transition);
}
.tab-btn.active { color: var(--hijau-tua); border-bottom-color: var(--hijau-tua); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ============================================================ MATERI ITEM */
.materi-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border-radius: var(--radius-sm); border: 1px solid #e5e7eb;
  margin-bottom: 8px; transition: var(--transition); cursor: pointer;
}
.materi-item:hover { border-color: var(--hijau-muda); background: var(--hijau-pale); }
.materi-item.done { border-color: var(--hijau-muda); }
.materi-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.materi-icon.video { background: #fee2e2; }
.materi-icon.pdf { background: #dbeafe; }
.materi-icon.teks { background: var(--hijau-pale); }
.materi-icon.quiz { background: #ede9fe; }
.materi-title { flex: 1; font-size: 0.875rem; font-weight: 600; }
.materi-meta { font-size: 0.75rem; color: var(--abu); }
.materi-check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #d1d5db; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; flex-shrink: 0; }
.materi-item.done .materi-check { background: var(--hijau-muda); border-color: var(--hijau-muda); color: #fff; }

/* ============================================================ FLOAT ACTION */
.fab {
  position: fixed; bottom: 20px; right: 20px; width: 52px; height: 52px;
  background: var(--emas); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff; box-shadow: 0 4px 16px rgba(201,162,39,0.4); cursor: pointer;
  z-index: 90; border: none; transition: var(--transition);
}
.fab:hover { transform: scale(1.1); }

/* ============================================================ UPLOAD AREA */
.upload-area {
  border: 2px dashed #d1d5db; border-radius: var(--radius); padding: 32px;
  text-align: center; cursor: pointer; transition: var(--transition);
}
.upload-area:hover, .upload-area.drag { border-color: var(--hijau-mid); background: var(--hijau-pale); }
.upload-area input[type="file"] { display: none; }

/* ============================================================ TOAST */
.toast-container { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 999; width: calc(100% - 32px); max-width: 400px; }
.toast {
  background: var(--abu-gelap); color: #fff; padding: 12px 16px; border-radius: var(--radius-sm);
  margin-top: 8px; display: flex; align-items: center; gap: 10px; font-size: 0.875rem;
  animation: toastIn 0.3s ease; box-shadow: var(--shadow-lg);
}
.toast.success { background: var(--hijau-tua); }
.toast.error { background: var(--merah); }
.toast.warning { background: var(--emas); }
@keyframes toastIn { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ============================================================ PAGINATION */
.pagination { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; padding: 16px 0; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  font-size: 0.875rem; border: 1px solid #e5e7eb; transition: var(--transition);
}
.pagination a:hover { background: var(--hijau-pale); border-color: var(--hijau-mid); color: var(--hijau-tua); }
.pagination .active { background: var(--hijau-tua); color: #fff; border-color: var(--hijau-tua); }

/* ============================================================ EMPTY STATE */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state .empty-icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 1rem; color: var(--abu-gelap); margin-bottom: 8px; }
.empty-state p { font-size: 0.875rem; color: var(--abu); }

/* ============================================================ RESPONSIVE */
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .sidebar { transform: translateX(0); position: fixed; }
  .sidebar-overlay { display: none !important; }
  .main-content { margin-left: 260px; }
  .topbar-menu-btn { display: none; }
  .modal { border-radius: var(--radius-lg); }
  .modal-overlay { align-items: center; padding: 20px; }
  .program-grid { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 2.2rem; }
}

@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card .stat-value { font-size: 1.3rem; }
}

/* Print styles untuk sertifikat */
@media print {
  .sidebar, .topbar, .fab, .btn, nav { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .certificate-wrapper { border: 4px solid #000; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.2); border-radius: 3px; }
