/* =============================================
   Charts Containers
   ============================================= */

.chart-grid {
    display: grid;
    grid-template-columns: 1fr; /* Full width on mobile by default */
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.chart-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
    flex: 1;
}

@media (min-width: 768px) {
    .chart-container {
        height: 350px;
    }
}

@media (min-width: 1024px) {
    .chart-container {
        height: 400px;
    }
    
    .chart-grid.cols-2 {
        grid-template-columns: 1fr 1fr;
    }
    
    .chart-grid.cols-3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
