html, body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Arial, sans-serif;
}

header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #38482f;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav {
    padding: 22px 26px;
    text-align: right;
    font-size: 14px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
}

nav ul li a.active,
nav ul li a:hover {
    color: #b0c7b6;
}


.user-info{
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    margin-left: 10px;
}

.user-details{
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3c2d3;
    object-fit: cover;
    border: 1px solid #ffffff;
}

.user-details span:first-child {
    font-size: 13px;
    font-weight: bold;
}

.user-details span:last-child {
    font-size: 11px;
    opacity: 0.85;
}

.main-content {
    width: 100%;
    min-height: calc(100vh - 60px); /* tinggi navbar */
    background: url('../images/dashboard.jpg') center center / cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box; 
    gap: 30px;
}

.cards-container {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.card {
    flex: 1 1 180; 
    background: #ffffff;
    border-radius: 8px;
    padding: 30px 45px;
    box-shadow: 0 6px 15px #38482f;
    text-align: center;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px #38482f;
}

.card i {
    font-size: 28px;
    color: #38482f;
}

.card h3 {
    font-size: 14px;
    color: #38482f;
    margin: 0 0 8px;
}

.card p {
    font-size: 18px;
    font-weight: bold;
    color: #38482f;
    margin: 0;
}

.charts-container {
    display: flex;
    gap: 20px;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.chart-stacked {
    width: 100%;
    height: 400px;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    margin-left: 10px;
    box-shadow: 0 4px 12px #38482f;
}

.chart-pie {
    width: 100%;
    height: 400px;
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 12px #38482f;
}

@media (max-width: 768px) {

    /* HEADER */
    header {
        padding: 14px 16px;
    }

    /* USER INFO */
    .user-details {
        display: none; 
    }

    .user-avatar {
        width: 34px;
        height: 34px;
    }

    /* NAV */
    nav {
        padding: 0;
        text-align: center;
        font-size: 12px;
    }

    nav ul {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    nav ul li {
        margin-left: 0;
    }

    nav ul li a {
        padding: 6px 6px;
        font-size: 12px;
    }

    .cards-container, .charts-container {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .card {
        width: 90%;
        max-width: 400px;
    }


