:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-light: #ecf0f1;
    --bg-light: #f4f7f6;
    --danger: #e74c3c;
    --success: #2ecc71;
}

body {
    margin: 0;
    display: flex;
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-light);
}

/* Sidebar */
.sidebar {
    width: 260px;
    height: 100vh;
    background: var(--primary-color);
    color: var(--text-light);
    position: fixed;
    padding: 20px 0;
}

.sidebar h2 {
    padding: 0 20px 20px;
    text-align: center;
    border-bottom: 1px solid var(--secondary-color);
    letter-spacing: 2px;
}

.sidebar a {
    color: #aeb1b4;
    text-decoration: none;
    padding: 15px 25px;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    background: var(--secondary-color);
    color: white;
    padding-left: 35px;
}

/* Main Content */
.main-content {
    margin-left: 260px; /* Lebar sidebar */
    flex: 1;
    padding: 20px;
}

.header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

/* Stats Cards */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-top: 5px solid var(--accent-color);
}
/* Style untuk Tombol Dropdown */
.dropbtn {
    padding: 15px 25px;
    text-decoration: none;
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #aeb1b4;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.dropbtn:hover {
    background-color: #34495e;
    color: white;
}

/* Kontainer Dropdown (Disembunyikan secara default) */
.dropdown-container {
    display: none;
    background-color: #1a252f;
    padding-left: 20px;
}

/* Link di dalam dropdown */
.dropdown-container a {
    font-size: 14px;
    padding: 10px 20px;
}

/* Class untuk menampilkan dropdown via JS */
.show {
    display: block;
}
.card h3 { color: #7f8c8d; font-size: 0.9rem; margin-bottom: 10px; }
.card .value { font-size: 1.8rem; font-weight: bold; color: var(--primary-color); }

.btn-logout {
    background: var(--danger);
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}