body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Header */
.dashboard-header {
    background-color: #ffffff;
    border-bottom: 2px solid #27ae60;
    padding: 12px 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Tab bar container */
.custom-tabs {
    background-color: #f0f0f0;
    padding: 8px 16px 0;
    border-bottom: 1px solid #dee2e6;
}

/* Tab items */
.custom-tabs .tab {
    border: none !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 10px 24px !important;
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
    background-color: #e2e6ea !important;
    margin-right: 4px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.custom-tabs .tab:hover {
    background-color: #d5d9dd !important;
    color: #212529;
}
.custom-tabs .tab--selected {
    background-color: #ffffff !important;
    color: #27ae60 !important;
    border-bottom: 2px solid #ffffff !important;
    font-weight: 700;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
}

/* Cards wrapping charts */
.chart-card {
    background: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 16px;
}
.chart-card-header {
    background-color: #fff;
    border-bottom: 2px solid #27ae60;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 15px;
    color: #2d3436;
}

/* Footer */
.dashboard-footer {
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    padding: 16px;
    margin-top: 24px;
}

/* Time range action bar */
.time-range-bar {
    display: flex;
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.time-range-btn {
    padding: 4px 14px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: #fff;
    color: #495057;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.time-range-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}
.time-range-btn.active {
    background: #27ae60;
    border-color: #27ae60;
    color: #fff;
}


/* Meteo charts grid layout */
.meteo-chart-row {
    display: grid;
    grid-template-columns: 90px 1fr 130px;
    align-items: stretch;
}
.meteo-chart-row .dash-graph,
.meteo-chart-row .dash-graph > div,
.meteo-chart-row .js-plotly-plot,
.meteo-chart-row .plot-container {
    width: 100% !important;
}
.meteo-legend {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    border-left: 1px solid #e0e0e0;
    font-size: 0.72rem;
    color: #495057;
}
.meteo-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.meteo-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.8);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}

/* Meteo crosshair overlay */
.meteo-crosshair {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(80, 80, 80, 0.5);
    pointer-events: none;
    display: none;
    z-index: 20;
    transform: translateX(-0.5px);
}
.js-plotly-plot {
    position: relative;
}
.meteo-tooltip {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    background: rgba(50, 50, 50, 0.82);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 21;
}
.meteo-time-tooltip {
    position: absolute;
    display: none;
    background: rgba(50, 50, 50, 0.82);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 4px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 21;
}
#temperature-graphic .meteo-time-tooltip { top: 3px; }
#wind-speed-graphic  .meteo-time-tooltip { bottom: 3px; top: auto; }

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header { flex-wrap: wrap; }
    .header-controls { width: 100%; margin-top: 8px; }
}
