.dashboard {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-left: 280px; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: margin-left 0.3s ease;
}

.box {
    margin-bottom: 30px;
}

.sidebar.close ~ .dashboard {
    margin-left: 88px;
}

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

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.stat-card .trend {
    font-size: 0.9rem;
    color: #666;
}

.stat-card.primary {
    border-left: 4px solid #007aff;
}

.stat-card.success {
    border-left: 4px solid #28a745;
}

.stat-card.warning {
    border-left: 4px solid #ffc107;
}

.stat-card.danger {
    border-left: 4px solid #dc3545;
}

.chart-container {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.chart-container h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.gender-distribution {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 20px;
}

.gender-stat {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    width: 45%;
}

.gender-stat.male {
    background-color: rgba(0, 122, 255, 0.1);
}

.gender-stat.female {
    background-color: rgba(233, 30, 99, 0.1);
}

.gender-stat .value {
    font-size: 2rem;
    font-weight: bold;
    margin: 10px 0;
}

.gender-stat.male .value {
    color: #007aff;
}

.gender-stat.female .value {
    color: #e91e63;
}

