/* ============================================
   Dashboard Specific Styles
   ============================================ */

/* ===== Page Header ===== */
.page-header {
    padding: 120px 0 40px;
    background: var(--bg-secondary);
}

.page-header-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.data-freshness {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.data-freshness i {
    font-size: 0.5rem;
}

.data-freshness.fresh i { color: var(--success); }
.data-freshness.stale i { color: var(--warning); }
.data-freshness.outdated i { color: var(--danger); }

/* ===== Dashboard Main ===== */
.dashboard-main {
    padding: 40px 0 80px;
}

/* ===== Metrics Section ===== */
.metrics-section {
    margin-bottom: 32px;
}

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

.metric-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-base);
}

.metric-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.metric-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    font-size: 1.5rem;
}

.metric-icon.bullish {
    background: var(--success-light);
    color: var(--success);
}

.metric-icon.bearish {
    background: var(--danger-light);
    color: var(--danger);
}

.metric-icon.neutral {
    background: var(--warning-light);
    color: var(--warning);
}

.metric-icon.confidence {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-secondary);
}

.metric-content h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.metric-content p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== Filters Section ===== */
.filters-section {
    margin-bottom: 32px;
}

.filters-container {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 10px 36px 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    min-width: 140px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.view-toggle {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 8px;
    overflow: hidden;
}

.view-btn {
    padding: 10px 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-btn:hover {
    color: var(--text-primary);
}

.view-btn.active {
    background: var(--accent-primary);
    color: white;
}

/* ===== Predictions Section ===== */
.predictions-section {
    margin-bottom: 40px;
}

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

.predictions-table-wrapper {
    overflow-x: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
}

/* ===== Opportunities Section ===== */
.opportunities-section {
    margin-bottom: 40px;
}

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.opportunity-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.opportunity-card:hover {
    background: var(--bg-hover);
}

.opportunity-rank {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
}

.opportunity-info {
    flex: 1;
}

.opportunity-asset {
    font-weight: 600;
    margin-bottom: 2px;
}

.opportunity-details {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.opportunity-signal {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.opportunity-signal.long {
    background: var(--success-light);
    color: var(--success);
}

.opportunity-signal.short {
    background: var(--danger-light);
    color: var(--danger);
}

.opportunity-confidence {
    text-align: right;
}

.opportunity-confidence-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.opportunity-confidence-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ===== Market Overview ===== */
.market-overview-section {
    margin-bottom: 40px;
}

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

/* Sentiment Gauge */
.sentiment-gauge {
    padding: 20px 0;
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.gauge-bar {
    position: relative;
    height: 8px;
    background: linear-gradient(90deg, 
        var(--danger) 0%, 
        var(--warning) 50%, 
        var(--success) 100%
    );
    border-radius: 4px;
    margin-bottom: 16px;
}

.gauge-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: transparent;
}

.gauge-indicator {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--shadow-md);
}

.sentiment-value {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Agreement Chart */
.agreement-chart {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

/* ===== Recent Reports ===== */
.recent-reports-section .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reports-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.report-item:hover {
    background: var(--bg-hover);
}

.report-type-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 10px;
    color: var(--accent-primary);
    font-size: 1.1rem;
}

.report-info {
    flex: 1;
}

.report-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.report-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.report-action {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.report-item:hover .report-action {
    color: var(--accent-primary);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
}
@
/* Chart Overlay */
.chart-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.chart-overlay.hidden { display: none; }
.chart-modal {
    background: var(--bg-card);
    width: 90%; max-width: 800px;
    padding: 24px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}
.chart-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}
.chart-controls { display: flex; gap: 8px; }
.chart-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
}
.chart-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.chart-container-wrapper { height: 400px; position: relative; }
.btn-accent { 
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white; border: none; 
}
.btn-accent:hover { opacity: 0.9; transform: translateY(-1px); }
.pulse-animation {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}
.chart-stats {
    display: flex; gap: 20px; margin-top: 15px; border-top: 1px solid var(--border-color); padding-top: 15px;
}
.stat-item { display: flex; flex-direction: column; }
.stat-item .label { font-size: 0.8rem; color: var(--text-secondary); }
.stat-item .value { font-weight: 600; }
@
