/* =========================================================
   SPHIRA LMS V4.0 (AI SMART ENGINE) - STYLE.CSS
   Hak Cipta Arsitektur: Masagus Muhammad Aziz
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body { 
    font-family: 'Plus Jakarta Sans', sans-serif; 
    background: #F8FAFC; 
    margin: 0; 
    overflow: hidden; 
    color: #1E293B; 
}

/* ================= KUSTOMISASI SCROLLBAR ================= */
::-webkit-scrollbar { width: 6px; height: 6px; } 
::-webkit-scrollbar-track { background: transparent; } 
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 10px; } 
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ================= LAYOUT UTAMA & SIDEBAR ================= */
.sidebar-bg { 
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.15) 0%, rgba(248, 250, 252, 1) 100%); 
    border-right: 1px solid rgba(212, 175, 55, 0.3) !important; 
}

.main-content-area { 
    border-top: 5px solid #0F172A; 
    box-shadow: inset 0 6px 10px -4px rgba(212, 175, 55, 0.3); 
}

/* ================= NAVIGASI MENU ================= */
.nav-item { 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    cursor: pointer; 
    border-radius: 14px; 
    color: #64748B; 
    font-size: 13px; 
    font-weight: 600; 
    letter-spacing: 0.02em; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 14px 18px; 
    border: 1px solid transparent; 
}
.nav-item svg { width: 20px; height: 20px; transition: 0.3s; opacity: 0.7; }
.nav-item:hover { 
    background: rgba(255, 255, 255, 0.8); 
    color: #0F172A; 
    transform: translateX(6px); 
    border-color: rgba(212, 175, 55, 0.4); 
}
.nav-item:hover svg { opacity: 1; color: #D4AF37; }
.nav-item.active { 
    background: #0F172A; 
    color: #FFFFFF; 
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3); 
    transform: none; 
    font-weight: 700; 
    border: 1px solid #D4AF37; 
}
.nav-item.active svg { opacity: 1; color: #D4AF37; }

/* ================= INPUT & TOMBOL ================= */
.input-soal { 
    width: 100%; 
    padding: 14px 18px; 
    border: 1.5px solid #E2E8F0; 
    border-radius: 14px; 
    outline: none; 
    background: #FFFFFF; 
    transition: all 0.3s ease; 
    font-weight: 500; 
    color: #1E293B; 
    box-shadow: 0 1px 2px rgba(0,0,0,0.02); 
}
.input-soal:focus { 
    border-color: #D4AF37; 
    box-shadow: 0 0 0 4px rgba(212,175,55,0.15); 
    transform: translateY(-1px); 
}

.btn-primary { 
    background: #0F172A; 
    color: #FFFFFF; 
    transition: all 0.3s ease; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    border: none; 
    cursor: pointer; 
}
.btn-primary:hover { 
    background: #1E293B; 
    box-shadow: 0 8px 20px rgba(15,23,42,0.25); 
    transform: translateY(-2px); 
}

.btn-gold { 
    background: linear-gradient(135deg, #D4AF37 0%, #B4942B 100%); 
    color: #FFFFFF; 
    transition: all 0.3s ease; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    border: none; 
    cursor: pointer; 
}
.btn-gold:hover { 
    box-shadow: 0 8px 25px rgba(212,175,55,0.4); 
    transform: translateY(-2px); 
    filter: brightness(1.05); 
}

.custom-checkbox { width: 18px; height: 18px; accent-color: #D4AF37; cursor: pointer; border-radius: 4px; margin: 0; padding: 0; }

/* ================= TABEL DATA ================= */
table { width: 100%; border-collapse: separate; border-spacing: 0; } 
th, td { padding: 16px 20px; border-bottom: 1px solid #E2E8F0; text-align: left; vertical-align: middle; } 
th { 
    background: #F8FAFC; 
    font-size: 11px; 
    text-transform: uppercase; 
    color: #64748B; 
    font-weight: 800; 
    letter-spacing: 0.05em; 
    cursor: pointer; 
    position: sticky; 
    top: 0; 
    z-index: 10; 
    border-bottom: 2px solid rgba(212, 175, 55, 0.2); 
} 
th:hover { background-color: #F1F5F9; color: #0F172A; }
tr { transition: background-color 0.2s; border-left: 4px solid transparent; }
tr:last-child td { border-bottom: none; }
tr.selected-row { background-color: rgba(212, 175, 55, 0.08) !important; }
tr.selected-row td:first-child { border-left: 4px solid #D4AF37; }

/* ================= ANIMASI SISTEM ================= */
@keyframes shine { 
    0% { left: -100%; } 
    20% { left: 100%; } 
    100% { left: 100%; } 
}
.shine-effect { position: relative; overflow: hidden; }
.shine-effect::after { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: -100%; 
    width: 50%; 
    height: 100%; 
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%); 
    transform: skewX(-25deg); 
    animation: shine 3.5s infinite; 
    pointer-events: none; 
}

@keyframes softPulse { 
    0%, 100% { opacity: 0.4; transform: scale(0.96); filter: drop-shadow(0 0 10px rgba(212,175,55,0.2)); } 
    50% { opacity: 1; transform: scale(1.02); filter: drop-shadow(0 0 25px rgba(212,175,55,0.6)); } 
}
.logo-soft-pulse { animation: softPulse 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(15px); } 
    to { opacity: 1; transform: translateY(0); } 
} 
.anim-fade-up { animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes modalPop { 
    0% { transform: scale(0.95); opacity: 0; } 
    100% { transform: scale(1); opacity: 1; } 
} 
.modal-pop { animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* ================= LOGIN BACKGROUND (BUG FIX) ================= */
.login-bg { 
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%); 
    position: relative; 
}
.login-bg::before {
    content: ''; 
    position: absolute; 
    inset: 0;
    background-image: radial-gradient(rgba(212, 175, 55, 0.25) 2px, transparent 2px);
    background-size: 30px 30px; 
    z-index: 0; 
    pointer-events: none; /* KUNCI ANTI MACET: Mencegah layer gaib menutupi tombol klik */
}
.login-bg > div { 
    z-index: 1; 
    position: relative; 
}