/* Кастомизация Chart.js */
.chartjs-render-monitor {
    border-radius: 8px;
}

/* Стили для легенд */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

/* Стили для тултипов */
.chartjs-tooltip {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 6px;
    color: white;
    padding: 10px;
    font-size: 0.9em;
    backdrop-filter: blur(10px);
}

/* Специфические стили для разных типов графиков */
.temperature-chart .legend-color.temp-avg { background: #ff6b6b; }
.temperature-chart .legend-color.temp-min { background: #4dabf7; }
.temperature-chart .legend-color.temp-max { background: #ff8787; }
.temperature-chart .legend-color.dew-point { background: #94d82d; }

.precipitation-chart .legend-color.rain { background: #339af0; }
.precipitation-chart .legend-color.snow { background: #74c0fc; }
.precipitation-chart .legend-color.humidity { background: #3bc9db; }

.wind-chart .legend-color.speed { background: #f59f00; }
.wind-chart .legend-color.gust { background: #fcc419; }

/* Стили для сетки графиков */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 1200px) {
    .charts-grid.two-columns {
        grid-template-columns: 1fr 1fr;
    }
}

/* Стили для метрик в модалке */
.chart-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.metric-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.metric-value {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
}

.metric-label {
    font-size: 0.8em;
    color: #6c757d;
    margin-top: 5px;
}