/* === RESET DASAR === */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #eaf7e9;
    color: #333;
}


a {
    text-decoration: none;
    color: inherit;
}

/* === STRUKTUR UTAMA === */
.main-container {
    display: flex;
    min-height: 100vh;
}

/* === SIDEBAR === */
.sidebar {
    width: 220px;
    background-color: #004d26;
    color: white;
    padding: 20px 15px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 1000;
    text-align: center;
}

.sidebar img {
    max-width: 80px;
    margin-bottom: 10px;
}

.sidebar h5 {
    font-size: 16px;
    margin-top: 10px;
    color: #fff;
}

.sidebar a {
    display: block;
    color: #fff;
    padding: 10px 0;
    font-size: 16px;
    transition: all 0.3s ease;
}

.sidebar a i {
    margin-right: 8px;
}

.sidebar a:hover {
    color: #ffc107;
}

/* === KONTEN UTAMA === */
.content-wrapper {
    margin-left: 220px; /* harus sama dengan lebar sidebar */
    flex: 1;
    padding: 30px;
    background-color: #eaf7e9;
}

/* === HEADER DASHBOARD === */
.page-content h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-content p.text-muted {
    font-size: 14px;
}

/* === KARTU DASHBOARD === */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: #0d6efd;
}

/* === UTILITAS TEKS === */
.text-muted {
    color: #6c757d !important;
    font-size: 14px;
}

/* === RESPONSIF MOBILE === */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        display: flex;
    }

    .sidebar a {
        margin: 10px;
        font-size: 14px;
    }

    .content-wrapper {
        margin-left: 0;
        padding: 20px;
    }

    .card-icon {
        font-size: 2rem;
    }
    
}

.sidebar a.active {
    background-color: #ffffff33;
    color: #ffc107;
    font-weight: bold;
    border-left: 4px solid #ffc107;
}


footer {
    background-color: #f8f9fa;
    padding: 15px 0;
    text-align: center;
    width: 100%;
}




