/* ===================================================================== */
/* DASHBOARD OVERVIEW — V5 STYLE                                         */
/* ===================================================================== */

#dashboard-section { padding-bottom: 48px; }

#dashboard-section .mobile-menu-btn {
    display: none; position: fixed;
    top: 20px; left: 16px; z-index: 1050;
    background: var(--surface-glass);
    border: 1px solid var(--border-default);
    color: var(--text-primary); font-size: var(--font-size-title);
    width: 44px; height: 44px; border-radius: var(--radius-lg);
    cursor: pointer; backdrop-filter: var(--blur-sm); transition: var(--transition-fast);
}
#dashboard-section .mobile-menu-btn:hover { background: var(--surface-glass-hover); }
@media (max-width: 768px) {
    #dashboard-section .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
}

/* ── TOPBAR ──────────────────────────────────────────────────────── */

.content-topbar {
    height: 42px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    padding: 0 28px;
    gap: 8px;
    flex-shrink: 0;
    background: rgba(12,13,30,.5);
    backdrop-filter: blur(8px);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.topbar-title { font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); color: var(--text-primary); }
.topbar-sep   { color: var(--text-disabled); font-size: var(--font-size-md); }
.topbar-sub   { font-size: var(--font-size-base); color: var(--text-secondary); font-weight: var(--font-weight-medium); }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.topbar-sync { display: flex; align-items: center; gap: 7px; }

.topbar-pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--success-color);
    animation: ov-glow 2.2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes ov-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.7); }
    50%       { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

.topbar-sync-label { font-size: var(--font-size-sm); color: var(--text-secondary); font-weight: var(--font-weight-medium); }

.topbar-profile {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; padding: 5px 10px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    background: var(--surface-glass);
    transition: var(--transition-fast);
    user-select: none;
}
.topbar-profile:hover { background: var(--surface-glass-hover); }

.topbar-avatar {
    width: 26px; height: 26px; border-radius: 7px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-phys));
    display: flex; align-items: center; justify-content: center;
    font-size: var(--font-size-xs); font-weight: var(--font-weight-extrabold); color: #fff; flex-shrink: 0;
}

.topbar-profile-info { display: flex; flex-direction: column; gap: 1px; }
.topbar-profile-name { font-size: 12.5px; font-weight: var(--font-weight-bold); color: var(--text-primary); line-height: 1; }
.topbar-profile-role { font-size: var(--font-size-xs); color: var(--text-muted); line-height: 1; }
.topbar-chevron      { font-size: 8px; color: var(--text-muted); margin-left: 2px; }

.profile-dropdown {
    position: absolute; top: calc(100% + 10px); right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 6px; min-width: 180px;
    z-index: 200; box-shadow: var(--shadow-xl);
}

.dropdown-item {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 12px; border-radius: var(--radius-md);
    font-size: var(--font-size-md); font-weight: var(--font-weight-medium);
    color: var(--text-secondary); text-decoration: none;
    transition: var(--transition-fast); cursor: pointer;
}
.dropdown-item:hover { background: var(--surface-glass-hover); color: var(--text-primary); }
.dropdown-divider { height: 1px; background: var(--border-subtle); margin: 4px 0; }
.dropdown-logout { color: var(--danger-color); }
.dropdown-logout:hover { background: var(--danger-bg); color: var(--danger-color); }

/* ── SCROLL CONTAINER ────────────────────────────────────────────── */

.ov-scroll {
    padding: 28px 32px 48px;
    overflow-y: auto; flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-secondary) transparent;
}
.ov-scroll::-webkit-scrollbar { width: 4px; }
.ov-scroll::-webkit-scrollbar-thumb { background: var(--bg-secondary); border-radius: 2px; }

/* ── SECTION LABEL ───────────────────────────────────────────────── */

.ov-slbl {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold);
    color: var(--text-disabled);
    text-transform: uppercase; letter-spacing: 1.1px;
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px; margin-top: 24px;
}
.ov-slbl:first-child { margin-top: 0; }
.ov-slbl::after { content: ''; flex: 1; height: 1px; background: var(--border-subtle); }

/* ── RESUME CARD ─────────────────────────────────────────────────── */

.ov-resume-card {
    display: flex; align-items: center; gap: 18px;
    padding: 20px 24px; border-radius: 14px;
    cursor: pointer; text-decoration: none;
    margin-bottom: 10px; position: relative; overflow: hidden;
    transition: transform .18s, box-shadow .18s, border-color .2s;
}

.ov-resume-math { background: var(--primary-light); border: 1px solid var(--primary-border); }
.ov-resume-phys { background: var(--accent-phys-light); border: 1px solid var(--accent-phys-border); }

.ov-resume-card::before {
    content: ''; position: absolute; right: -50px; top: -50px;
    width: 160px; height: 160px; border-radius: 50%;
    background: rgba(155,114,248,.05); pointer-events: none;
}

.ov-resume-math:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(155,114,248,.14); border-color: var(--primary-color); }
.ov-resume-phys:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(34,211,238,.1);  border-color: var(--accent-phys); }

.ov-resume-play {
    width: 50px; height: 50px; border-radius: 13px;
    background: rgba(155,114,248,.16); border: 1px solid var(--primary-border);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: var(--primary-color);
}

.ov-resume-body { flex: 1; min-width: 0; }

.ov-resume-eyebrow {
    font-size: 10.5px; font-weight: var(--font-weight-bold);
    color: var(--primary-color); text-transform: uppercase;
    letter-spacing: .6px; margin-bottom: 3px;
    font-family: var(--font-family-mono);
}

.ov-resume-title {
    font-size: var(--font-size-xl); font-weight: var(--font-weight-extrabold); color: var(--text-primary);
    letter-spacing: -.3px; margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ov-resume-sub { font-size: 11.5px; color: var(--text-secondary); margin-bottom: 9px; }

.ov-resume-bar-track {
    height: 4px; background: rgba(255,255,255,.06);
    border-radius: 2px; overflow: hidden; max-width: 320px;
}

.ov-resume-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #c084fc);
    border-radius: 2px; position: relative; overflow: hidden;
    transition: width 1.4s cubic-bezier(.23,1,.32,1);
}
.ov-resume-bar-fill::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
    animation: ov-shimmer 2.5s infinite;
}
@keyframes ov-shimmer {
    from { transform: translateX(-100%); }
    to   { transform: translateX(300%); }
}

.ov-resume-arrow { font-size: var(--font-size-heading); color: var(--primary-color); flex-shrink: 0; opacity: .7; }

/* ── TWO COL ─────────────────────────────────────────────────────── */

.ov-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.ov-card {
    border-radius: 14px; padding: 17px 21px;
    cursor: pointer; transition: transform .16s, border-color .16s;
}
.ov-card:hover { transform: translateY(-2px); }

.ov-card-danger  { background: var(--danger-bg);  border: 1px solid var(--danger-border); }
.ov-card-success { background: var(--success-bg); border: 1px solid var(--success-border); }
.ov-card-amber   { background: var(--warning-bg); border: 1px solid var(--warning-border); }

.ov-card-danger:hover  { border-color: var(--danger-color); }
.ov-card-success:hover { border-color: var(--success-color); }
.ov-card-amber:hover   { border-color: var(--warning-color); }

.ov-card-eyebrow {
    font-size: var(--font-size-xs); font-weight: var(--font-weight-bold);
    text-transform: uppercase; letter-spacing: .6px;
    margin-bottom: 8px; display: flex; align-items: center; gap: 5px;
    font-family: var(--font-family-mono);
}
.ov-eyebrow-danger  { color: var(--danger-color); }
.ov-eyebrow-success { color: var(--success-color); }
.ov-eyebrow-amber   { color: var(--warning-color); }

.ov-card-title { font-size: var(--font-size-lg); font-weight: var(--font-weight-bold); color: var(--text-primary); margin-bottom: 3px; }
.ov-card-sub   { font-size: var(--font-size-sm); color: var(--text-secondary); margin-bottom: 10px; }

.ov-card-footer, .ov-xp-row { display: flex; justify-content: space-between; align-items: center; }
.ov-card-footer-label { font-size: var(--font-size-sm); color: var(--text-secondary); }
.ov-card-footer-val { font-size: var(--font-size-xl); font-weight: var(--font-weight-extrabold); font-family: var(--font-family-mono); }
.ov-val-danger { color: var(--danger-color); }
.ov-val-amber  { color: var(--warning-color); }

.ov-bar-track { height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.ov-bar-fill  { height: 100%; border-radius: 2px; transition: width 1.4s cubic-bezier(.23,1,.32,1); }
.ov-bar-amber { background: linear-gradient(90deg, var(--warning-color), #fcd34d); }

/* ── STATS GRID ──────────────────────────────────────────────────── */

.ov-stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.ov-stat {
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl); padding: 17px 20px;
    transition: transform .15s, border-color .15s;
}
.ov-stat:hover { transform: translateY(-2px); border-color: var(--border-medium); }

.ov-stat-lbl {
    font-family: var(--font-family-mono);
    font-size: var(--font-size-xs); font-weight: var(--font-weight-semibold);
    color: var(--text-secondary); text-transform: uppercase;
    letter-spacing: .7px; margin-bottom: 9px;
    display: flex; align-items: center; gap: 5px;
}

.ov-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

.ov-stat-val {
    font-size: var(--font-size-display); font-weight: var(--font-weight-extrabold);
    letter-spacing: -1.5px; line-height: 1; margin-bottom: 8px;
}
.ov-stat-val small { font-size: var(--font-size-md); font-weight: var(--font-weight-medium); color: var(--text-secondary); letter-spacing: 0; }

.ov-stat-foot { font-size: var(--font-size-sm); color: var(--text-secondary); display: flex; align-items: center; gap: 5px; }

.ov-up      { font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); padding: 2px 6px; border-radius: 5px; color: var(--success-color); background: var(--success-bg); }
.ov-down    { font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); padding: 2px 6px; border-radius: 5px; color: var(--danger-color);  background: var(--danger-bg); }
.ov-neutral { font-size: var(--font-size-xs); font-weight: var(--font-weight-bold); padding: 2px 6px; border-radius: 5px; color: var(--text-secondary); background: var(--surface-glass); }

/* ── ACTIVITÉ RÉCENTE ────────────────────────────────────────────── */

.ov-activity-list {
    background: var(--surface-card); border: 1px solid var(--border-subtle);
    border-radius: 14px; padding: 4px 18px;
}

.ov-activity-row {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 0; border-bottom: 1px solid var(--border-subtle);
}
.ov-activity-last { border-bottom: none; }

.ov-activity-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.ov-activity-body { flex: 1; min-width: 0; }
.ov-activity-text {
    font-size: 12.5px; font-weight: var(--font-weight-semibold); color: var(--text-primary);
    margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ov-activity-text strong { color: var(--text-primary); font-weight: var(--font-weight-bold); }
.ov-activity-time  { font-size: var(--font-size-sm); color: var(--text-secondary); margin-top: 1px; }

.ov-xp-badge {
    font-size: var(--font-size-xs); font-weight: var(--font-weight-bold);
    padding: 2px 7px; border-radius: 5px; border: 1px solid;
    white-space: nowrap; flex-shrink: 0;
    font-family: var(--font-family-mono);
}
.ov-xp-dash { font-size: var(--font-size-sm); color: var(--text-muted); padding: 2px 7px; flex-shrink: 0; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */

@media (max-width: 900px) { .ov-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .ov-scroll { padding: 20px 16px 40px; }
    .ov-two-col { grid-template-columns: 1fr; }
    .content-topbar { padding: 0 16px; }
}
/* ── CARD EXERCICES (overview) ───────────────────────────────────── */
.ov-exo-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    border-radius: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background .18s, border-color .18s;
    margin-bottom: 20px;
}
.ov-exo-card:hover {
    background: rgba(99,102,241,.2);
    border-color: rgba(99,102,241,.5);
}
.ov-exo-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.ov-exo-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ov-exo-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.ov-exo-sub {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-bottom: 7px;
}
.ov-exo-bar-track {
    width: 180px;
    height: 4px;
    background: rgba(255,255,255,.08);
    border-radius: 2px;
    overflow: hidden;
}
.ov-exo-bar-fill {
    height: 100%;
    background: var(--primary-gradient, linear-gradient(90deg, #6366f1, #818cf8));
    border-radius: 2px;
    transition: width .5s ease;
}
.ov-exo-pct {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    font-family: var(--font-family-mono);
    flex-shrink: 0;
}
