/* Chart Styles */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    margin: 1rem 0;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-container canvas {
    max-width: 100%;
    height: auto;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.normal {
    background-color: #4CAF50;
}

.legend-color.high {
    background-color: #FF9800;
}

.legend-color.very-high {
    background-color: #f44336;
}

.legend-color.low {
    background-color: #2196F3;
}

/* Chart responsive */
@media (max-width: 768px) {
    .chart-container {
        height: 300px;
        padding: 0.5rem;
    }
    
    .chart-legend {
        gap: 0.5rem;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
}

/* Chart loading state */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #666;
    font-style: italic;
}

/* Chart no data state */
.chart-no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #666;
    text-align: center;
}

.chart-no-data h4 {
    margin-bottom: 0.5rem;
    color: #999;
}

.chart-no-data p {
    font-size: 0.9rem;
    line-height: 1.4;
}
