/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f4f6fb;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    overflow-y: auto;
}

/* LAYOUT */
.layout {
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 220px;
    background: linear-gradient(180deg, #1e1e2f, #2a2a40);
    color: #e2e8f0;
    padding: 20px 15px;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 14px;
    color: #a78bfa;
}

.logo-indicator {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
}

/* MENU */
.menu {
    list-style: none;
}

.menu li {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: 0.2s;
}

.menu li:hover {
    background: rgba(255,255,255,0.08);
}

.menu .active {
    background: linear-gradient(90deg, #6a5af9, #8f6bff);
    color: white;
}

.menu a {
    color: inherit;
    text-decoration: none;
    font-size: 13px;
}

/* MAIN */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px;
}

/* CONTENT */
.content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

/* TOPBAR */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar h1 {
    font-size: 18px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* DOWNLOAD */
.download-form input {
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.btn-download {
    padding: 4px 8px;
    font-size: 11px;
    background: #6a5af9;
    color: white;
    border: none;
    border-radius: 6px;
}

/* PROFILE */
.profile-box {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 20px;
    background: white;
}

.profile-name {
    font-size: 12px;
    font-weight: 600;
}

.profile-role {
    font-size: 10px;
    color: #888;
}

.profile-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.card {
    padding: 10px;
    border-radius: 10px;
    color: white;
}

.card span {
    font-size: 11px;
}

.card h2 {
    font-size: 16px;
}

/* COLORS */
.blue { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.orange { background: linear-gradient(135deg, #f7971e, #ffd200); }
.green { background: linear-gradient(135deg, #00c853, #69f0ae); }

/* PANEL */
.panel {
    background: white;
    padding: 10px;
    border-radius: 10px;
}

/* CHART UTAMA */
.panel.large {
    flex: 1.5;
    display: flex;
    flex-direction: column;
}

.panel.large canvas {
    flex: 1;
    max-height: 180px !important;
}

/* GRID BAWAH */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1;
}

/* CHART KECIL */
#pieChart,
#topBarangChart {
    max-height: 150px;
}

/* RESPONSIVE */
@media(max-width: 900px){
    body {
        overflow: auto;
    }

    .layout {
    display: flex;
    min-height: 100vh;
    }

    .sidebar {
        display: none;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* FILTER GROUP */
.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* SELECT MODERN */
.filter-select {
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    background: #f1f5f9;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    outline: none;
    transition: 0.2s;
}

.filter-select:hover {
    background: #e2e8f0;
}

/* BUTTON EXPORT */
.btn-export {
    padding: 6px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6a5af9, #8f6bff);
    color: white;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: 0.2s;
}

.btn-export:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(106,90,249,0.3);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}


