/* --- استایل‌های نهایی داشبورد تحلیلی (موبایل-محور) --- */
:root { /* تعریف متغیرها برای خوانایی بهتر */
    --wod-font-ui: 'Inter', system-ui, sans-serif; --wod-font-display: 'Roboto Mono', monospace;
    --wod-c-bg: #101218; --wod-c-surface-1: #1f232e; --wod-c-border: rgba(255, 255, 255, 0.1);
    --wod-c-text-primary: #f1f1f1; --wod-c-text-secondary: #9a9ca5; --wod-c-primary: #5856d6;
    --wod-c-amrap: #ff9500; --wod-radius-md: 12px;
}
.analysis-today-wod-dashboard {
    display: flex; flex-direction: column;
    height: 100vh; max-height: 100vh; /* ارتفاع کامل صفحه */
    background-color: var(--wod-c-bg);
    color: var(--wod-c-text-primary);
    font-family: var(--wod-font-ui);
    animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.analysis-today-wod-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem; flex-shrink: 0; border-bottom: 1px solid var(--wod-c-border);
    position: sticky; top: 0; background-color: var(--wod-c-bg); z-index: 10;
}
.program-name { font-size: 1.1rem; font-weight: 600; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exit-button { color: var(--wod-c-text-secondary); font-size: 1.25rem; text-decoration: none; }

.analysis-today-wod-body { overflow-y: auto; padding: 1rem; }

.analysis-today-wod-card {
    background-color: var(--wod-c-surface-1);
    border-radius: var(--wod-radius-md);
    padding: 1.25rem; margin-bottom: 1rem;
    border: 1px solid var(--wod-c-border);
}
.main-score-card {
    text-align: center;
    background: linear-gradient(45deg, var(--wod-c-primary), #3c3a9a);
}
.score-section .score-value { font-size: 3.5rem; font-weight: 700; font-family: var(--wod-font-display); }
.score-section .score-label { font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.pr-section { margin-top: 1rem; }
.pr-badge { background-color: var(--wod-c-amrap); color: black; padding: 6px 12px; border-radius: 6px; font-weight: bold; }
.pr-compare { font-size: 0.9rem; color: rgba(255,255,255,0.8); }

.card-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 1.25rem 0; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.stat-grid div { text-align: center; }
.stat-grid label { font-size: 0.8rem; color: var(--wod-c-text-secondary); display: block; margin-bottom: 0.25rem; }
.stat-grid span { font-size: 1.25rem; font-weight: 600; font-family: var(--wod-font-display); }

.percentile-wrapper { display: flex; align-items: center; gap: 1.5rem; }
.percentile-ring { font-size: 1.5rem; font-weight: 700; color: var(--wod-c-primary); /* Needs JS for ring */ }
.percentile-text { font-size: 1rem; line-height: 1.6; }

.analysis-today-wod-chart-container { height: 200px; }
.consistency-score { text-align: center; margin-top: 1rem; font-size: 1rem; }
.insight-box { display: flex; align-items: flex-start; gap: 1rem; background-color: rgba(88, 86, 214, 0.1); }
.insight-box .insight-icon { font-size: 1.25rem; color: var(--wod-c-primary); margin-top: 4px; }
.insight-box p { margin: 0; color: var(--wod-c-text-secondary); line-height: 1.7; font-size: 0.95rem; }
.notes-text { font-style: italic; color: var(--wod-c-text-secondary); }
