/* Scenario Comparison Specific Styles */
.comparison-content {
    padding: 20px 0;
}

.comparison-intro {
    text-align: center;
    margin-bottom: 30px;
}

.comparison-intro h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #212529;
    background: linear-gradient(135deg, #0d6efd, #20c997, #6f42c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.comparison-intro p {
    font-size: 1.3rem;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Scenario Controls */
.scenario-controls {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #dee2e6;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.control-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #212529;
}

.scenario-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.scenario-tab {
    padding: 12px 24px;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    background: white;
    color: #495057;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scenario-tab.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
    transform: scale(1.05);
}

.scenario-tab:hover:not(.active) {
    border-color: #0d6efd;
    color: #0d6efd;
}

.quick-presets h4 {
    margin-bottom: 15px;
    font-weight: 600;
    color: #212529;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-preset {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    background: #f8f9fa;
    color: #495057;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-preset:hover {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.active-scenario-config {
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 25px;
    background: #f8f9fa;
}

.active-scenario-config h4 {
    margin-bottom: 20px;
    font-weight: 600;
    color: #212529;
}

.allocation-sliders {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slider-group label {
    font-weight: 500;
    color: #495057;
    display: flex;
    justify-content: space-between;
}

.allocation-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #f8f9fa 0%, #0d6efd 100%);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.allocation-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0d6efd;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(13, 110, 253, 0.3);
}

.total-check {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid #dee2e6;
}

.status-indicator.valid {
    color: #28a745;
}

.status-indicator.invalid {
    color: #dc3545;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.scenario-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    border: 2px solid #dee2e6;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.scenario-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #20c997, #6f42c1);
}

.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.scenario-card.selected {
    border-color: #0d6efd;
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.2);
}

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

.scenario-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #212529;
}

.scenario-label {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.mini-chart {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        from 0deg,
        #6f42c1 0deg var(--stocks-angle, 126deg),
        #0d6efd var(--stocks-angle, 126deg) var(--bonds-angle, 270deg),
        #20c997 var(--bonds-angle, 270deg) 360deg
    );
}

.scenario-metrics {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.metric-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.metric-value {
    font-weight: 600;
    color: #212529;
}

.allocation-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.allocation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.allocation-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.stocks-color {
    background: #6f42c1;
}

.bonds-color {
    background: #0d6efd;
}

.funds-color {
    background: #20c997;
}

/* Performance Comparison */
.performance-comparison {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid #dee2e6;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.performance-comparison h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #212529;
}

.performance-chart-container {
    text-align: center;
    margin-bottom: 30px;
}

.projection-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.projection-item {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #dee2e6;
}

.scenario1-projection {
    border-color: #0d6efd;
    background: rgba(13, 110, 253, 0.05);
}

.scenario2-projection {
    border-color: #6c757d;
    background: rgba(108, 117, 125, 0.05);
}

.scenario3-projection {
    border-color: #20c997;
    background: rgba(32, 201, 151, 0.05);
}

.projection-item h4 {
    margin-bottom: 10px;
    font-weight: 600;
    color: #212529;
}

.projection-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #212529;
}

.projection-gain {
    font-size: 1.1rem;
    font-weight: 600;
    color: #28a745;
}

/* Recommendations */
.recommendations-section {
    margin-bottom: 40px;
}

.recommendations-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #212529;
}

.recommendation-card {
    background: linear-gradient(135deg, rgba(32, 201, 151, 0.1), rgba(13, 110, 253, 0.1));
    border: 2px solid #20c997;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.recommendation-icon {
    font-size: 3rem;
    min-width: 60px;
}

.recommendation-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #212529;
}

.recommendation-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #495057;
}

.recommendation-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-item {
    font-size: 0.95rem;
    color: #495057;
}

/* Action Buttons */
.comparison-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.action-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: #20c997;
    color: white;
    box-shadow: 0 5px 15px rgba(32, 201, 151, 0.3);
}

.action-btn.primary:hover {
    background: #1aa085;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(32, 201, 151, 0.4);
}

.action-btn.secondary {
    background: white;
    color: #0d6efd;
    border: 2px solid #0d6efd;
}

.action-btn.secondary:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-3px);
}

.action-btn.tertiary {
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #dee2e6;
}

.action-btn.tertiary:hover {
    background: #495057;
    color: white;
    border-color: #495057;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .scenario-controls {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projection-summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .comparison-intro h1 {
        font-size: 2rem;
    }
    
    .comparison-intro p {
        font-size: 1.1rem;
    }
    
    .scenario-controls,
    .performance-comparison {
        padding: 20px;
    }
    
    .scenario-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .comparison-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .recommendation-card {
        flex-direction: column;
        text-align: center;
    }
}