/* Area Grafik - Optimized for Low Tech Literacy Users */
.chart-container {
    height: 400px;
    margin: 1.5rem 0;
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
}

.chart-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    border: 2px solid #e9ecef;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.chart-header h2 {
    color: #2d5a27;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-header h2::before {
    content: '📊';
    font-size: 1.75rem;
}

.chart-controls {
    display: flex;
    gap: 0.75rem;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 12px;
    border: 2px solid #dee2e6;
}

.chart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border: 2px solid transparent;
    background: white;
    color: #495057;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 48px;
    min-width: 140px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chart-btn:hover {
    background: rgba(45, 90, 39, 0.1);
    color: #2d5a27;
    border-color: #2d5a27;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(45, 90, 39, 0.2);
}

.chart-btn.active {
    background: #2d5a27;
    color: white;
    border-color: #1a4d1a;
    box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
    transform: scale(1.05);
}

.chart-btn i {
    font-size: 1.25rem;
}

/* Responsive chart controls */
@media (max-width: 768px) {
    .chart-container {
        height: 350px;
        padding: 0.5rem;
    }
    
    .chart-section {
        padding: 1rem;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .chart-header h2 {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .chart-header h2::before {
        font-size: 1.5rem;
    }
    
    .chart-controls {
        width: 100%;
        justify-content: stretch;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .chart-btn {
        flex: 1;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        min-width: auto;
        min-height: 44px;
    }
    
    .chart-btn i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .chart-container {
        height: 300px;
        padding: 0.25rem;
    }
    
    .chart-section {
        padding: 0.75rem;
    }
    
    .chart-header h2 {
        font-size: 1.1rem;
    }
    
    .chart-header h2::before {
        font-size: 1.25rem;
    }
    
    .chart-controls {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .chart-btn {
        width: 100%;
        padding: 0.875rem;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .chart-btn i {
        font-size: 1.25rem;
    }
}

/* Loading state for chart */
.chart-container.loading {
    opacity: 0.6;
    pointer-events: none;
}

.chart-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2d5a27;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}