body { font-family: 'Inter', sans-serif; margin: 0; padding: 0; overflow: hidden; background-color: #F8F8F9; color: #111439; }
.iframe-container { position: relative; width: 100%; height: 100vh; padding-top: 60px; box-sizing: border-box; }
.iframe-container iframe { position: absolute; top: 60px; left: 0; width: 100%; height: calc(100vh - 60px); border: none; }
/* ============================================================
   LAPIS 2: Overlay untuk memblokir area header Google Form
   (tombol "Ganti akun", "Bantuan", dll)
   ============================================================ */
#exam-frame-overlay {
	position: absolute;
	top: 60px;              /* di bawah header CBT */
	left: 0;
	width: 100%;
	height: 64px;           /* tinggi area header Google Form */
	background: transparent;
	z-index: 10;            /* di atas iframe */
	cursor: not-allowed;
	pointer-events: auto;   /* tangkap klik */
	display: none;          /* sembunyi secara default */
}
/* ============================================================ */
/* OVERLAY: Setelah siswa submit Google Form                    */
/* ============================================================ */
#submit-success-overlay {
    transition: opacity 0.3s ease;
}

#submit-success-overlay.hidden {
    display: none !important;
    opacity: 0;
}

#submit-success-overlay:not(.hidden) {
    display: flex !important;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* Munculkan overlay saat ujian aktif */
body.exam-active #exam-frame-overlay {
	display: block;
}
#lock-overlay, #setup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(17, 20, 57, 0.95); z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; color: white; backdrop-filter: blur(12px); }
.hidden { display: none !important; }
.secure-pin { -webkit-text-security: disc; -moz-text-security: disc; font-family: 'Courier New', monospace; letter-spacing: 0.3em; }
.secure-pin.revealed { -webkit-text-security: none !important; -moz-text-security: none !important; letter-spacing: normal !important; font-family: 'Inter', sans-serif; font-weight: 700; }
.pin-input-wrapper { position: relative; width: 100%; }
.pin-input-wrapper input { padding-right: 34px !important; }
.pin-toggle-btn { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: #9ca3af; cursor: pointer; padding: 4px 7px; font-size: 11px; border-radius: 6px; transition: all 0.15s; display: flex; align-items: center; justify-content: center; line-height: 1; z-index: 20; pointer-events: auto; user-select: none; }
.pin-toggle-btn i { pointer-events: none; }
.pin-toggle-btn:hover { color: #111439; background: #F3F4F6; }
.pin-toggle-btn.active { color: #059669; }
@keyframes stripeFloat { 0% { transform: translateY(0px) scale(1) rotate(0deg); } 50% { transform: translateY(-20px) scale(1.05) rotate(2deg); } 100% { transform: translateY(0px) scale(1) rotate(0deg); } }
.stripe-glow-1 { animation: stripeFloat 16s ease-in-out infinite alternate; }
.stripe-glow-2 { animation: stripeFloat 20s ease-in-out infinite alternate-reverse; }
.stripe-glass { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(24px); border: 1px solid rgba(17, 20, 57, 0.08); box-shadow: 0 30px 60px rgba(17, 20, 57, 0.08), 0 10px 20px rgba(0, 0, 0, 0.04); }
.stripe-button { background: linear-gradient(135deg, #111439 0%, #2b307b 100%); box-shadow: 0 10px 25px -5px rgba(17, 20, 57, 0.25), 0 8px 10px -6px rgba(17, 20, 57, 0.15); transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.stripe-button:hover { transform: translateY(-2px); box-shadow: 0 15px 30px -5px rgba(17, 20, 57, 0.35), 0 10px 15px -5px rgba(17, 20, 57, 0.2); }
.stripe-button:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #F8F8F9; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }
.tab-nav-btn { padding: 0.75rem 1.25rem; border-radius: 0.75rem; font-size: 12px; font-weight: 700; white-space: nowrap; transition: all 0.2s; border: 1px solid #e5e7eb; background: white; color: #6b7280; cursor: pointer; }
.tab-nav-btn:hover { color: #111439; border-color: #9ca3af; }
.tab-nav-btn.active { background: #111439; color: white; border-color: #111439; box-shadow: 0 10px 15px -3px rgba(17, 20, 57, 0.2); }
.tab-nav-btn.warning-tab { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.tab-nav-btn.warning-tab.active { background: #D97706; color: white; border-color: #D97706; }
.tab-nav-btn.op-tab { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.tab-nav-btn.op-tab.active { background: #059669; color: white; border-color: #059669; }
.tab-notif-badge { display: inline-block; background: #dc2626; color: white; font-size: 9px; font-weight: 900; padding: 2px 6px; border-radius: 999px; margin-left: 6px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.class-multiselect { position: relative; width: 100%; }
.class-multiselect-btn { width: 100%; background: #F8F8F9; border: 1px solid #d1d5db; border-radius: 0.75rem; padding: 0.5rem 0.75rem; font-size: 11px; font-weight: 700; color: #111439; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s; min-height: 34px; }
.class-multiselect-btn:hover { border-color: #9ca3af; }
.class-multiselect-btn.active { border-color: #111439; box-shadow: 0 0 0 2px rgba(17, 20, 57, 0.15); }
.class-multiselect-btn .placeholder { color: #9ca3af; font-weight: 500; }
.class-multiselect-btn .label-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90%; }
.class-multiselect-panel { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: white; border: 1px solid #d1d5db; border-radius: 0.75rem; box-shadow: 0 10px 25px rgba(17, 20, 57, 0.15); max-height: 220px; overflow-y: auto; z-index: 100; padding: 6px; display: none; }
.class-multiselect-panel.show { display: block; }
.class-multiselect-panel .search-box { width: 100%; padding: 6px 10px; font-size: 11px; border: 1px solid #e5e7eb; border-radius: 0.5rem; margin-bottom: 6px; outline: none; }
.class-multiselect-panel .search-box:focus { border-color: #111439; }
.class-multiselect-panel .option { display: flex; align-items: center; padding: 6px 8px; border-radius: 0.5rem; cursor: pointer; font-size: 11px; font-weight: 600; color: #111439; transition: background 0.15s; }
.class-multiselect-panel .option:hover { background: #F3F4F6; }
.class-multiselect-panel .option input[type="checkbox"] { margin-right: 8px; accent-color: #111439; cursor: pointer; width: 14px; height: 14px; }
.class-multiselect-panel .option.checked { background: #EFF6FF; color: #1e40af; }
.class-multiselect-panel .empty-msg { text-align: center; font-size: 11px; color: #9ca3af; padding: 12px 6px; font-style: italic; }
.class-multiselect-panel .action-row { display: flex; justify-content: space-between; gap: 6px; padding: 6px 4px 2px; border-top: 1px solid #F3F4F6; margin-top: 4px; }
.class-multiselect-panel .action-row button { flex: 1; font-size: 10px; font-weight: 700; padding: 5px 8px; border-radius: 0.5rem; border: 1px solid #e5e7eb; background: white; color: #111439; cursor: pointer; transition: all 0.15s; }
.class-multiselect-panel .action-row button:hover { background: #F3F4F6; }
.class-multiselect-panel .action-row button.clear-btn { background: #FEF2F2; color: #dc2626; border-color: #FECACA; }
.class-multiselect-panel .action-row button.clear-btn:hover { background: #FEE2E2; }
.all-classes-badge { display: inline-block; background: #ECFDF5; color: #059669; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 999px; border: 1px solid #A7F3D0; margin-left: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.section-header { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 2px solid #F3F4F6; margin-bottom: 22px; }
.section-header .icon-box { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: white; flex-shrink: 0; box-shadow: 0 10px 20px -8px rgba(0,0,0,0.25); }
.section-header h3 { font-size: 18px; font-weight: 900; color: #111439; margin: 0; }
.section-header p { font-size: 11px; color: #6b7280; margin: 4px 0 0; font-weight: 500; }
.section-header .counter-badge { margin-left: auto; background: #F3F4F6; color: #111439; font-size: 11px; font-weight: 800; padding: 6px 12px; border-radius: 999px; border: 1px solid #e5e7eb; }
.multi-acc-row-high { background: #FEF2F2 !important; }
.multi-acc-row-med { background: #FFF7ED !important; }
.multi-acc-row-low { background: #FEFCE8 !important; }
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast-item { background: white; border-radius: 14px; padding: 14px 18px; min-width: 300px; max-width: 420px; box-shadow: 0 20px 40px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.08); border-left: 4px solid #111439; display: flex; align-items: flex-start; gap: 12px; animation: slideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1); pointer-events: auto; }
.toast-item.success { border-left-color: #059669; }
.toast-item.error { border-left-color: #dc2626; }
.toast-item.warning { border-left-color: #d97706; }
.toast-item.info { border-left-color: #2563eb; }
.toast-item .toast-icon { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.toast-item.success .toast-icon { background: #ECFDF5; color: #059669; }
.toast-item.error .toast-icon { background: #FEF2F2; color: #dc2626; }
.toast-item.warning .toast-icon { background: #FFFBEB; color: #d97706; }
.toast-item.info .toast-icon { background: #EFF6FF; color: #2563eb; }
.toast-item .toast-title { font-size: 12px; font-weight: 900; color: #111439; margin-bottom: 2px; }
.toast-item .toast-msg { font-size: 11px; color: #4b5563; line-height: 1.4; }
@keyframes slideInRight { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(120%); opacity: 0; } }
.toast-item.removing { animation: slideOutRight 0.3s ease forwards; }
.spinner-sm { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.role-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.role-badge.admin { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.role-badge.operator { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.role-badge.teacher { background: #EFF6FF; color: #1e40af; border: 1px solid #BFDBFE; }
.login-choice-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px 12px; border-radius: 16px; border: 2px solid #e5e7eb; background: white; cursor: pointer; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); text-align: center; gap: 8px; }
.login-choice-btn:hover { border-color: #111439; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(17,20,57,0.08); }
.login-choice-btn .lc-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: white; }
.login-choice-btn .lc-label { font-size: 12px; font-weight: 900; color: #111439; }
.login-choice-btn .lc-sub { font-size: 9px; color: #6b7280; font-weight: 600; }
.subject-owner-tag { display: inline-flex; align-items: center; gap: 4px; background: #EFF6FF; color: #1e40af; border: 1px solid #BFDBFE; font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.3px; }
.subject-owner-tag.mine { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.subject-owner-tag.other { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.version-badge { font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: #F3F4F6; color: #6b7280; }
.version-badge.updated { background: #FEF3C7; color: #92400E; }
.quick-date-btn.active { background: #059669 !important; color: white !important; border-color: #059669 !important; }
.teacher-name-tag { display: inline-flex; align-items: center; gap: 4px; background: #EFF6FF; color: #1e40af; border: 1px solid #BFDBFE; font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.teacher-name-tag.inactive { background: #F3F4F6; color: #6b7280; border-color: #e5e7eb; }
/* ============================================================ */
/* FIX TOMBOL DI HP — Perbesar & Percepat Respon                */
/* ============================================================ */

/* Base: semua tombol aksi */
.remote-unlock-btn,
.delete-operator-btn,
.delete-subject-btn,
.delete-teacher-btn,
.reset-pwd-btn {
    -webkit-tap-highlight-color: transparent;   /* Hilangkan highlight biru */
    touch-action: manipulation;                 /* Hilangkan delay 300ms */
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

/* Efek "pressed" saat diklik */
.remote-unlock-btn:active,
.delete-operator-btn:active,
.delete-subject-btn:active,
.delete-teacher-btn:active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* ============================================================ */
/* KHUSUS HP (layar < 768px)                                    */
/* ============================================================ */
@media (max-width: 768px) {
    
    /* Tombol Unlock — perbesar */
    .remote-unlock-btn {
        min-height: 44px !important;      /* Standar iOS */
        min-width: 90px !important;
        font-size: 12px !important;
        padding: 10px 16px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
    
    /* Tombol Hapus Operator */
    .delete-operator-btn,
    .delete-subject-btn,
    .delete-teacher-btn {
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 10px 14px !important;
    }
    
    /* Tombol di modal konfirmasi */
    #custom-confirm-ok,
    #custom-confirm-cancel {
        min-height: 50px !important;
        font-size: 14px !important;
        padding: 14px 20px !important;
    }
    
    /* Modal di HP */
    #custom-confirm-card {
        max-width: 92% !important;
        max-height: 90vh !important;
        overflow-y: auto;
    }
    
    /* Font di modal */
    #custom-confirm-title {
        font-size: 18px !important;
    }
    #custom-confirm-message {
        font-size: 13px !important;
        line-height: 1.5;
    }
}

/* ============================================================ */
/* SIDEBAR STYLE — Transform Tab Nav jadi Sidebar Vertikal      */
/* Ditambahkan: 2026-10-03                                       */
/* Pendekatan CSS-only, tanpa ubah HTML                          */
/* ============================================================ */

/* ---------- LAYOUT DASHBOARD: SIDEBAR KIRI ---------- */
#admin-dashboard-overlay > div:first-child {
    display: block !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;   /* ✅ CEGAH SIDEBAR MUNCUL SEBAGIAN */
}

/* ---------- HEADER DASHBOARD: TETAP DI ATAS ---------- */
#admin-dashboard-overlay > div:first-child > div:first-child {
    padding: 16px 24px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-bottom: 2px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 30;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-left: 260px !important;
    width: calc(100% - 260px) !important;
    box-sizing: border-box !important;
}

/* ---------- TAB NAV: JADI SIDEBAR VERTIKAL ---------- */
#admin-dashboard-overlay > div:first-child > div.bg-white.p-2 {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 260px !important;
    height: 100vh !important;
    flex-direction: column !important;
    padding: 16px 12px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-right: 2px solid #e5e7eb !important;
    border-left: none !important;
    border-top: none !important;
    border-bottom: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    background: #ffffff !important;
    z-index: 35 !important;
    box-shadow: 2px 0 12px rgba(0,0,0,0.08);
    display: flex !important;
    gap: 4px !important;
    box-sizing: border-box !important;
    padding-top: 20px !important;
}

/* Tab nav button styling di sidebar */
#admin-dashboard-overlay > div:first-child > div.bg-white.p-2 > button {
    width: 100% !important;
    text-align: left !important;
    justify-content: flex-start !important;
    padding: 12px 14px !important;
    margin-bottom: 2px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0 !important;
    min-height: 44px !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Ikon tab */
#admin-dashboard-overlay > div:first-child > div.bg-white.p-2 > button > i {
    margin-right: 10px !important;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Tab aktif */
#admin-dashboard-overlay > div:first-child > div.bg-white.p-2 > button.active {
    background: #111439 !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(17,20,57,0.2) !important;
    border-color: #111439 !important;
}

/* Tab hover */
#admin-dashboard-overlay > div:first-child > div.bg-white.p-2 > button:not(.active):hover {
    background: #F3F4F6 !important;
    color: #111439 !important;
    transform: translateX(3px);
}

/* ---------- KONTEN DI KANAN SIDEBAR ---------- */
#admin-dashboard-overlay > div:first-child > div:not(:first-child):not(.bg-white.p-2) {
    margin-left: 260px !important;
    padding: 24px !important;
    width: calc(100% - 260px) !important;
    box-sizing: border-box !important;
}

/* ---------- SCROLLBAR SIDEBAR ---------- */
#admin-dashboard-overlay > div:first-child > div.bg-white.p-2::-webkit-scrollbar {
    width: 6px;
}

#admin-dashboard-overlay > div:first-child > div.bg-white.p-2::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

/* ---------- RESPONSIVE: MOBILE (Tablet & HP) ---------- */
@media (max-width: 1024px) {
     #admin-dashboard-overlay > div:first-child > div.bg-white.p-2 {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 260px !important;
        height: 100vh !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 100 !important;
        box-shadow: none !important;
    }
    
    #admin-dashboard-overlay > div:first-child > div.bg-white.p-2.show {
        transform: translateX(0) !important;
        box-shadow: 4px 0 20px rgba(0,0,0,0.3) !important;
    }
    
    #admin-dashboard-overlay > div:first-child > div:first-child {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    #admin-dashboard-overlay > div:first-child > div:not(:first-child):not(.bg-white.p-2) {
        margin-left: 0 !important;
        width: 100% !important;
    }
}

/* ---------- AKHIR CSS SIDEBAR ---------- */

/* ============================================================ */
/* FIX MODAL: Pastikan selalu di atas                           */
/* ============================================================ */
#custom-confirm-modal {
    z-index: 999999 !important;
}

#custom-confirm-modal button,
#custom-confirm-modal a {
    pointer-events: auto !important;
    -webkit-tap-highlight-color: transparent;
}


/* ============================================================ */
/* DARK MODE — Stripe Elegance                                  */
/* Ditambahkan: 2026-10-03                                       */
/* ============================================================ */

/* ---------- VARIABEL WARNA ---------- */
:root {
    --dm-bg-primary: #F8F8F9;
    --dm-bg-secondary: #FFFFFF;
    --dm-bg-tertiary: #F3F4F6;
    --dm-text-primary: #111439;
    --dm-text-secondary: #6b7280;
    --dm-text-muted: #9ca3af;
    --dm-border: #e5e7eb;
    --dm-sidebar-bg: #FFFFFF;
    --dm-sidebar-hover: #F3F4F6;
    --dm-sidebar-active: #111439;
    --dm-sidebar-active-text: #FFFFFF;
}

body.dark-mode {
    --dm-bg-primary: #0F172A;
    --dm-bg-secondary: #1E293B;
    --dm-bg-tertiary: #334155;
    --dm-text-primary: #F1F5F9;
    --dm-text-secondary: #CBD5E1;
    --dm-text-muted: #94A3B8;
    --dm-border: #334155;
    --dm-sidebar-bg: #1E293B;
    --dm-sidebar-hover: #334155;
    --dm-sidebar-active: #3B82F6;
    --dm-sidebar-active-text: #FFFFFF;
}

/* ---------- TRANSISI SMOOTH ---------- */
body,
#admin-dashboard-overlay,
#admin-dashboard-overlay * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ---------- BACKGROUND UTAMA ---------- */
body.dark-mode,
body.dark-mode #admin-dashboard-overlay {
    background: var(--dm-bg-primary) !important;
    color: var(--dm-text-primary) !important;
}

/* ---------- CARD / BOX PUTIH ---------- */
body.dark-mode #admin-dashboard-overlay .bg-white,
body.dark-mode #admin-dashboard-overlay [class*="bg-white"] {
    background: var(--dm-bg-secondary) !important;
    color: var(--dm-text-primary) !important;
    border-color: var(--dm-border) !important;
}

/* ---------- HEADER DASHBOARD ---------- */
body.dark-mode #admin-dashboard-overlay > div:first-child > div:first-child {
    background: var(--dm-bg-secondary) !important;
    border-bottom-color: var(--dm-border) !important;
}

/* ---------- SIDEBAR ---------- */
body.dark-mode #admin-dashboard-overlay > div:first-child > div.bg-white.p-2 {
    background: var(--dm-sidebar-bg) !important;
    border-right-color: var(--dm-border) !important;
}

/* ---------- TAB BUTTON (menu sidebar) ---------- */
body.dark-mode #admin-dashboard-overlay > div:first-child > div.bg-white.p-2 > button {
    color: var(--dm-text-secondary) !important;
    background: transparent !important;
    border-color: transparent !important;
}

body.dark-mode #admin-dashboard-overlay > div:first-child > div.bg-white.p-2 > button:hover {
    background: var(--dm-sidebar-hover) !important;
    color: var(--dm-text-primary) !important;
}

body.dark-mode #admin-dashboard-overlay > div:first-child > div.bg-white.p-2 > button.active {
    background: var(--dm-sidebar-active) !important;
    color: var(--dm-sidebar-active-text) !important;
}

/* ---------- TEXT WARNA ---------- */
body.dark-mode #admin-dashboard-overlay .text-\[\#111439\],
body.dark-mode #admin-dashboard-overlay h1,
body.dark-mode #admin-dashboard-overlay h2,
body.dark-mode #admin-dashboard-overlay h3,
body.dark-mode #admin-dashboard-overlay h4 {
    color: var(--dm-text-primary) !important;
}

body.dark-mode #admin-dashboard-overlay .text-gray-500,
body.dark-mode #admin-dashboard-overlay .text-gray-600,
body.dark-mode #admin-dashboard-overlay .text-gray-700 {
    color: var(--dm-text-secondary) !important;
}

body.dark-mode #admin-dashboard-overlay .text-gray-400 {
    color: var(--dm-text-muted) !important;
}

/* ---------- BORDER ---------- */
body.dark-mode #admin-dashboard-overlay .border-gray-200,
body.dark-mode #admin-dashboard-overlay .border-gray-300 {
    border-color: var(--dm-border) !important;
}

/* ---------- INPUT, SELECT, TEXTAREA ---------- */
body.dark-mode #admin-dashboard-overlay input,
body.dark-mode #admin-dashboard-overlay select,
body.dark-mode #admin-dashboard-overlay textarea {
    background: var(--dm-bg-tertiary) !important;
    color: var(--dm-text-primary) !important;
    border-color: var(--dm-border) !important;
}

body.dark-mode #admin-dashboard-overlay input::placeholder,
body.dark-mode #admin-dashboard-overlay textarea::placeholder {
    color: var(--dm-text-muted) !important;
}

/* ---------- TABEL ---------- */
body.dark-mode #admin-dashboard-overlay table thead {
    background: var(--dm-bg-tertiary) !important;
}

body.dark-mode #admin-dashboard-overlay table tbody tr {
    background: var(--dm-bg-secondary) !important;
}

body.dark-mode #admin-dashboard-overlay table tbody tr:hover {
    background: var(--dm-bg-tertiary) !important;
}

body.dark-mode #admin-dashboard-overlay table td,
body.dark-mode #admin-dashboard-overlay table th {
    color: var(--dm-text-primary) !important;
    border-color: var(--dm-border) !important;
}

/* ---------- BG GRAY / ABU-ABU ---------- */
body.dark-mode #admin-dashboard-overlay .bg-gray-50,
body.dark-mode #admin-dashboard-overlay .bg-gray-100,
body.dark-mode #admin-dashboard-overlay .bg-\[\#F8F8F9\],
body.dark-mode #admin-dashboard-overlay .bg-\[\#FAFBFC\] {
    background: var(--dm-bg-tertiary) !important;
    color: var(--dm-text-primary) !important;
}

/* ---------- TOMBOL TOGGLE ---------- */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #F3F4F6;
    color: #111439;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.theme-toggle-btn:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

body.dark-mode .theme-toggle-btn {
    background: #334155;
    color: #F1F5F9;
    border-color: #334155;
}

body.dark-mode .theme-toggle-btn:hover {
    background: #475569;
}

/* ---------- OVERRIDE TAILWIND DARK MODE ---------- */
body.dark-mode #admin-dashboard-overlay .bg-gray-100 {
    background: var(--dm-bg-tertiary) !important;
}

body.dark-mode #admin-dashboard-overlay .hover\:bg-gray-100:hover,
body.dark-mode #admin-dashboard-overlay .hover\:bg-gray-200:hover {
    background: var(--dm-bg-tertiary) !important;
}

/* ---------- AKHIR DARK MODE ---------- */


/* ============================================================ */
/* MOBILE SIDEBAR — Hamburger Menu & Overlay                     */
/* Ditambahkan: 2026-10-04                                       */
/* ============================================================ */

/* ---------- TOMBOL HAMBURGER (HANYA MUNCUL DI HP) ---------- */
.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #F3F4F6;
    color: #111439;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: #e5e7eb;
    transform: scale(1.05);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

body.dark-mode .mobile-menu-btn {
    background: #334155;
    color: #F1F5F9;
    border-color: #334155;
}

body.dark-mode .mobile-menu-btn:hover {
    background: #475569;
}

/* ---------- OVERLAY GELAP DI BELAKANG SIDEBAR ---------- */
.sidebar-mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 38;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---------- MEDIA QUERY: TABLET & HP ---------- */
@media (max-width: 1024px) {
    
    /* Tampilkan tombol hamburger */
    .mobile-menu-btn {
        display: flex !important;
    }
    
    /* Tampilkan overlay */
    .sidebar-mobile-overlay {
        display: block;
    }
    
    /* Sidebar default: tersembunyi sempurna */
    #admin-dashboard-overlay > div:first-child > div.bg-white.p-2 {
        left: 0 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 40 !important;
        box-shadow: none !important;
    }
    
    /* Sidebar terbuka */
    #admin-dashboard-overlay > div:first-child > div.bg-white.p-2.mobile-open {
        transform: translateX(0) !important;
        box-shadow: 4px 0 20px rgba(0,0,0,0.3) !important;
    }
    
    /* Header tidak bergeser di HP */
    #admin-dashboard-overlay > div:first-child > div:first-child {
        margin-left: 0 !important;
        width: 100% !important;
    }
    
    /* Konten tidak bergeser di HP */
    #admin-dashboard-overlay > div:first-child > div:not(:first-child):not(.bg-white.p-2) {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 16px !important;
    }
    
    /* Sidebar lebih lebar di HP */
    #admin-dashboard-overlay > div:first-child > div.bg-white.p-2 {
        width: 280px !important;
        padding-top: 70px !important;
    }
    
    /* Tombol di sidebar lebih besar untuk jari */
    #admin-dashboard-overlay > div:first-child > div.bg-white.p-2 > button {
        padding: 14px 16px !important;
        font-size: 14px !important;
        min-height: 48px !important;
    }
}

/* ---------- HP KECIL ---------- */
@media (max-width: 480px) {
    #admin-dashboard-overlay > div:first-child > div.bg-white.p-2 {
        width: 85% !important;
        max-width: 320px !important;
    }
}

/* ---------- AKHIR MOBILE SIDEBAR ---------- */


/* ============================================================ */
/* SIDEBAR HIDDEN — Sembunyikan menu sesuai role                */
/* ============================================================ */
#admin-dashboard-overlay > div:first-child > div.bg-white.p-2 > button.sidebar-hidden {
    display: none !important;
}


/* ============================================================ */
/* ROLE-BASED STYLING — Sembunyikan elemen sesuai role          */
/* ============================================================ */

/* ---------- GURU: Sembunyikan tombol edit/tambah di "Mapel Saya" ---------- */
body.role-teacher #add-my-subject-btn,
body.role-teacher #bulk-import-subjects-btn {
    display: none !important;
}

/* Sembunyikan tips input manual (tidak relevan untuk guru) */
body.role-teacher #tab-my-subjects .bg-emerald-50 {
    display: none !important;
}

/* Sembunyikan tombol Edit di setiap kartu mapel */
body.role-teacher .edit-subject-btn,
body.role-teacher .delete-subject-btn {
    display: none !important;
}

/* Ganti judul section "Mapel yang Saya Input" → "Mapel yang Saya Ampu" */
body.role-teacher #tab-my-subjects .section-header h3::before {
    content: '📚 ';
}
body.role-teacher #tab-my-subjects .section-header h3 {
    font-size: 0;  /* Sembunyikan teks asli */
}
body.role-teacher #tab-my-subjects .section-header h3::after {
    content: 'Mapel yang Saya Ampu';
    font-size: 18px;
    font-weight: 900;
    color: #111439;
}

/* Sembunyikan subjudul "Hanya Anda yang dapat..." */
body.role-teacher #tab-my-subjects .section-header p {
    font-size: 0;
}
body.role-teacher #tab-my-subjects .section-header p::after {
    content: 'Daftar mapel yang Anda ampu di sekolah ini.';
    font-size: 11px;
    color: #6b7280;
    font-weight: 500;
}

/* ---------- OPERATOR: Tetap tampil (default) ---------- */
body.role-operator #add-my-subject-btn,
body.role-operator #bulk-import-subjects-btn,
body.role-operator .edit-subject-btn,
body.role-operator .delete-subject-btn {
    display: inline-flex !important;
}

/* ---------- AKHIR ROLE-BASED STYLING ---------- */


/* ============================================================ */
/* CARD GURU — Hybrid Grid + Pagination (Tema Ungu Elegan)     */
/* ============================================================ */

/* ---------- GRID CONTAINER ---------- */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 4px;
}

@media (max-width: 1280px) {
    .teacher-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .teacher-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .teacher-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- CARD GURU ---------- */
.teacher-card {
    background: #ffffff;
    border: 1px solid #e9d5ff;
    border-radius: 16px;
    padding: 16px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(139, 92, 246, 0.05);
}

.teacher-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.15);
    border-color: #a855f7;
}

/* Efek gradient di atas card */
.teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #a855f7 0%, #8b5cf6 100%);
    opacity: 0;
    transition: opacity 0.25s;
}

.teacher-card:hover::before {
    opacity: 1;
}

/* ---------- AVATAR ---------- */
.teacher-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: white;
    margin: 0 auto 12px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
    border: 3px solid #ffffff;
    position: relative;
}

/* Warna avatar berdasarkan inisial */
.teacher-avatar.color-0 { background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%); }
.teacher-avatar.color-1 { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.teacher-avatar.color-2 { background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); }
.teacher-avatar.color-3 { background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%); }
.teacher-avatar.color-4 { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.teacher-avatar.color-5 { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.teacher-avatar.color-6 { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }
.teacher-avatar.color-7 { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }

/* ---------- INFORMASI GURU ---------- */
.teacher-card-name {
    font-size: 14px;
    font-weight: 900;
    color: #111439;
    text-align: center;
    margin-bottom: 2px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 36px;
}

.teacher-card-username {
    font-size: 11px;
    color: #8b5cf6;
    text-align: center;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    margin-bottom: 10px;
}

/* ---------- BADGE STATUS ---------- */
.teacher-card-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    width: fit-content;
    margin-bottom: 10px;
}

.teacher-card-status.active {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.teacher-card-status.inactive {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.teacher-card-status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.teacher-card-status.active .dot {
    background: #10b981;
    animation: pulse 1.5s infinite;
}

.teacher-card-status.inactive .dot {
    background: #9ca3af;
}

/* ---------- INFO MAPEL ---------- */
.teacher-card-subjects {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-radius: 10px;
    padding: 8px 10px;
    margin-bottom: 10px;
    text-align: center;
}

.teacher-card-subjects-label {
    font-size: 9px;
    font-weight: 900;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.teacher-card-subjects-count {
    font-size: 16px;
    font-weight: 900;
    color: #8b5cf6;
}

/* ---------- LAST LOGIN ---------- */
.teacher-card-login {
    font-size: 9px;
    color: #9ca3af;
    text-align: center;
    margin-bottom: 10px;
    font-weight: 600;
}

/* ---------- TOMBOL AKSI ---------- */
.teacher-card-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.teacher-btn-edit,
.teacher-btn-delete {
    flex: 1;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.teacher-btn-edit {
    background: #faf5ff;
    color: #7c3aed;
    border-color: #e9d5ff;
}

.teacher-btn-edit:hover {
    background: #8b5cf6;
    color: white;
    border-color: #8b5cf6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}

.teacher-btn-delete {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.teacher-btn-delete:hover {
    background: #dc2626;
    color: white;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

/* ---------- TOOLBAR ---------- */
.teacher-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
    border: 1px solid #e9d5ff;
    border-radius: 14px;
    margin-bottom: 16px;
}

.teacher-search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px 10px 38px;
    background: white;
    border: 1px solid #e9d5ff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #111439;
    outline: none;
    transition: all 0.2s;
}

.teacher-search-input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.teacher-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.teacher-search-wrapper .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #a855f7;
    font-size: 13px;
    pointer-events: none;
}

.teacher-filter-select {
    padding: 10px 14px;
    background: white;
    border: 1px solid #e9d5ff;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #7c3aed;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.teacher-filter-select:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* ---------- COUNTER BADGE UNGU ---------- */
.teacher-counter-purple {
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
    white-space: nowrap;
}

/* ---------- PAGINATION ---------- */
.teacher-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 16px 0;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: white;
    border: 1px solid #e9d5ff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    color: #7c3aed;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.pagination-btn:hover:not(:disabled) {
    background: #faf5ff;
    border-color: #a855f7;
    transform: translateY(-1px);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%);
    color: white;
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 11px;
    font-weight: 700;
    color: #7c3aed;
    padding: 0 10px;
    white-space: nowrap;
}

/* ---------- EMPTY STATE ---------- */
.teacher-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
    border: 2px dashed #e9d5ff;
    border-radius: 16px;
}

.teacher-empty-state i {
    font-size: 48px;
    color: #d8b4fe;
    margin-bottom: 12px;
    display: block;
}

.teacher-empty-state p {
    font-size: 13px;
    font-weight: 700;
    color: #9333ea;
}

/* ---------- AKHIR CARD GURU ---------- */


/* ============================================================ */
/* HALAMAN AWAL SISWA — Tema Ungu Elegan                        */
/* ============================================================ */

/* ---------- Background Utama ---------- */
#student-start-overlay {
    background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 50%, #fdf4ff 100%) !important;
}

/* ---------- Tombol "Mulai Ujian" — Ungu ---------- */
#start-exam-btn,
.stripe-button-purple {
    background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 100%) !important;
    box-shadow: 0 10px 25px -5px rgba(168, 85, 247, 0.4), 0 8px 10px -6px rgba(139, 92, 246, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#start-exam-btn:hover,
.stripe-button-purple:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px -5px rgba(168, 85, 247, 0.5), 0 10px 15px -5px rgba(139, 92, 246, 0.4) !important;
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%) !important;
}

/* ---------- Card "Protokol Keamanan" — Ungu ---------- */
#student-start-overlay .bg-white\/90 {
    background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%) !important;
    border-color: #e9d5ff !important;
}

#student-start-overlay .bg-white\/90 h3 {
    color: #7c3aed !important;
}

/* ---------- Icon Shield di Protokol — Ungu ---------- */
#student-start-overlay .bg-white\/90 h3 i {
    color: #a855f7 !important;
}

/* ---------- Dropdown — Fokus Ungu ---------- */
#student-class-select:focus,
#student-name-select:focus,
#subject-select:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15) !important;
}

/* ---------- Badge "Server Online" — Tetap Hijau (aman) ---------- */
/* Tidak diubah — tetap hijau sebagai indikator aman */

/* ---------- Stripe Glass — Ungu ---------- */
#student-start-overlay .stripe-glass {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(168, 85, 247, 0.15) !important;
    box-shadow: 
        0 30px 60px rgba(139, 92, 246, 0.12), 
        0 10px 20px rgba(139, 92, 246, 0.08) !important;
}

/* ---------- Pesan Error — Tetap Merah (penting) ---------- */
/* Tidak diubah — merah = error */

/* ---------- Footer "created by" — Ungu Muda ---------- */
#student-start-overlay + div p,
#student-start-overlay ~ div p {
    /* Tidak diubah */
}

/* ---------- AKHIR TEMA UNGU SISWA ---------- */


/* ============================================================ */
/* DROPDOWN DISABLED — Tampilan Terkunci                        */
/* ============================================================ */

/* Disabled state untuk dropdown siswa */
#student-class-select:disabled,
#student-name-select:disabled,
#subject-select:disabled {
    background: #f3f4f6 !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    border-color: #e5e7eb !important;
}

/* Placeholder di disabled — lebih terang */
#student-name-select:disabled option,
#subject-select:disabled option {
    color: #9ca3af;
}

/* Label di atas disabled — redup */
label:has(+ select:disabled) {
    opacity: 0.6;
}

/* Smooth transition */
#student-class-select,
#student-name-select,
#subject-select {
    transition: all 0.25s ease;
}

/* Focus state — ungu */
#student-class-select:focus:not(:disabled),
#student-name-select:focus:not(:disabled),
#subject-select:focus:not(:disabled) {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15) !important;
}

/* ---------- AKHIR DROPDOWN DISABLED ---------- */


/* ============================================================ */
/* PWA INSTALL BLOCK OVERLAY                                    */
/* ============================================================ */
#install-block-overlay {
    animation: pwaFadeIn 0.4s ease;
}

@keyframes pwaFadeIn {
    from { 
        opacity: 0; 
        transform: scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

#btn-install-pwa:active {
    transform: scale(0.97);
}

/* Mode Standalone (PWA) — Sembunyikan scrollbar */
@media (display-mode: standalone) {
    body {
        overscroll-behavior: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* ---------- AKHIR PWA OVERLAY ---------- */