/* === STYLE UTAMA SISTEM E-RAPORT === */
:root {
    --warna-hijau: #28a745;
    --warna-primer: #007bff;
    --warna-gelap: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f8fb;
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* --- SIDEBAR --- */
#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #ffffff;
    color: #333;
    transition: all 0.3s;
    border-right: 1px solid #eaeaea;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

#sidebar .sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

#sidebar .sidebar-header img {
    width: 60px;
    margin-bottom: 10px;
}

#sidebar .sidebar-header h5 {
    margin: 0;
    color: var(--warna-hijau);
    font-weight: bold;
}

#sidebar ul.components {
    padding: 20px 0;
    list-style: none;
}

#sidebar ul li a {
    padding: 12px 20px;
    font-size: 1em;
    display: block;
    color: #444;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

#sidebar ul li a:hover, 
#sidebar ul li a.active {
    color: var(--warna-hijau);
    background: #f8f9fa;
    border-left: 4px solid var(--warna-hijau);
}

#sidebar ul li a i {
    margin-right: 10px;
    width: 18px;
    text-align: center;
}

/* --- KONTEN UTAMA --- */
#content {
    width: 100%;
    min-height: 100vh;
    margin-left: 250px;
    transition: all 0.3s;
}

.navbar {
    padding: 15px 20px;
    background: #ffffff !important;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.container-fluid {
    padding: 20px;
}

/* --- KOMPONEN UMUM --- */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.card-header {
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 600;
}

.btn-hijau {
    background-color: var(--warna-hijau);
    color: white;
    border: none;
}

.btn-hijau:hover {
    background-color: #218838;
    color: white;
}

.bg-hijau {
    background-color: var(--warna-hijau) !important;
    color: white !important;
}

/* --- DASHBOARD BOX --- */
.card-stats {
    border-radius: 8px;
    color: white;
    padding: 20px;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        margin-left: 0;
    }
}