/* ===== ENHANCED AI INSIGHTS STYLES ===== */

.enhanced-ai-insights {
    max-width: 1200px;
    margin: 40px auto;
    font-family: var(--font-primary);
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.1);
    overflow: hidden;
}

.ai-insights-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    text-align: center;
}

.ai-insights-header h3 {
    font-size: 2.5em;
    font-weight: 300;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.ai-insights-header p {
    font-size: 1.1em;
    margin: 0;
    opacity: 0.9;
}

/* ===== AI TABS ===== */
.ai-insights-tabs {
    padding: 0;
}

.tab-buttons {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    padding: 20px 30px;
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    min-width: 200px;
}

.tab-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-btn.active {
    color: #667eea;
    background: white;
    border-bottom-color: #667eea;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #667eea;
}

/* ===== TAB CONTENT ===== */
.tab-content {
    padding: 40px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* ===== PREDICTION WIDGET ===== */
.prediction-widget {
    text-align: center;
}

.prediction-widget h4 {
    color: #333;
    font-size: 1.8em;
    margin: 0 0 30px 0;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    display: inline-block;
}

.prediction-display {
    margin: 40px 0;
}

.prediction-indicator {
    margin-bottom: 30px;
}

.prediction-result {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 25px 40px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: slideInUp 0.5s ease;
}

.prediction-result.bullish {
    background: linear-gradient(135deg, #4CAF50 0%, #388e3c 100%);
    color: white;
}

.prediction-result.bearish {
    background: linear-gradient(135deg, #F44336 0%, #d32f2f 100%);
    color: white;
}

.prediction-result.neutral {
    background: linear-gradient(135deg, #FF9800 0%, #f57c00 100%);
    color: white;
}

.prediction-result.insufficient {
    background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%);
    color: white;
}

.prediction-icon {
    font-size: 2em;
    animation: bounceIn 0.6s ease;
}

.prediction-text {
    font-size: 1.2em;
}

.prediction-confidence {
    max-width: 600px;
    margin: 0 auto;
}

.confidence-meter {
    margin-bottom: 20px;
}

.confidence-label {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    font-weight: 500;
}

.confidence-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.prediction-action {
    background: rgba(102, 126, 234, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    margin-top: 20px;
}

.prediction-action strong {
    color: #667eea;
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
}

.prediction-action p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* ===== PATTERNS WIDGET ===== */
.patterns-widget h4 {
    color: #333;
    font-size: 1.8em;
    margin: 0 0 30px 0;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    display: inline-block;
}

.pattern-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.pattern-controls select {
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.pattern-controls select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.patterns-results {
    min-height: 200px;
}

.patterns-analysis {
    display: grid;
    gap: 30px;
}

.pattern-group {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.pattern-group h5 {
    color: #333;
    font-size: 1.2em;
    margin: 0 0 20px 0;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
    display: inline-block;
}

.streak-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.streak-metrics .metric {
    background: rgba(102, 126, 234, 0.05);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    font-weight: 500;
    color: #555;
}

.time-performance-chart {
    margin-top: 20px;
}

.instrument-performance {
    display: grid;
    gap: 10px;
}

.instrument-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.instrument-name {
    font-weight: 600;
    color: #333;
}

.instrument-stats {
    color: #666;
    font-size: 14px;
}

.insights-list {
    display: grid;
    gap: 15px;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid;
    background: rgba(255,255,255,0.8);
}

.insight-item.positive {
    border-left-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

.insight-item.warning {
    border-left-color: #FF9800;
    background: rgba(255, 152, 0, 0.05);
}

.insight-item.info {
    border-left-color: #2196F3;
    background: rgba(33, 150, 243, 0.05);
}

.insight-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.insight-text {
    color: #555;
    line-height: 1.5;
}

.recommendations-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.recommendations-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    position: relative;
    padding-left: 25px;
}

.recommendations-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
}

.recommendations-list li:last-child {
    border-bottom: none;
}

/* ===== RISK WIDGET ===== */
.risk-widget h4 {
    color: #333;
    font-size: 1.8em;
    margin: 0 0 30px 0;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    display: inline-block;
}

.risk-display {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.risk-level-display {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.risk-indicator {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
    display: block;
    animation: pulse 2s infinite;
}

.risk-level-display.low-risk .risk-indicator {
    color: #4CAF50;
}

.risk-level-display.medium-risk .risk-indicator {
    color: #FF9800;
}

.risk-level-display.high-risk .risk-indicator {
    color: #F44336;
}

.risk-level-display.unknown-risk .risk-indicator {
    color: #9E9E9E;
}

.risk-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 30px 0;
}

.risk-metrics .metric {
    background: rgba(102, 126, 234, 0.05);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    font-weight: 500;
    color: #555;
    text-align: center;
}

.risk-recommendations,
.risk-actions {
    margin: 20px 0;
    text-align: right;
}

.risk-recommendations h6,
.risk-actions h6 {
    color: #333;
    font-size: 1.1em;
    margin: 0 0 15px 0;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 5px;
    display: inline-block;
}

.risk-recommendations ul,
.risk-actions ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.risk-recommendations li,
.risk-actions li {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    color: #555;
    position: relative;
    padding-right: 40px;
}

.risk-recommendations li::before,
.risk-actions li::before {
    content: '⚠️';
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 16px;
}

.risk-recommendations li:last-child,
.risk-actions li:last-child {
    border-bottom: none;
}

/* ===== INSIGHTS WIDGET ===== */
.insights-widget h4 {
    color: #333;
    font-size: 1.8em;
    margin: 0 0 30px 0;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    display: inline-block;
}

.insights-container {
    min-height: 300px;
}

/* Focused polish for the Insights tab cards. */
#insights-tab .insights-container {
    display: grid;
    gap: 16px;
}

#insights-tab .insight-item {
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid #e7ecf3;
    border-left-width: 5px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 8px 24px rgba(20, 42, 74, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#insights-tab .insight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(20, 42, 74, 0.12);
}

#insights-tab .insight-item.prediction {
    border-left-color: #1d4ed8;
}

#insights-tab .insight-item.risk {
    border-left-color: #ea580c;
}

#insights-tab .insight-item.recommendation {
    border-left-color: #0f766e;
}

#insights-tab .insight-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35em;
    background: #f1f5f9;
}

#insights-tab .insight-item.prediction .insight-icon {
    background: #dbeafe;
}

#insights-tab .insight-item.risk .insight-icon {
    background: #ffedd5;
}

#insights-tab .insight-item.recommendation .insight-icon {
    background: #ccfbf1;
}

#insights-tab .insight-content h5 {
    margin: 0 0 8px;
    font-size: 1.03rem;
    color: #17233a;
}

#insights-tab .insight-content p {
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

#insights-tab .insight-content ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

#insights-tab .insight-content ul li {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
    line-height: 1.55;
}

.comprehensive-insights {
    display: grid;
    gap: 30px;
}

.overall-assessment {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.overall-assessment h5 {
    font-size: 1.4em;
    margin: 0 0 25px 0;
    font-weight: 300;
}

.assessment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.assessment-item {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.assessment-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.assessment-value {
    display: block;
    font-size: 1.2em;
    font-weight: 700;
    margin-bottom: 5px;
}

.assessment-value.bullish {
    color: #81C784;
}

.assessment-value.bearish {
    color: #EF5350;
}

.assessment-value.neutral {
    color: #FFB74D;
}

.assessment-confidence {
    font-size: 12px;
    opacity: 0.8;
}

.key-insights {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
}

.key-insights h5 {
    color: #333;
    font-size: 1.4em;
    margin: 0 0 25px 0;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
    display: inline-block;
}

.insight-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    border-left: 4px solid;
    background: rgba(255,255,255,0.8);
    transition: transform 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.insight-card.prediction {
    border-left-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.insight-card.pattern {
    border-left-color: #4CAF50;
    background: rgba(76, 175, 80, 0.05);
}

.insight-card.risk {
    border-left-color: #FF9800;
    background: rgba(255, 152, 0, 0.05);
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.insight-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.insight-title {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.insight-content {
    color: #555;
    line-height: 1.6;
    flex: 1;
}

.action-plan {
    background: linear-gradient(135deg, #4CAF50 0%, #388e3c 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.action-plan h5 {
    font-size: 1.4em;
    margin: 0 0 25px 0;
    font-weight: 300;
}

.action-steps {
    display: grid;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.action-step {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    padding: 15px 20px;
    border-radius: 10px;
    text-align: right;
    backdrop-filter: blur(10px);
}

.step-number {
    background: white;
    color: #4CAF50;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    font-weight: 500;
}

/* ===== AI MODAL ===== */
.ai-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.ai-modal-content {
    position: relative;
    background: white;
    margin: 5% auto;
    max-width: 800px;
    width: 90%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideInUp 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.ai-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.ai-modal-header h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 300;
}

.ai-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.ai-modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.ai-modal-body {
    padding: 40px;
}

.prediction-factors {
    display: grid;
    gap: 25px;
}

.prediction-factors h4 {
    color: #333;
    font-size: 1.4em;
    margin: 0 0 20px 0;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.factor-group {
    background: rgba(102, 126, 234, 0.05);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.factor-group h5 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.factor-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.factor-metrics .metric {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    color: #555;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.detailed-risk-analysis {
    text-align: center;
    padding: 40px 20px;
}

.detailed-risk-analysis h4 {
    color: #333;
    margin: 0 0 20px 0;
    font-size: 1.4em;
}

.coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.coming-soon-icon {
    font-size: 3em;
    opacity: 0.7;
}

.coming-soon-text {
    color: #6c757d;
    font-size: 16px;
    font-weight: 500;
}

/* ===== AI BUTTONS ===== */
.ai-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.ai-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.ai-btn:active {
    transform: translateY(0);
}

.ai-btn.secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.ai-btn.secondary:hover {
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.ai-btn.primary {
    font-size: 18px;
    padding: 18px 40px;
}

/* ===== LOADING SPINNER ===== */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
    margin: 20px auto;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .enhanced-ai-insights {
        margin: 20px 10px;
        border-radius: 15px;
    }

    .ai-insights-header {
        padding: 30px 20px;
    }

    .ai-insights-header h3 {
        font-size: 2em;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-btn {
        text-align: center;
        padding: 15px 20px;
        min-width: auto;
    }

    .tab-content {
        padding: 30px 20px;
    }

    .assessment-grid {
        grid-template-columns: 1fr;
    }

    .streak-metrics {
        grid-template-columns: 1fr;
    }

    .factor-metrics {
        grid-template-columns: 1fr;
    }

    .risk-metrics {
        grid-template-columns: 1fr;
    }

    .ai-modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .ai-modal-header {
        padding: 20px;
    }

    .ai-modal-body {
        padding: 20px;
    }

    .comprehensive-insights {
        gap: 20px;
    }

    .insights-container {
        min-height: 200px;
    }

    #insights-tab .insight-item {
        padding: 15px;
        gap: 12px;
    }

    #insights-tab .insight-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .ai-insights-header {
        padding: 20px 15px;
    }

    .ai-insights-header h3 {
        font-size: 1.5em;
    }

    .tab-content {
        padding: 20px 15px;
    }

    .prediction-result {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
        font-size: 16px;
    }

    .confidence-label {
        font-size: 14px;
    }

    .insight-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .action-step {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* ===== DARK MODE SUPPORT ===== */
[data-theme="dark"] .enhanced-ai-insights {
    background: linear-gradient(135deg, #2a2a4e 0%, #1e2a4a 100%);
    color: #e9ecef;
}

[data-theme="dark"] .tab-buttons {
    background: rgba(255,255,255,0.05);
}

[data-theme="dark"] .tab-btn.active {
    background: rgba(255,255,255,0.05);
    color: #667eea;
}

[data-theme="dark"] .pattern-group,
[data-theme="dark"] .key-insights {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

[data-theme="dark"] .instrument-metric,
[data-theme="dark"] .factor-metrics .metric,
[data-theme="dark"] .risk-metrics .metric {
    background: rgba(255,255,255,0.05);
    color: #e9ecef;
}

[data-theme="dark"] .insight-card {
    background: rgba(255,255,255,0.05);
    color: #e9ecef;
}

[data-theme="dark"] #insights-tab .insight-item {
    background: linear-gradient(180deg, rgba(30, 42, 74, 0.78) 0%, rgba(22, 30, 50, 0.85) 100%);
    border-color: rgba(148, 163, 184, 0.25);
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.35);
}

[data-theme="dark"] #insights-tab .insight-content h5 {
    color: #e2e8f0;
}

[data-theme="dark"] #insights-tab .insight-content p,
[data-theme="dark"] #insights-tab .insight-content ul li {
    color: #cbd5e1;
}

[data-theme="dark"] #insights-tab .insight-content ul li {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(148, 163, 184, 0.2);
}

[data-theme="dark"] .ai-modal-content {
    background: rgba(255,255,255,0.05);
    color: #e9ecef;
}