/* =========================================================================
   SPMB GLOBAL STYLE SYSTEM & VARIABLES
   ========================================================================= */
:root {
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --panel-bg: rgba(30, 41, 59, 0.7);
    --primary-accent: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --success-accent: #10b981;
    --danger-accent: #ef4444;
    --text-main: #f8fafc;
}

/* Base Body System khusus Siswa (Halaman Ujian) */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg-gradient) !important;
    color: var(--text-main) !important;
    min-height: 100vh;
}

/* Helper System */
.hidden { display: none !important; }
.text-indigo { color: #818cf8 !important; }
.bg-indigo { background-color: #4f46e5 !important; color: #fff !important; }

/* Custom Navbar */
.custom-nav {
    background: rgba(15, 23, 42, 0.6) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.accent-color { color: var(--primary-accent); }

/* =========================================================================
   SISWA LAYER COMPONENT UI (GLASSMORPHISM)
   ========================================================================= */

/* Kardus Utama (Glass Card) */
.glass-card {
    background: var(--panel-bg) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    cursor: pointer;
}
.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.15);
}

/* Icon Box Dashboard Utama */
.icon-box {
    width: 100px;
    height: 100px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}
.text-success-custom { color: var(--success-accent) !important; }

/* RE-FIX: Tombol Utama "Mulai Ujian Seleksi" & Lainnya */
.btn-action {
    border-radius: 14px !important;
    padding: 14px 28px !important;
    font-weight: 700 !important;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tombol Sukses (Mulai Ujian) */
.btn-success-custom {
    background-color: var(--success-accent) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
}
.btn-success-custom:hover {
    background-color: #059669 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6) !important;
}

/* Tombol Indigo (Verifikasi / Lanjut) */
.btn-prime {
    background-color: var(--primary-accent) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px var(--primary-glow) !important;
}
.btn-prime:hover:not(:disabled) {
    background-color: #4f46e5 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6) !important;
}
.btn-prime:disabled {
    background-color: #334155 !important;
    color: #64748b !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

/* Form inputs Siswa */
#auth-siswa .form-control {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 2px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px !important;
}
#auth-siswa .form-control:focus {
    border-color: var(--primary-accent) !important;
    box-shadow: 0 0 10px var(--primary-glow) !important;
}

/* =========================================================================
   QUIZ ENGINE COMPONENTS & RESULTS
   ========================================================================= */

/* Floating Live Timer */
.timer-badge {
    position: fixed;
    top: 90px;
    right: 30px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    color: #ffffff !important;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Butir Pilihan Ganda Ujian */
.opt-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px;
    padding: 16px 24px;
    margin-bottom: 14px;
    text-align: left;
    color: #ffffff !important;
    font-size: 16px;
    transition: all 0.2s ease;
    display: block;
}
.opt-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateX(4px);
}
.opt-btn.selected {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0.05) 100%) !important;
    border-color: var(--primary-accent) !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
    font-weight: 600;
}
.opt-btn span b {
    color: #818cf8;
    margin-right: 8px;
}

/* Progress Area */
.progress-track { border-radius: 10px; overflow: hidden; }
.progress-fill { border-radius: 10px; }

/* Score Graph Matrix */
.circle-progress-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 35px 0;
}
.circle-progress {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-accent) 0deg, rgba(255,255,255,0.05) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
    transition: background 0.5s ease;
}
.circle-progress::before {
    content: "";
    position: absolute;
    width: 144px;
    height: 144px;
    border-radius: 50%;
    background: #161633; /* Menutup kebocoran warna gradient latar belakang */
}
.circle-value {
    position: relative;
    font-size: 42px;
    font-weight: 800;
    color: #ffffff !important;
}

.review-box {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 5px;
}
.review-box::-webkit-scrollbar { width: 6px; }
.review-box::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

/* FIX WARNA TEKS LABEL VERIFIKASI SISWA AGAR MUNCUL TERANG */
#auth-siswa .form-label {
    color: #ffffff !important; /* Memaksa warna teks label menjadi putih bersih */
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Memperjelas teks placeholder di dalam kotak input sebelum diketik */
#auth-siswa .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5) !important; /* Warna abu-abu terang agar panduan inputnya kelihatan */
}

/* Memastikan teks yang lu ketik di dalam kotak berwarna putih jelas */
#auth-siswa .form-control {
    color: #ffffff !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}