/* Dashboard styles */

.dashboard-hero {
    background: linear-gradient(120deg, #232946 0%, #3a8dde 100%);
    color: #fff;
    padding: 48px 24px 36px;
    text-align: center;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 8px 32px rgba(35, 41, 70, 0.3);
}

.dashboard-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.dashboard-hero p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Metric Cards */
.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: -32px auto 24px;
    max-width: 1100px;
    padding: 0 20px;
}

@media (max-width: 900px) {
    .dashboard-metrics {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .dashboard-metrics {
        grid-template-columns: 1fr;
    }
}

.metric-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(35, 41, 70, 0.1);
    text-align: center;
}

.metric-card .metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #232946;
}

.metric-card .metric-value.positive { color: #166534; }
.metric-card .metric-value.negative { color: #991b1b; }

.metric-card .metric-label {
    display: block;
    font-size: 0.85rem;
    color: #63708f;
    margin-top: 4px;
}

/* Dashboard body */
.dashboard-body {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* Panels */
.panel {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(35, 41, 70, 0.08);
    padding: 20px;
    margin-bottom: 20px;
}

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

.panel-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #232946;
    margin: 0;
}

/* Accuracy panel */
.accuracy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 700px) {
    .accuracy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.accuracy-stat {
    background: #f5f8ff;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.accuracy-stat .stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #232946;
}

.accuracy-stat .stat-label {
    display: block;
    font-size: 0.75rem;
    color: #63708f;
    margin-top: 2px;
}

/* Watchlist grid */
.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 1000px) {
    .watchlist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .watchlist-grid {
        grid-template-columns: 1fr;
    }
}

.watchlist-card {
    background: linear-gradient(135deg, #fff 0%, #f8faff 100%);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid rgba(58, 141, 222, 0.08);
}

.watchlist-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.watchlist-card .pair-info {
    display: flex;
    flex-direction: column;
}

.watchlist-card .pair-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #232946;
}

.watchlist-card .pair-label {
    font-size: 0.75rem;
    color: #63708f;
}

.direction-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.direction-badge.bullish {
    background: #dcfce7;
    color: #166534;
}

.direction-badge.bearish {
    background: #fee2e2;
    color: #991b1b;
}

.direction-badge.neutral {
    background: #e5e7eb;
    color: #4b5563;
}

/* Sparkline row */
.sparkline-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.sparkline-container {
    width: 100px;
    height: 50px;
    flex-shrink: 0;
}

.sparkline-loading {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.sparkline-empty, .sparkline-error {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #999;
    font-size: 0.8rem;
}

/* Timeframe toggle */
.tf-toggle {
    display: flex;
    gap: 3px;
}

.tf-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    cursor: pointer;
    background: #e5e7eb;
    color: #4b5563;
    transition: all 0.15s;
}

.tf-btn:hover {
    background: #d1d5db;
}

.tf-btn.active {
    background: #3a8dde;
    color: #fff;
}

/* Movement row */
.movement-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 0.75rem;
}

.mv-label {
    color: #63708f;
}

.mv-badge {
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.7rem;
    background: #f3f4f6;
    color: #4b5563;
}

.mv-badge.positive {
    background: #dcfce7;
    color: #166534;
}

.mv-badge.negative {
    background: #fee2e2;
    color: #991b1b;
}

/* Metrics row */
.metrics-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #63708f;
    margin-bottom: 8px;
}

.metrics-row strong {
    color: #232946;
}

/* Card link */
.card-link {
    display: block;
    text-align: center;
    padding: 6px;
    background: rgba(58, 141, 222, 0.08);
    color: #3a8dde;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}

.card-link:hover {
    background: rgba(58, 141, 222, 0.15);
}

/* Equity panel */
.equity-chart-container {
    height: 300px;
    position: relative;
}

.blurred-preview {
    position: relative;
}

.blurred-preview canvas,
.blurred-preview .equity-chart-container {
    filter: blur(6px);
}

.blurred-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    z-index: 10;
}

.blurred-overlay p {
    font-size: 1rem;
    color: #232946;
    margin-bottom: 12px;
}

.blurred-overlay .cta-btn {
    background: linear-gradient(90deg, #3a8dde 0%, #43c1ff 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

/* CTA Panel */
.cta-panel {
    background: #232946;
    color: #fff;
    padding: 28px 24px;
    border-radius: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cta-panel h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.cta-panel p {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.cta-panel .cta-btn {
    background: linear-gradient(90deg, #3a8dde 0%, #43c1ff 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(67, 193, 255, 0.25);
}

/* Watchlist empty state */
.watchlist-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #63708f;
}
