:root {
    --bg-main: #0b0f19; /* Latar belakang biru dongker sangat gelap */
    --panel-bg: rgba(21, 26, 40, 0.7); /* Latar panel kaca */
    --accent-blue: #3b82f6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

body.bg-modern-dark {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.tracking-tight { letter-spacing: -0.5px; }
.icon-box { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; }

/* GLASSMORPHISM & CARDS */
.glass-navbar {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.metric-glass {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.bg-gradient-dark {
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
}

/* FORM ELEMENTS */
.custom-input {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-radius: 10px;
    padding: 10px 15px;
}
.custom-input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.btn-glow {
    transition: all 0.3s ease;
}
.btn-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

/* ANIMATIONS */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
.pulse-anim { animation: pulse 2s infinite; }

/* SCANNER LASER PADA GAMBAR */
.scanner-fx {
    position: relative;
    display: block;
}
.img-wrapper {
    position: relative;
    overflow: hidden;
}
.img-wrapper::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: #0ea5e9;
    box-shadow: 0 0 15px #0ea5e9, 0 0 30px #0ea5e9;
    animation: scan-line 2.5s ease-in-out infinite;
    z-index: 10;
}
@keyframes scan-line {
    0% { top: -5%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* FULLSCREEN LOADER */
.loader-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex; justify-content: center; align-items: center;
}

/* OVERRIDE BOOTSTRAP TEXT-MUTED UNTUK DARK THEME */
.text-muted {
    color: #f7f7f7 !important; /* Warna abu-abu terang yang elegan */
}

/* Tambahan opsional agar teks biasa yang tidak pakai class juga tetap terang */
p {
    color: #cbd5e1; 
}