/* ==========================================
   REIWA TRAINING CENTER - PREMIUM APPLE UI
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #F5F5F7;
    --bg-card: rgba(255, 255, 255, 0.85);
    --text-primary: #1D1D1F;
    --text-muted: #86868B;
    --primary: #007AFF;
    --emerald: #34C759;
    --amber: #FF9500;
    --crimson: #FF3B30;
    --glass-border: rgba(255, 255, 255, 0.4);
    --radius-md: 18px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
}

body.dark-theme {
    --bg-main: #000000;
    --bg-card: rgba(28, 28, 30, 0.75);
    --text-primary: #F5F5F7;
    --text-muted: #98989D;
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Inter', sans-serif; background: var(--bg-main); color: var(--text-primary); overflow-x: hidden; transition: background 0.3s; }

/* ==========================================
   ANIMASI REIWA BINARANCAGE (OMBAK & PEGAS)
   ========================================== */
@keyframes ombakReiwa {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ombakSagara {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.animasi-masuk {
    opacity: 0;
    animation: ombakReiwa 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

.efek-pegas { transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); cursor: pointer; }
.efek-pegas:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 15px 35px rgba(0,0,0,0.1); z-index: 10; }
.efek-pegas:active { transform: scale(0.95); transition: 0.1s; }

/* ==========================================
   APP SHELL (FLOATING GLASS PILL HEADER)
   ========================================== */
.glass-header {
    position: fixed;
    top: 15px; /* Beri jarak dari atas layar */
    left: 0;
    right: 0;
    width: calc(100% - 40px);
    max-width: 1200px;
    margin: 0 auto;
    height: 65px;
    border-radius: 35px; /* Efek Kapsul / Lengkung Apple */
    
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: saturate(200%) blur(25px);
    -webkit-backdrop-filter: saturate(200%) blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Bayangan sangat halus */
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
}

/* Untuk Dark Mode */
body.dark-theme .glass-header {
    background: rgba(28, 28, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-toggle-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.menu-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}
body.dark-theme .menu-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.main-content {
    padding: 105px 20px 100px 20px;
    max-width: 1200px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .main-content {
        padding-top: 105px;
        padding-bottom: 40px;
    }
}

/* ==========================================
   APPLE MAGIC MENU (WATERFALL EFFECT)
   ========================================== */
.apple-magic-menu {
    position: fixed;
    top: 95px;
    left: 20px;
    max-width: 320px;
    width: calc(100% - 40px);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    padding: 20px;

    /* ANIMASI WATERFALL (AIR TERJUN) */
    clip-path: inset(0 0 100% 0 round 28px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);
    transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.6s ease-out,
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.8s;
}

body.dark-theme .apple-magic-menu {
    background: rgba(28, 28, 30, 0.85);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.apple-magic-menu.is-open {
    clip-path: inset(0 0 0 0 round 28px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.magic-menu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.magic-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
}

.magic-menu-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.side-item, .magic-item {
    padding: 12px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.25s ease;
}

.side-item:hover, .magic-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

body.dark-theme .side-item:hover, body.dark-theme .magic-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.side-item.active, .magic-item.active {
    background: var(--primary);
    color: #fff;
}

.magic-menu-footer {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--glass-border);
}

/* ==========================================
   APPLE NOTIFICATION PANEL (WATERFALL EFFECT)
   ========================================== */
.apple-notification-panel {
    position: fixed;
    top: 95px;
    right: 20px;
    width: calc(100% - 40px);
    max-width: 360px;
    
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: saturate(200%) blur(35px);
    -webkit-backdrop-filter: saturate(200%) blur(35px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    
    /* Animasi Waterfall */
    clip-path: inset(0 0 100% 0 round 28px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);
    transition: clip-path 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

body.dark-theme .apple-notification-panel {
    background: rgba(28, 28, 30, 0.75);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.apple-notification-panel.is-open {
    clip-path: inset(0 0 0 0 round 28px);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.notif-item {
    padding: 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.03);
    margin-bottom: 8px;
    border: 1px solid var(--glass-border);
}

body.dark-theme .notif-item {
    background: rgba(255, 255, 255, 0.05);
}

/* ==========================================
   KARTU & GRID (REIWA APPLE STYLE)
   ========================================== */
.reiwa-card, .sagara-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.reiwa-input, .sagara-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}
.reiwa-input:focus, .sagara-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

.stat-card {
    display: flex; justify-content: space-between; align-items: center;
}
.stat-card .info h3 { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; margin-bottom: 5px; font-weight: 700;}
.stat-card .info strong { font-size: 2rem; color: var(--text-primary); font-weight: 800; }
.stat-card .icon-box {
    width: 50px; height: 50px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}

/* ==========================================
   RESPONSIVE LAYOUT (HP vs LAPTOP)
   ========================================== */
/* MOBILE: BOTTOM NAV */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; height: 75px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(25px);
    -webkit-backdrop-filter: saturate(180%) blur(25px);
    border-top: 1px solid var(--glass-border);
    display: flex; justify-content: space-around; align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1000;
}
body.dark-theme .bottom-nav { background: rgba(0, 0, 0, 0.7); }

.nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    color: var(--text-muted); text-decoration: none; font-size: 0.7rem; font-weight: 600;
}
.nav-item i { font-size: 1.3rem; transition: 0.3s; }
.nav-item.active { color: var(--primary); }
.nav-item.active i { transform: translateY(-3px); }

@media (min-width: 768px) {
    .bottom-nav { display: none; }
}

/* ==========================================
   TRUE iOS BOTTOM SHEET MODAL
   ========================================== */
/* OVERLAY MODAL */
.bottom-sheet-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: flex-end; /* Paksa nempel di BAWAH untuk HP */
    justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease;
}
.bottom-sheet-overlay.is-active { opacity: 1; visibility: visible; }

/* KOTAK KONTEN MELUNCUR DARI BAWAH */
.bottom-sheet-content {
    background: var(--bg-card, #1C1C1E);
    width: 100%; max-width: 600px;
    max-height: 85vh; overflow-y: auto; /* Bisa discroll kalau layarnya pendek */
    border-radius: 28px 28px 0 0; /* Lengkung hanya di atas */
    padding: 15px 20px 30px 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.bottom-sheet-overlay.is-active .bottom-sheet-content { transform: translateY(0); }

/* DRAG HANDLE Ala iOS */
.sheet-handle {
    width: 40px; height: 5px; border-radius: 5px; 
    background: var(--text-muted, #86868B); opacity: 0.5;
    margin: 0 auto 20px auto;
}

/* TOMBOL AKTIVITAS RESPONSIVE (FLEXBOX) */
.activity-list { display: flex; flex-direction: column; gap: 12px; }
.activity-btn {
    display: flex; align-items: center; gap: 15px; width: 100%; text-align: left;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    padding: 14px 16px; border-radius: 16px; color: var(--text-primary, #FFF);
    cursor: pointer;
}
.activity-btn .icon-box {
    width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.activity-btn .text-box h4 { margin: 0 0 3px 0; font-size: 0.95rem; font-weight: 700; }
.activity-btn .text-box p { margin: 0; font-size: 0.75rem; color: var(--text-muted, #86868B); }

/* Jika dibuka di Laptop (Lebar > 768px), ubah jadi pop-up tengah */
@media (min-width: 768px) {
    .bottom-sheet-overlay { align-items: center; }
    .bottom-sheet-content { border-radius: 24px; padding-top: 30px; }
    .sheet-handle { display: none; }
}

/* ==========================================
   SEGMENTED CONTROL (TAB TOGGLE)
   ========================================== */
.segmented-control {
    display: flex;
    background: rgba(142, 142, 147, 0.15);
    padding: 4px;
    border-radius: 18px;
    margin-bottom: 22px;
}
.segmented-btn {
    flex: 1;
    padding: 11px 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.segmented-btn.active {
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
body.dark-theme .segmented-btn.active {
    background: #2c2c2e;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   ACCORDION SYSTEM (MOBILE-FIRST HIGH PERF)
   ========================================== */
.lms-accordion {
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    margin-bottom: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
body.dark-theme .lms-accordion {
    background: #1c1c1e;
    border-color: rgba(255, 255, 255, 0.08);
}
.lms-accordion:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
body.dark-theme .lms-accordion:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.lms-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    user-select: none;
    background: transparent;
}
.lms-accordion-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lms-modul-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.85rem;
}
.lms-accordion-icon {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-muted);
    font-size: 0.95rem;
}
.lms-accordion.is-open .lms-accordion-icon {
    transform: rotate(180deg);
    color: var(--primary);
}
.lms-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
    padding: 0 20px;
}
.lms-accordion.is-open .lms-accordion-body {
    padding: 4px 20px 20px 20px;
    max-height: 2500px;
}
.bab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}
.bab-btn {
    position: relative;
    padding: 12px 8px;
    border-radius: 14px;
    background: #f2f2f7;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.82rem;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.dark-theme .bab-btn {
    background: #2c2c2e;
    border-color: rgba(255, 255, 255, 0.05);
}
.bab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.bab-del-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--crimson);
    color: #fff;
    border: 2px solid #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    cursor: pointer;
    z-index: 5;
}
body.dark-theme .bab-del-btn {
    border-color: #1c1c1e;
}
.bab-btn:hover .bab-del-btn {
    display: flex;
}
.bab-add-btn {
    padding: 12px 8px;
    border-radius: 14px;
    border: 1.5px dashed var(--text-muted);
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.bab-add-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* AKTIVITAS LIST BUTTONS */
.aktivitas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 480px) {
    .aktivitas-grid {
        grid-template-columns: 1fr;
    }
}
.aktivitas-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f2f2f7;
    border: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.86rem;
    text-align: left;
}
body.dark-theme .aktivitas-btn {
    background: #2c2c2e;
    border-color: rgba(255, 255, 255, 0.05);
}
.aktivitas-btn:hover {
    border-color: var(--primary);
}
.aktivitas-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* =========================================================
   APPLE VISION PRO (VISIONOS) - GLOBAL SPATIAL SYSTEM
   Universal across: Login, Admin, Sensei, Siswa, Keuangan, 
   Job Matching, and LMS Academic Hub
========================================================= */

/* 1. GLOBAL SPATIAL BACKGROUND */
body {
  background: radial-gradient(circle at 50% -20%, #2a2a35 0%, #000000 80%) !important;
  background-attachment: fixed !important;
  color: #F5F5F7 !important;
}

/* 2. GLOBAL VISION OS GLASS (Kartu, Modal, Panel, Navigasi) */
.card-box, .apple-glass-card, .stat-card, .modal-box, 
.reiwa-card-apple, .sagara-card-apple, .bottom-sheet-content, .matome-dynamic-card,
.apple-premium-sidebar, .glass-header, .bottom-nav,
.reiwa-card, .sagara-card, .login-card, .auth-card, .table-card,
.lms-accordion, .apple-magic-menu, .apple-notification-panel,
.finance-card, .job-card, .candidate-card, .segmented-control {
  background: rgba(30, 30, 32, 0.55) !important;
  backdrop-filter: blur(40px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1) !important;
}

/* 3. GLOBAL EYE-TRACKING HOVER (Semua Tombol & Elemen Interaktif) */
.btn, .action-btn-icon, .nav-item, .side-item, .pipeline-tile,
.bab-item, .activity-btn, .reiwa-btn-apple, .sagara-btn-apple, .efek-pegas,
.bab-btn, .btn-primary, .menu-toggle-btn, .action-btn, .segmented-btn,
.aktivitas-btn {
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.btn:hover, .action-btn-icon:hover, .nav-item:hover, .side-item:hover, 
.pipeline-tile:hover, .bab-item:hover, .activity-btn:hover, 
.reiwa-btn-apple:hover, .sagara-btn-apple:hover, .efek-pegas:hover,
.bab-btn:hover, .btn-primary:hover, .menu-toggle-btn:hover, .action-btn:hover, 
.segmented-btn:hover, .aktivitas-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  transform: scale(1.03) translateY(-2px) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 25px rgba(255,255,255,0.08), 0 15px 30px rgba(0,0,0,0.4) !important;
  z-index: 10;
}

/* 4. GLOBAL SPATIAL PINCH (Saat Diklik) */
.btn:active, .action-btn-icon:active, .nav-item:active, .side-item:active, 
.pipeline-tile:active, .bab-item:active, .activity-btn:active, 
.sagara-btn-apple:active, .efek-pegas:active,
.bab-btn:active, .btn-primary:active, .menu-toggle-btn:active, .action-btn:active, 
.segmented-btn:active, .aktivitas-btn:active {
  transform: scale(0.96) !important;
  opacity: 0.8;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
  transition: all 0.15s ease-out !important;
}

/* =========================================================
   KRAEPELIN ENGINE & FULLSCREEN SPATIAL UI
========================================================= */
.vision-fullscreen {
  position: fixed; inset: 0; z-index: 9999999;
  background: radial-gradient(circle at 50% -20%, #2a2a35 0%, #000000 100%);
  display: none; flex-direction: column;
  opacity: 0; transition: opacity 0.4s ease;
}
.vision-fullscreen.is-active { opacity: 1; display: flex; }

/* HEADER UJIAN */
.kr-header {
  background: rgba(30, 30, 32, 0.6); backdrop-filter: blur(40px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.1); padding: 15px 24px;
  display: flex; justify-content: space-between; align-items: center;
}

/* GRID KRAEPELIN (RESPONSIF HP) */
.kr-board {
  flex: 1; padding: 20px; overflow-x: auto; overflow-y: auto;
  display: flex; gap: 15px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  height: 75vh; padding-bottom: 80px;
}
.kr-column {
  min-width: 80px; display: flex; flex-direction: column; gap: 8px;
  scroll-snap-align: center; opacity: 0.4; pointer-events: none;
  transition: all 0.3s ease;
}
.kr-column.is-active {
  opacity: 1; pointer-events: auto;
  background: rgba(255,255,255,0.05); border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 122, 255, 0.2);
  border: 1px solid rgba(0, 122, 255, 0.4);
}

/* ITEM ANGKA & INPUT */
.kr-item { text-align: center; font-size: 1.5rem; font-weight: 800; color: #FFF; }
.kr-input {
  width: 100%; text-align: center; font-size: 1.2rem; font-weight: 800;
  background: #1C1C1E; color: #64D2FF; border: 2px solid #444;
  border-radius: 8px; padding: 8px 0; outline: none; transition: 0.2s;
}
.kr-input:focus { border-color: #007AFF; background: #000; box-shadow: 0 0 15px rgba(0,122,255,0.4); }
.kr-input::-webkit-outer-spin-button,
.kr-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.kr-input[type=number] {
  -moz-appearance: textfield;
}

/* OVERLAY PINDAH & ALERT */
.kr-overlay-alert {
  position: absolute; inset: 0; background: rgba(225, 29, 72, 0.85);
  backdrop-filter: blur(10px); z-index: 100;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; font-weight: 900; color: #FFF; letter-spacing: 5px;
  opacity: 0; pointer-events: none; transition: 0.2s; transform: scale(1.2);
}
.kr-overlay-alert.flash { opacity: 1; transform: scale(1); }

/* =========================================================
   MENGHILANGKAN SCROLLBAR KAKU PADA SEMUA MODAL FITUR
========================================================= */

/* 1. Targetkan wadah utama dan semua area Admin/Siswa/Resume yang bisa di-scroll */
.bottom-sheet-content,
.admin-only-section,
div[id$="AdminArea"], /* Menangkap semua ID berakhiran AdminArea (krAdminArea, dll) */
div[id$="StudentArea"], /* Menangkap semua ID berakhiran StudentArea */
div[id$="ResumeArea"], /* Menangkap semua ID berakhiran ResumeArea */
.bottom-sheet-content div[style*="overflow"] {
  -ms-overflow-style: none !important;  /* Untuk Internet Explorer dan Edge lama */
  scrollbar-width: none !important;     /* Untuk Firefox */
}

/* 2. Sembunyikan scrollbar untuk WebKit (Chrome, Safari, Opera, Edge modern) */
.bottom-sheet-content::-webkit-scrollbar,
.admin-only-section::-webkit-scrollbar,
div[id$="AdminArea"]::-webkit-scrollbar,
div[id$="StudentArea"]::-webkit-scrollbar,
div[id$="ResumeArea"]::-webkit-scrollbar,
.bottom-sheet-content div[style*="overflow"]::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  background: transparent !important;
}

/* =========================================================
   FASE 2: KRAEPELIN BLUR & MATERI SPATIAL
========================================================= */
/* Efek Blur Ekstrem Kraepelin */
.kr-board {
  transition: filter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}
.kr-board.is-locked {
  filter: blur(25px) grayscale(50%);
  pointer-events: none;
  user-select: none;
  opacity: 0.4;
}

/* Audio Player Ala VisionOS */
.spatial-audio-player {
  width: 100%; height: 54px; border-radius: 27px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.2);
  outline: none; transition: 0.3s;
}
.spatial-audio-player:hover { border-color: #64D2FF; box-shadow: 0 0 15px rgba(100,210,255,0.2); }

/* =========================================================
   FASE 3: SEKUENSIAL & MODAL KONFIRMASI SPASIAL
========================================================= */
/* Efek Tombol Terkunci di Menu */
.activity-btn.is-locked {
  opacity: 0.5; filter: grayscale(80%); cursor: not-allowed !important;
}
body:not(.mode-siswa) .activity-btn.is-locked {
  opacity: 1; filter: none; cursor: pointer !important;
}
.lock-badge {
  margin-left: auto; background: rgba(255,59,48,0.15); color: #FF3B30;
  padding: 6px 12px; border-radius: 12px; font-size: 0.75rem; font-weight: 800;
  display: none; /* Sembunyi secara default */
}
.mode-siswa .activity-btn.is-locked .lock-badge {
  display: inline-flex; align-items: center; gap: 6px;
}
.mode-siswa .activity-btn.is-locked .efek-pegas { pointer-events: none; }

#goiConfirmStartModal, #shoutConfirmStartModal {
  position: fixed; inset: 0;
}

/* =========================================================
   FASE 4: GLOBAL TOAST & EDIT MODAL
========================================================= */
#globalToastContainer {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  z-index: 999999999 !important; /* Memastikan selalu di atas semua modal & fullscreen */
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.reiwa-toast, .sagara-toast {
  background: rgba(30,30,32,0.95); backdrop-filter: blur(20px);
  color: #FFF; padding: 12px 24px; border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 10px 40px rgba(0,0,0,0.6);
  font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 10px;
  animation: slideDownToast 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes slideDownToast { 0% { opacity: 0; transform: translateY(-20px) scale(0.9); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

/* Kotak Input Edit Spasial */
.edit-input-spasial {
  width: 100%; padding: 12px; background: rgba(0,0,0,0.4); color: #FFF;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 12px;
  outline: none; margin-bottom: 15px; font-size: 0.9rem; transition: 0.3s;
}
.edit-input-spasial:focus { border-color: #007AFF; box-shadow: 0 0 15px rgba(0,122,255,0.3); }

#modalEditSoalPanel {
  position: fixed; inset: 0;
}

/* =========================================================
   ADMIN DASHBOARD VISION OS UI
========================================================= */
/* Grid 4 Kartu Atas */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; margin-bottom: 30px;
}

/* Kartu Metrik Kaca */
.spatial-stat-card {
  background: rgba(30, 30, 32, 0.55);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px; padding: 24px;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.spatial-stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 20px rgba(255,255,255,0.05);
}

.stat-card-title { font-size: 0.75rem; color: #A1A1A6; font-weight: 800; letter-spacing: 1px; margin-bottom: 8px; text-transform: uppercase; }
.stat-card-value { font-size: 2.5rem; font-weight: 900; color: #FFF; line-height: 1; }
.stat-card-icon { position: absolute; right: 20px; top: 24px; font-size: 2.5rem; opacity: 0.8; }

/* Grid 3 Panel Analisis */
.admin-analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.spatial-analytics-panel {
  background: rgba(30, 30, 32, 0.55);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px; padding: 25px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}
.spatial-analytics-panel:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px rgba(0,0,0,0.55);
}
.panel-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.panel-header h3 { margin: 0; color: #FFF; font-size: 1.1rem; font-weight: 800; }

.analytics-list { list-style: none; padding: 0; margin: 0 0 20px 0; }
.analytics-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed rgba(255,255,255,0.05);
  font-size: 0.9rem; color: #E5E5EA;
}
.analytics-list li:last-child { border-bottom: none; }
.analytics-value { font-weight: 800; color: #FFF; }

.spatial-analytics-panel button {
  cursor: pointer;
  transition: all 0.25s ease;
}
.spatial-analytics-panel button:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
}

/* Responsif Mobile HP */
@media (max-width: 640px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 20px;
  }
  .admin-analytics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .spatial-stat-card {
    padding: 20px;
    border-radius: 20px;
  }
  .stat-card-value {
    font-size: 2.2rem;
  }
  .spatial-analytics-panel {
    padding: 20px;
    border-radius: 22px;
  }
  .admin-dashboard-wrapper {
    padding: 10px 0 !important;
  }
}

/* =========================================================
   MATERI DINAMIS & SLIDE PREVIEW (VISION OS)
========================================================= */
.slide-preview-frame {
  width: 100%; height: 200px; background: #000; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px; margin-top: 10px; display: none;
}
.dynamic-item-block {
  background: rgba(0,0,0,0.3); border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 16px; padding: 15px; margin-bottom: 15px; position: relative;
}
.btn-remove-block {
  position: absolute; top: 10px; right: 10px; background: rgba(255,59,48,0.2);
  color: #FF3B30; border: none; width: 30px; height: 30px; border-radius: 8px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* =========================================================
   PENAMBAL BOCOR FULLSCREEN (SEMUA UJIAN)
========================================================= */
:fullscreen, ::backdrop {
    background-color: #0d0d0f !important; /* Warna hitam gelap tema Anda */
    width: 100vw !important;
    height: 100vh !important;
    overflow-y: auto !important;
}

:-webkit-full-screen {
    background-color: #0d0d0f !important;
    width: 100vw !important;
    height: 100vh !important;
}

