/* --- 1. GLOBAL STYLES (MISSING IN YOUR CODE) --- */
:root {
    --primary-bg: #010b06;      /* Dark Green Background */
    --panel-bg: #072213;        /* Sidebar/Card Background */
    --gold: #f4d06f;            /* Gold Accent */
    --text-white: #e0e0e0;
    --border-gold: rgba(244, 208, 111, 0.2);
}

body {
    background-color: var(--primary-bg); /* This fixes the white background */
    color: var(--text-white);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* --- 2. UPDATE BAGIAN SIDEBAR (YOUR EXISTING CODE) --- */

/* Sidebar Container */
.sidebar {
    width: 260px;
    min-width: 260px;
    background: #011a10; /* Hijau sangat gelap agar kontras */
    border-right: 1px solid rgba(244, 208, 111, 0.2);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed; /* Agar tetap di tempat saat discroll */
    top: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto; /* Scroll jika menu panjang */
}

/* Header Sidebar */
.sidebar-header {
    padding: 25px 20px;
    background: linear-gradient(to bottom, #072213, #011a10);
    border-bottom: 1px solid rgba(244, 208, 111, 0.2);
    text-align: center;
}

/* Menu Item Utama */
.sidebar-menu {
    padding: 10px 0;
    list-style: none;
}

.sidebar-menu li {
    position: relative;
}

.sidebar-menu > li > a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.sidebar-menu > li > a:hover, 
.sidebar-menu > li > a.active {
    background: rgba(244, 208, 111, 0.08);
    color: #f4d06f; /* Emas */
    border-left-color: #f4d06f;
}

.sidebar-menu li a i {
    width: 25px;
    font-size: 16px;
    text-align: center;
    margin-right: 10px;
}

/* --- SUBMENU STYLE --- */
.sidebar-menu .collapse {
    background: rgba(0, 0, 0, 0.2); /* Latar lebih gelap untuk anak menu */
}

.sidebar-menu .collapse li a {
    padding: 10px 20px 10px 55px; /* Padding kiri besar agar menjorok */
    font-size: 13px;
    color: #a0a0a0;
    text-decoration: none;
    display: block;
    border-left: none;
    transition: 0.2s;
}

.sidebar-menu .collapse li a:hover {
    color: #f4d06f;
    padding-left: 60px; /* Efek geser sedikit saat hover */
}

.sidebar-menu .collapse li a::before {
    content: "•";
    margin-right: 8px;
    color: #555;
}
.sidebar-menu .collapse li a:hover::before {
    color: #f4d06f;
}

/* Scrollbar Cantik */
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-track { background: #011a10; }
.sidebar::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: #f4d06f; }

/* Penyesuaian Content agar tidak tertutup sidebar */
.content {
    margin-left: 260px; /* Wajib sama dengan width sidebar */
    padding: 30px;
    width: auto;
    min-height: 100vh;
    background-color: var(--primary-bg); /* Ensure content area is also dark */
}

@media (max-width: 768px) {
    .sidebar { margin-left: -260px; transition: 0.3s; }
    .sidebar.show { margin-left: 0; }
    .content { margin-left: 0; }
}