/* ===================================
   GAS PRICES DASHBOARD STYLES
   =================================== */

/* Stat cards — override base analytics.css style for this page */
.analysis-container .stat-card,
.analysis-container .stat-card.gp-card-high,
.analysis-container .stat-card.gp-card-low,
.analysis-container .stat-card.gp-card-yoy {
    background: white;
    color: #1a1a1a;
    border: none;
    box-shadow: none;
}

.analysis-container .stat-card .stat-value,
.analysis-container .stat-card .stat-label {
    color: #1a1a1a;
}

.gp-stat-sublabel {
    font-size: 0.78em;
    opacity: 0.85;
    margin-top: 4px;
    font-style: italic;
}

/* Chart container overrides for Plotly */
.gp-chart-container {
    padding: 20px 20px 10px;
}

.gp-plotly-chart {
    width: 100%;
    height: 420px;
}

/* Loading / error state */
.gp-chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    color: #888;
    font-style: italic;
    font-size: 0.95em;
}

.gp-chart-error {
    color: #c0392b;
    font-style: normal;
    font-weight: 500;
}

/* Date range selector */
.gp-date-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.gp-date-range .gp-label {
    display: inline;
    margin-bottom: 0;
}

.gp-date-input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
    color: #333;
    background: white;
    cursor: pointer;
}

.gp-date-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

/* Controls row */
.gp-controls {
    margin-bottom: 18px;
}

.gp-label {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    color: #010101;
    margin-bottom: 8px;
}

.gp-control-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gp-select {
    flex: 1;
    min-width: 180px;
    max-width: 280px;
    padding: 7px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
    background: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.gp-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}

.gp-btn {
    padding: 7px 16px;
    border-radius: 5px;
    border: 1px solid #667eea;
    background: #667eea;
    color: white;
    font-size: 0.88em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.gp-btn:hover {
    background: #5568d3;
    border-color: #5568d3;
}

.gp-btn--secondary {
    background: transparent;
    color: #888;
    border-color: #ddd;
}

.gp-btn--secondary:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #555;
}

/* Active state tags */
.gp-active-states {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    min-height: 10px;
}

.gp-state-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 2px solid currentColor;
    font-size: 0.85em;
    font-weight: 500;
    color: #333;
    background: white;
}

.gp-tag-remove {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 1.1em;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: color 0.15s ease;
}

.gp-tag-remove:hover {
    color: #c0392b;
}

/* Methodology — compact inline toggle, not full-width banner */
.analysis-container .methodology {
    border: none;
    border-radius: 0;
    overflow: visible;
    display: inline-block;
}

.analysis-container .methodology summary {
    background: none;
    color: #667eea;
    padding: 0;
    font-size: 0.9em;
    font-weight: 500;
    display: inline;
    text-decoration: underline;
    cursor: pointer;
}

.analysis-container .methodology summary:hover {
    background: none;
    color: #5568d3;
}

.analysis-container .methodology[open] summary {
    border-bottom: none;
}

.analysis-container .methodology-content {
    padding: 20px 0 0 0;
    background: none;
}

.analysis-container .methodology {
    margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 600px) {
    .gp-plotly-chart {
        height: 300px;
    }

    .gp-select {
        max-width: 100%;
    }

    .gp-control-row {
        flex-direction: column;
        align-items: stretch;
    }

    .gp-btn {
        width: 100%;
        text-align: center;
    }
}
