:root {
    --bg-main: #0a0a0b;
    --bg-card: #141417;
    --accent: #39FF14;
    --accent-glow: rgba(57, 255, 20, 0.3);
    --text-white: #ffffff;
    --text-muted: #8e8e93; 
    --border-color: rgba(255, 255, 255, 0.08);
}

/* 1. Global Reset */
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, .brand-font {
    font-family: 'Rajdhani', sans-serif;
}

.text-muted {
    color: var(--text-muted) !important;
    font-weight: 400;
}

/* 2. Main Wrapper Logic
   z-index rendah agar elemen statis (nav/notif) tetap di atas saat konten diblur
*/
#main-wrapper {
    position: relative;
    z-index: 1;
    transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#main-wrapper.blurred {
    filter: blur(15px) brightness(0.4);
    pointer-events: none; /* Mencegah klik pada konten saat menu buka */
    user-select: none;
    transform: scale(0.98);
}

/* 3. Header & Brand */
.header-brand {
    padding: 20px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(20,20,23,0.9), transparent);
    position: sticky;
    top: 0;
    z-index: 90;
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--accent-glow);
}

/* 4. Bottom Navbar
   Z-index 1040: Di bawah Modal Backdrop (1050) agar tidak menutupi modal
*/
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: rgba(20, 20, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border-color);
    z-index: 1040; 
    padding-bottom: env(safe-area-inset-bottom);
}

.nav-link-custom {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 10px;
    font-weight: 500;
    transition: 0.3s;
    background: none;
    border: none;
}

.nav-link-custom i {
    font-size: 22px;
    margin-bottom: 5px;
}

.nav-link-custom.active, .nav-link-custom:hover {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-glow);
}

/* 5. Overlay Menu (Navigation Center)
   Z-index 2000: Menutup segalanya kecuali notifikasi
*/
.overlay-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay-menu.active {
    display: flex;
    opacity: 1;
}

.menu-modal {
    background: var(--bg-card);
    width: 88%;
    max-width: 360px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.overlay-menu.active .menu-modal {
    transform: translateY(0);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 24px;
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.menu-item:hover {
    background: rgba(57, 255, 20, 0.05);
    color: var(--accent);
}

/* 6. Bootstrap Modal Fixes
   Menyesuaikan modal agar menyatu dengan dark theme & z-index yang benar
*/
.modal-backdrop {
    z-index: 1050 !important;
}

.modal {
    z-index: 1055 !important;
}

.modal-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
}

/* 7. iOS Notification (warning.php)
   Z-index tertinggi agar selalu di depan
*/
.ios-notification-wrapper {
    z-index: 999999 !important;
}

/* Utilities */
.container-fluid {
    padding: 15px;
    flex: 1;
}

@media (min-width: 992px) {
    .container-fluid {
        max-width: 1200px;
        margin: 0 auto;
    }
}
/* Tambahkan di bagian <style> halaman Anda */
.table-compact {
    font-size: 12px; /* Ukuran font standar lebih kecil */
}

.table-compact th {
    font-size: 11px; /* Font header lebih kecil lagi */
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}

.table-compact td {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}