/* Advanced Visualizations Styles */

#advanced-viz {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(30, 41, 59, 0.3) 100%);
}

.viz-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    width: fit-content;
}

.viz-label {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

.viz-select {
    background: #0f172a;
    border: 1px solid #334155;
    color: #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.viz-select:hover {
    border-color: #64748b;
}

.viz-select:focus {
    outline: none;
    border-color: #22d3ee;
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.2);
}

.viz-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ef4444;
    font-size: 0.9rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
}

/* Adjustments for Plotly chart containers */
.chart-card__body {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Ensure Plotly tooltips look good in dark mode */
.js-plotly-plot .plotly .cursor-crosshair {
    cursor: crosshair;
}

.js-plotly-plot .plotly .modebar {
    background: rgba(15, 23, 42, 0.8) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .viz-controls {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .viz-select {
        width: 100%;
    }

    .chart-card--large {
        grid-column: 1 / -1;
    }
}