/* whatIfCVP.css - Enhanced Version */

/* ===== Container and Layout ===== */
.what-if-cvp-wrapper {
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f4f8 100%);
    min-height: calc(100vh - 200px);
    position: relative;
}

.what-if-cvp-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.what-if-cvp-header-content {
    flex: 1;
}

.what-if-cvp-header h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.what-if-cvp-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.5;
}

/* ===== Analysis Mode Tabs ===== */
.analysis-mode-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.mode-tab {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mode-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mode-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color-medium);
}

.mode-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color-dark);
    box-shadow: 0 4px 16px rgba(74, 144, 226, 0.3);
}

.mode-tab.active::before {
    transform: translateY(0);
    background: white;
}

.mode-tab h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.mode-tab p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ===== Main Content Area ===== */
.what-if-content-area {
    padding: 0 2rem 2rem;
    display: none;
    animation: fadeInUp 0.4s ease;
}

.what-if-content-area.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Single Scenario Analysis ===== */
.single-scenario-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.scenario-controls-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    max-height: 600px;
    overflow-y: auto;
}

.scenario-controls-card h4 {
    margin: 0 0 1.5rem 0;
    color: var(--primary-color-dark);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-group {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-color);
}

.control-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.control-item {
    margin-bottom: 1.25rem;
}

.control-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.control-label label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-label .tooltip-icon {
    width: 16px;
    height: 16px;
    background: var(--primary-color-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: help;
    position: relative;
}

.control-label .current-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.875rem;
}

/* Enhanced Slider Styling */
.slider-container {
    position: relative;
    padding: 0.5rem 0;
}

.slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    transform: translateY(-50%);
}

.slider-fill {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.2s ease;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: transparent;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

input[type="range"]:focus {
    outline: none;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Quick Scenario Buttons */
.quick-scenarios {
    margin-top: 1.5rem;
}

.quick-scenarios h5 {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scenario-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.scenario-pill {
    padding: 0.5rem 1rem;
    background: var(--primary-color-light);
    color: var(--primary-color-dark);
    border: 1px solid var(--primary-color-medium);
    border-radius: 2rem;
    font-size: 0.813rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.scenario-pill:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

/* Results and Visualization Panel */
.results-visualization-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.impact-summary-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.impact-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.impact-metric {
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.impact-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.impact-metric .metric-label {
    font-size: 0.813rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.impact-metric .metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.impact-metric .metric-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.metric-change.positive {
    color: var(--success-color);
}

.metric-change.negative {
    color: var(--danger-color);
}

.metric-change.neutral {
    color: var(--text-muted);
}

/* Make sure tabs don't shrink */
.visualization-tabs {
    flex-shrink: 0;
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.25rem;
    background: var(--bg-color);
    border-radius: 0.5rem;
}

.viz-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

.viz-tab:hover {
    color: var(--primary-color);
    background: rgba(74, 144, 226, 0.1);
}

.viz-tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Fix for chart container to ensure tabs are above chart */
.chart-container {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    min-height: 400px;
    position: relative;
    /* ADD THESE LINES to ensure vertical stacking */
    display: flex;
    flex-direction: column;
}

/* Ensure chart content takes remaining space */
.chart-content {
    flex: 1;
    min-height: 350px;
    position: relative;
}

.chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===== Multi-Scenario Comparison ===== */
.multi-scenario-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.scenarios-builder-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.scenario-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.scenario-card {
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    position: relative;
    transition: all 0.2s ease;
}

.scenario-card:hover {
    border-color: var(--primary-color-medium);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.scenario-card.active {
    border-color: var(--primary-color);
    background: var(--primary-color-light);
}

.scenario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.scenario-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9375rem;
}

.scenario-actions {
    display: flex;
    gap: 0.5rem;
}

.scenario-action-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.scenario-action-btn:hover {
    background: var(--primary-color-light);
    color: var(--primary-color);
}

.scenario-params {
    font-size: 0.813rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.add-scenario-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 2px dashed var(--primary-color-medium);
    border-radius: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-scenario-btn:hover {
    background: var(--primary-color-light);
    border-style: solid;
}

/* Comparison Results */
.comparison-results-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: var(--bg-color);
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table tr:hover {
    background: var(--bg-color);
}

.comparison-table .scenario-name-cell {
    font-weight: 600;
    color: var(--primary-color-dark);
}

.comparison-table .value-cell {
    font-family: var(--font-mono);
    text-align: right;
}

.comparison-table .best-value {
    color: var(--success-color);
    font-weight: 700;
}

/* ===== Sensitivity Analysis ===== */
.sensitivity-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.sensitivity-controls-card,
.sensitivity-results-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.variable-selector {
    margin-bottom: 1.5rem;
}

.variable-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.variable-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--bg-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variable-checkbox:hover {
    background: var(--primary-color-light);
}

.variable-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.variable-checkbox label {
    flex: 1;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-color);
}

.range-setter {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 0.5rem;
}

.range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.75rem;
}

.range-input {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.range-input label {
    font-size: 0.813rem;
    color: var(--text-muted);
    font-weight: 500;
}

.range-input input {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.range-input input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* ===== Monte Carlo Simulation ===== */
.monte-carlo-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
}

.simulation-setup-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.distribution-settings {
    margin-bottom: 1.5rem;
}

.distribution-item {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 0.5rem;
}

.distribution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.distribution-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.875rem;
}

.distribution-type {
    padding: 0.25rem 0.75rem;
    background: var(--primary-color-light);
    color: var(--primary-color-dark);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.distribution-params {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.param-input {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.param-input label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.param-input input {
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 0.813rem;
}

.simulation-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.iterations-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.iterations-control label {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.875rem;
}

.iterations-control input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
}

.run-simulation-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.run-simulation-btn:hover {
    background: var(--primary-color-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.run-simulation-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

.simulation-results-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.probability-summary-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.probability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.probability-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.probability-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.probability-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.probability-label {
    font-size: 0.813rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* ===== Insights Panel ===== */
.insights-recommendations-card {
    background: linear-gradient(135deg, white 0%, var(--bg-color) 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.insights-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.insights-header h4 {
    margin: 0;
    color: var(--primary-color-dark);
    font-size: 1.25rem;
}

.insight-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.2s ease;
}

.insight-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.insight-item.warning {
    border-left-color: var(--accent-color);
}

.insight-item.critical {
    border-left-color: var(--danger-color);
}

.insight-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.insight-content {
    flex: 1;
}

.insight-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
}

.insight-description {
    font-size: 0.875rem;
    color: var(--text-color-light);
    line-height: 1.5;
}

.insight-action {
    margin-top: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--primary-color-light);
    color: var(--primary-color-dark);
    border: none;
    border-radius: 0.25rem;
    font-size: 0.813rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.insight-action:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== Action Buttons ===== */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0 2rem 2rem;
}

.action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn.primary {
    background: var(--primary-color);
    color: white;
}

.action-btn.primary:hover {
    background: var(--primary-color-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.action-btn.secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.action-btn.secondary:hover {
    background: var(--primary-color-light);
}

/* ===== Loading States ===== */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Tooltips ===== */
.tooltip {
    position: absolute;
    background: var(--text-color);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.813rem;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.tooltip.show {
    opacity: 1;
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--text-color);
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .single-scenario-layout {
        grid-template-columns: 1fr;
    }
    
    .sensitivity-layout,
    .monte-carlo-layout {
        grid-template-columns: 1fr;
    }
    
    .scenario-controls-card {
        max-height: none;
    }
}

@media (max-width: 768px) {
    .what-if-cvp-header {
        padding: 1.5rem;
    }
    
    .what-if-cvp-header h3 {
        font-size: 1.5rem;
    }
    
    .analysis-mode-tabs {
        padding: 0 1rem;
    }
    
    .mode-tab {
        min-width: 150px;
        padding: 0.75rem 1rem;
    }
    
    .what-if-content-area {
        padding: 0 1rem 1rem;
    }
    
    .impact-metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .scenario-list {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.813rem;
    }
    
    .action-buttons {
        flex-direction: column;
        padding: 0 1rem 1rem;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Print Styles ===== */
@media print {
    .what-if-cvp-wrapper {
        background: white;
    }
    
    .analysis-mode-tabs,
    .action-buttons,
    .scenario-actions,
    .add-scenario-btn,
    .quick-scenarios {
        display: none !important;
    }
    
    .what-if-content-area {
        display: block !important;
        padding: 0;
    }
    
    .chart-container {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* ===== Animations ===== */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scenario-card {
    animation: slideIn 0.3s ease;
}

.insight-item {
    animation: slideIn 0.4s ease;
    animation-fill-mode: both;
}

.insight-item:nth-child(1) { animation-delay: 0.1s; }
.insight-item:nth-child(2) { animation-delay: 0.2s; }
.insight-item:nth-child(3) { animation-delay: 0.3s; }
.insight-item:nth-child(4) { animation-delay: 0.4s; }

/* ===== Custom Scrollbars ===== */
.scenario-controls-card::-webkit-scrollbar {
    width: 6px;
}

.scenario-controls-card::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 3px;
}

.scenario-controls-card::-webkit-scrollbar-thumb {
    background: var(--border-color-dark);
    border-radius: 3px;
}

.scenario-controls-card::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}