﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8faff;
    color: #333;
    min-height: 100vh;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    padding: 20px 0;
    position: fixed;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 0 20px 20px 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

    .sidebar-header img {
        margin-right: 10px;
    }

    .sidebar-header h2 {
        font-size: 1.25rem;
        color: #1f3b73;
        font-weight: 600;
    }

.sidebar-nav {
    flex-grow: 1;
    padding: 0 15px;
}

.nav-section-title {
    color: #a0a0a0;
    font-size: .8rem;
    margin: 20px 10px 8px;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 10px;
    margin: 5px 0;
    border-radius: 8px;
    color: #555;
    font-size: 1rem;
    text-decoration: none;
    transition: .2s;
}

    .nav-item .material-icons {
        font-size: 20px;
        margin-right: 12px;
    }

    .nav-item:hover {
        background: #f0f5ff;
        color: #397dfa;
    }

    .nav-item.active {
        background: #397dfa;
        color: #fff;
        font-weight: 600;
        box-shadow: 0 4px 10px rgba(57,125,250,.3);
    }

.main-content {
    flex-grow: 1;
    padding: 30px;
    margin-left: 250px;
}

.content-header {
    margin-bottom: 30px;
}

.header-title h1 {
    font-size: 1.8rem;
    color: #1f3b73;
    font-weight: 700;
}

.header-title p {
    color: #777;
    font-size: .9rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
    transition: .2s;
}

    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 25px rgba(0,0,0,.12);
    }

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 26px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

.stat-card:nth-child(1) .stat-icon {
    background: #ff9800
}

.stat-card:nth-child(2) .stat-icon {
    background: #4caf50
}

.stat-card:nth-child(3) .stat-icon {
    background: #397dfa
}

.stat-info h3 {
    font-size: 2.2rem;
    color: #1f3b73;
    font-weight: 700;
}

.stat-info p {
    color: #777;
    font-size: .95rem;
}

.dashboard-secondary {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 25px;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,.05);
}

    .card h2 {
        font-size: 1.3rem;
        color: #1f3b73;
        margin-bottom: 5px;
    }

.subtitle {
    color: #777;
    font-size: .9rem;
    margin-bottom: 20px;
}

.combined-chart-card {
    grid-column: span 1;
}

.chart-stack-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.chart-box {
    display: flex;
    flex-direction: column;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

    .chart-box:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.chart-title {
    font-size: 1.1rem;
    color: #1f3b73;
    font-weight: 600;
    margin-bottom: 10px;
}

.chart-container {
    height: 220px;
    width: 100%;
}

.chart-container-type {
    height: 220px; 
}


.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

    .activity-item p {
        color: #444;
        font-size: 1rem;
    }

    .activity-item span {
        color: #999;
        font-size: .85rem;
    }

@media(max-width:1024px) {
    .dashboard-secondary {
        grid-template-columns: 1fr;
    }

    .combined-chart-card {
        min-height: 600px;
    }
}

@media(max-width:768px) {
    .sidebar {
        width: 100%;
        position: relative;
    }

    .main-content {
        margin-left: 0;
    }

    .combined-chart-card {
        min-height: auto;
    }
}
