/* ════════════════════════════════════════════════════════════════
   Dashboard 2027 — UI/UX polish layer
   Enhances cdash-* and shared dashboard primitives with:
   - Glassmorphism tab nav with animated active indicator
   - Halo stat cards (radial hover glow)
   - Premium card depth with multi-layer shadows
   - Mini-row left accent on hover
   - Color-coded status pill system (cdash-pill-*)
   - Sparkline support (cdash-sparkline)
   - Page-load cascade animation
   - Modern empty states with gradient icon halos
   - Modernized hero with shimmer + premium gradient
   ════════════════════════════════════════════════════════════════ */

:root {
    --cdash-radius-sm: .625rem;
    --cdash-radius:    .875rem;
    --cdash-radius-lg: 1.25rem;
    --cdash-elev-1:    0 1px 2px rgba(15, 23, 42, .04), 0 1px 1px rgba(15, 23, 42, .03);
    --cdash-elev-2:    0 4px 12px -2px rgba(15, 23, 42, .06), 0 2px 4px rgba(15, 23, 42, .04);
    --cdash-elev-3:    0 10px 30px -6px rgba(15, 23, 42, .10), 0 4px 12px -4px rgba(15, 23, 42, .06);
    --cdash-ring:      0 0 0 1px rgba(15, 23, 42, .04);
    --cdash-glow-primary: rgba(13, 110, 253, .18);
    --cdash-glow-success: rgba(22, 163, 74, .18);
    --cdash-glow-info:    rgba(6, 182, 212, .18);
    --cdash-glow-warning: rgba(245, 158, 11, .20);
    --cdash-glow-danger:  rgba(220, 38, 38, .18);
    --cdash-glow-purple:  rgba(139, 92, 246, .18);
    --cdash-glow-pink:    rgba(236, 72, 153, .18);
    --cdash-spring:    cubic-bezier(.34, 1.56, .64, 1);
    --cdash-easing:    cubic-bezier(.4, 0, .2, 1);
}

/* ── Hero — clinic dashboard is light SaaS (see dashboard-modern.css);
   this file leaves .cdash-hero alone so the light surface wins. */
.cdash-hero { border-radius: var(--cdash-radius-lg); }

/* ── Tab nav — full-width soft pastel shell + animated active ──── */
.cdash-tabs-shell { margin: 0 0 1.5rem; }
.cdash-tabs {
    display: flex; width: 100%;
    padding: .35rem;
    background:
        linear-gradient(120deg, rgba(219, 234, 254, .55) 0%, rgba(237, 233, 254, .45) 45%, rgba(252, 231, 243, .35) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, .85) 0%, rgba(248, 250, 252, .55) 100%);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-radius: var(--cdash-radius);
    border: 1px solid rgba(15, 23, 42, .05);
    box-shadow:
        0 6px 18px -10px rgba(15, 23, 42, .06),
        inset 0 1px 1px rgba(255, 255, 255, .9);
}
.cdash-tabs .nav-link {
    position: relative;
    padding: .55rem 1rem;
    border-radius: var(--cdash-radius-sm);
    transition: color .2s var(--cdash-easing), background-color .25s var(--cdash-easing), transform .25s var(--cdash-spring), box-shadow .25s var(--cdash-easing);
}
.cdash-tabs .nav-link:hover { transform: translateY(-1px); }
.cdash-tabs .nav-link.active {
    background: #fff;
    box-shadow:
        0 4px 12px -4px rgba(13, 110, 253, .25),
        0 2px 4px rgba(15, 23, 42, .06),
        var(--cdash-ring);
}
.cdash-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    left: 50%; bottom: -.45rem;
    width: 30px; height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #0d6efd 0%, #0891b2 100%);
    transform: translateX(-50%);
    animation: cdash-tab-indicator .35s var(--cdash-spring);
    box-shadow: 0 2px 8px rgba(13, 110, 253, .35);
}
@keyframes cdash-tab-indicator {
    from { transform: translateX(-50%) scaleX(0); opacity: 0; }
    to   { transform: translateX(-50%) scaleX(1); opacity: 1; }
}
.cdash-tab-pill {
    background: rgba(15, 23, 42, .06);
    transition: background .2s var(--cdash-easing);
}
.cdash-tabs .nav-link:hover .cdash-tab-pill { background: rgba(15, 23, 42, .1); }

/* ── Cards within tab content — softer borders, layered shadow ─ */
.cdash-tab-content .dash-card {
    border-radius: var(--cdash-radius);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: var(--cdash-elev-1);
    transition: box-shadow .3s var(--cdash-easing), transform .3s var(--cdash-easing), border-color .3s var(--cdash-easing);
}
.cdash-tab-content .dash-card:hover {
    box-shadow: var(--cdash-elev-2);
    border-color: rgba(13, 110, 253, .12);
}
.cdash-tab-content .dash-card-header {
    padding: .9rem 1.1rem;
    border-bottom: 1px solid rgba(15, 23, 42, .04);
}
.cdash-tab-content .dash-card-title {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: -.005em;
}
.cdash-tab-content .dash-card-title i {
    font-size: 1rem;
    background: linear-gradient(135deg, currentColor 0%, currentColor 100%);
}

/* ── Stat cards — halo glow + premium typography ──────────────── */
.cdash-stat {
    padding: 1.1rem 1.15rem .95rem;
    border-radius: var(--cdash-radius);
    border: 1px solid rgba(15, 23, 42, .06);
    box-shadow: var(--cdash-elev-1);
    transition:
        transform .25s var(--cdash-spring),
        box-shadow .3s var(--cdash-easing),
        border-color .3s var(--cdash-easing),
        background-color .3s var(--cdash-easing);
}
.cdash-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(380px 200px at 0% 0%, var(--cdash-stat-glow, transparent) 0%, transparent 65%);
    opacity: 0;
    transition: opacity .35s var(--cdash-easing);
    pointer-events: none;
}
.cdash-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--cdash-elev-3);
    border-color: rgba(13, 110, 253, .18);
}
.cdash-stat:hover::before { opacity: 1; }
.cdash-stat:has(.cdash-stat-icon.tone-primary) { --cdash-stat-glow: var(--cdash-glow-primary); }
.cdash-stat:has(.cdash-stat-icon.tone-success) { --cdash-stat-glow: var(--cdash-glow-success); }
.cdash-stat:has(.cdash-stat-icon.tone-info)    { --cdash-stat-glow: var(--cdash-glow-info); }
.cdash-stat:has(.cdash-stat-icon.tone-warning) { --cdash-stat-glow: var(--cdash-glow-warning); }
.cdash-stat:has(.cdash-stat-icon.tone-danger)  { --cdash-stat-glow: var(--cdash-glow-danger); }
.cdash-stat:has(.cdash-stat-icon.tone-purple)  { --cdash-stat-glow: var(--cdash-glow-purple); }
.cdash-stat:has(.cdash-stat-icon.tone-pink)    { --cdash-stat-glow: var(--cdash-glow-pink); }

.cdash-stat-icon {
    width: 34px; height: 34px;
    border-radius: var(--cdash-radius-sm);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 2px 6px -2px currentColor;
    transition: transform .3s var(--cdash-spring);
}
.cdash-stat:hover .cdash-stat-icon { transform: scale(1.08) rotate(-2deg); }

.cdash-stat-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-sub, #64748b);
}
.cdash-stat-value {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    margin-top: .1rem;
}
.cdash-stat-sub {
    font-size: .7rem;
    color: var(--text-sub, #64748b);
    margin-top: .25rem;
    font-weight: 500;
}

/* ── Mini-row — left accent gradient on hover ─────────────────── */
.cdash-mini-row {
    position: relative;
    padding: .6rem .35rem .6rem .65rem;
    border-radius: .5rem;
    border-bottom: 1px solid rgba(15, 23, 42, .04);
    transition: background-color .2s var(--cdash-easing), padding-left .25s var(--cdash-spring);
}
.cdash-mini-row::before {
    content: '';
    position: absolute;
    left: 0; top: 12%; bottom: 12%;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, #0d6efd 0%, #0891b2 100%);
    opacity: 0;
    transform: scaleY(.4);
    transition: opacity .25s var(--cdash-easing), transform .25s var(--cdash-spring);
}
.cdash-mini-row:hover {
    background: linear-gradient(90deg, rgba(13, 110, 253, .05) 0%, transparent 50%);
    padding-left: .9rem;
}
.cdash-mini-row:hover::before { opacity: 1; transform: scaleY(1); }

.cdash-mini-row-icon {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
    transition: transform .25s var(--cdash-spring);
}
.cdash-mini-row:hover .cdash-mini-row-icon { transform: scale(1.06); }

.cdash-mini-row-icon.tone-muted { background: rgba(100, 116, 139, .12); color: #64748b; }

/* ── Appointment row — premium time pill ──────────────────────── */
.cdash-appt-row {
    border-radius: .65rem;
    padding: .7rem .65rem;
    transition: background-color .2s var(--cdash-easing);
}
.cdash-appt-row:hover { background: rgba(13, 110, 253, .03); }
.cdash-appt-time strong {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.02em;
}
.cdash-appt-duration {
    padding: .3rem .6rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(13, 110, 253, .10) 0%, rgba(8, 145, 178, .10) 100%);
    border: 1px solid rgba(13, 110, 253, .15);
}

/* ── Quick action — premium button feel ───────────────────────── */
.quick-action-card {
    background: var(--card-bg, #fff);
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: var(--cdash-radius);
    padding: 1.1rem 1.15rem 1rem;
    box-shadow: var(--cdash-elev-1);
}
.quick-action-item {
    border-radius: .65rem;
    transition: background-color .2s var(--cdash-easing), transform .25s var(--cdash-spring);
}
.quick-action-item:hover {
    background: linear-gradient(90deg, rgba(13, 110, 253, .06) 0%, rgba(13, 110, 253, .02) 100%);
    transform: translateX(3px);
}
.quick-action-item-icon {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
}

/* ── Empty state — gradient icon halo ─────────────────────────── */
.cdash-empty { padding: 2.5rem 1rem; }
.cdash-empty i {
    width: 60px; height: 60px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 1.6rem;
    color: #94a3b8;
    background: radial-gradient(circle, rgba(13, 110, 253, .08) 0%, rgba(13, 110, 253, .02) 60%, transparent 100%);
    margin-bottom: .35rem;
}
.cdash-empty-title { font-size: .9rem; font-weight: 700; }
.cdash-empty-sub { font-size: .76rem; max-width: 36ch; margin-left: auto; margin-right: auto; }

/* ── Status pill color system (cdash-pill-*) ─────────────────── */
.cdash-pill {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.4;
    white-space: nowrap;
    border: 1px solid transparent;
}
.cdash-pill::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: none;
}
.cdash-pill-primary { background: rgba(13, 110, 253, .10);  color: #0d6efd; border-color: rgba(13, 110, 253, .18); }
.cdash-pill-success { background: rgba(22, 163, 74, .10);   color: #15803d; border-color: rgba(22, 163, 74, .18); }
.cdash-pill-info    { background: rgba(6, 182, 212, .10);   color: #0e7490; border-color: rgba(6, 182, 212, .18); }
.cdash-pill-warning { background: rgba(245, 158, 11, .12);  color: #b45309; border-color: rgba(245, 158, 11, .22); }
.cdash-pill-danger  { background: rgba(220, 38, 38, .10);   color: #b91c1c; border-color: rgba(220, 38, 38, .18); }
.cdash-pill-purple  { background: rgba(139, 92, 246, .10);  color: #6d28d9; border-color: rgba(139, 92, 246, .18); }
.cdash-pill-gray    { background: rgba(100, 116, 139, .10); color: #475569; border-color: rgba(100, 116, 139, .18); }

/* ── Funnel — bigger numbers + smoother bars ──────────────────── */
.cdash-funnel-stage {
    border: 1px solid rgba(15, 23, 42, .05);
    border-radius: var(--cdash-radius-sm);
    background: #fff;
    box-shadow: var(--cdash-elev-1);
    transition: transform .25s var(--cdash-spring), box-shadow .3s var(--cdash-easing);
}
.cdash-funnel-stage:hover {
    transform: translateY(-2px);
    box-shadow: var(--cdash-elev-2);
}
.cdash-funnel-icon { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.cdash-funnel-count {
    font-size: 1.5rem !important;
    font-weight: 800;
    letter-spacing: -.025em;
    font-variant-numeric: tabular-nums;
}
.cdash-funnel-bar {
    height: 5px;
    border-radius: 3px;
    background: rgba(15, 23, 42, .05);
    overflow: hidden;
}
.cdash-funnel-bar > span {
    height: 100%;
    display: block;
    border-radius: inherit;
    animation: cdash-bar-fill .9s var(--cdash-easing);
    transform-origin: left;
}
@keyframes cdash-bar-fill {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ── Big donut — animated stroke + premium center ─────────────── */
.cdash-bigdonut-seg { transition: stroke-dasharray 1.1s var(--cdash-easing); }
.cdash-bigdonut-center strong {
    font-size: 1.6rem;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, var(--text-heading, #0f172a) 0%, var(--text-sub, #475569) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Hub-kpi for clinic tab — refined depth ───────────────────── */
.cdash-tab-content .hub-kpi {
    border-radius: var(--cdash-radius);
    box-shadow: var(--cdash-elev-1);
}
.cdash-tab-content .hub-kpi:hover { box-shadow: var(--cdash-elev-3); }

/* ── Channel mix bar — taller, rounded segments ───────────────── */
.cdash-channel-bar {
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04);
}
.cdash-channel-bar > span {
    transition: filter .2s var(--cdash-easing);
}
.cdash-channel-bar > span:hover { filter: brightness(1.1) saturate(1.2); }
.cdash-channel-legend {
    font-size: .75rem;
    font-weight: 600;
}
.cdash-channel-legend span.dot {
    width: 10px; height: 10px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .6);
}

/* ── Attention card — premium urgency styling ─────────────────── */
.attention-card {
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 50%, #fef3c7 100%);
    border: 1px solid #fecaca;
    border-radius: var(--cdash-radius);
    box-shadow:
        0 0 0 4px rgba(220, 38, 38, .04),
        var(--cdash-elev-1);
    position: relative;
    overflow: hidden;
}
.attention-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #dc2626 0%, #f59e0b 100%);
}
.attention-card-item {
    padding: .45rem .65rem;
    border-radius: .5rem;
    transition: background-color .2s var(--cdash-easing);
}
.attention-card-item:hover { background: rgba(220, 38, 38, .06); }

/* ── Cascade animation — staggered fade-in on tab show ────────── */
.cdash-tab-content .tab-pane.active.show > div > .row,
.cdash-tab-content .tab-pane.active.show > div > .dash-card,
.cdash-tab-content .tab-pane.active.show > .row,
.cdash-tab-content .tab-pane.active.show > .dash-card {
    animation: cdash-cascade .45s var(--cdash-easing) backwards;
}
.cdash-tab-content .tab-pane.active.show > .row:nth-child(1),
.cdash-tab-content .tab-pane.active.show > .dash-card:nth-child(1) { animation-delay: .02s; }
.cdash-tab-content .tab-pane.active.show > .row:nth-child(2),
.cdash-tab-content .tab-pane.active.show > .dash-card:nth-child(2) { animation-delay: .06s; }
.cdash-tab-content .tab-pane.active.show > .row:nth-child(3),
.cdash-tab-content .tab-pane.active.show > .dash-card:nth-child(3) { animation-delay: .10s; }
.cdash-tab-content .tab-pane.active.show > .row:nth-child(4),
.cdash-tab-content .tab-pane.active.show > .dash-card:nth-child(4) { animation-delay: .14s; }
@keyframes cdash-cascade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* ── Sparkline support (inline SVG path) ──────────────────────── */
.cdash-sparkline {
    display: inline-block;
    height: 22px;
    width: 70px;
    vertical-align: middle;
    margin-left: .35rem;
}
.cdash-sparkline path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.cdash-sparkline-fill { fill: currentColor; opacity: .12; stroke: none; }

/* ── Delta indicator (mini trend arrow + percent) ─────────────── */
.cdash-delta {
    display: inline-flex; align-items: center; gap: .2rem;
    font-size: .68rem;
    font-weight: 700;
    padding: .15rem .45rem;
    border-radius: 999px;
    line-height: 1.2;
}
.cdash-delta.is-up   { background: rgba(22, 163, 74, .12);  color: #15803d; }
.cdash-delta.is-down { background: rgba(220, 38, 38, .12);  color: #b91c1c; }
.cdash-delta.is-flat { background: rgba(100, 116, 139, .12); color: #475569; }

/* ── Section title polish (used inside cards) ─────────────────── */
.cdash-section-eyebrow {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, .08);
    color: #0d6efd;
    margin-bottom: .35rem;
}

/* ── Subscription/hub-kpi billing strip ───────────────────────── */
.cdash-tab-content .hub-kpi > .border-top {
    grid-column: 1 / -1;
    margin-top: .25rem !important;
}

/* ── Better tab pill on active nav ────────────────────────────── */
.cdash-tabs .nav-link.active .cdash-tab-pill {
    background: linear-gradient(135deg, rgba(13, 110, 253, .14) 0%, rgba(8, 145, 178, .14) 100%);
    color: #0d6efd;
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, .18);
}
.cdash-tabs .nav-link.active .cdash-tab-pill.is-danger {
    background: linear-gradient(135deg, rgba(220, 38, 38, .14) 0%, rgba(244, 63, 94, .14) 100%);
    color: #b91c1c;
    box-shadow: inset 0 0 0 1px rgba(220, 38, 38, .2);
}
.cdash-tabs .nav-link.active .cdash-tab-pill.is-success {
    background: linear-gradient(135deg, rgba(22, 163, 74, .14) 0%, rgba(34, 197, 94, .14) 100%);
    color: #15803d;
    box-shadow: inset 0 0 0 1px rgba(22, 163, 74, .2);
}

/* ── Card icon coloring inside dash-card-title ───────────────── */
.cdash-tab-content .dash-card-title .text-primary { color: #0d6efd !important; }
.cdash-tab-content .dash-card-title .text-success { color: #16a34a !important; }
.cdash-tab-content .dash-card-title .text-warning { color: #d97706 !important; }
.cdash-tab-content .dash-card-title .text-info    { color: #0891b2 !important; }
.cdash-tab-content .dash-card-title .text-danger  { color: #dc2626 !important; }

/* ── List foot — premium link ────────────────────────────────── */
.cdash-list-foot {
    padding: .7rem 0 .25rem;
}
.cdash-list-foot a {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .76rem; font-weight: 700;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, .06);
    color: #0d6efd;
    transition: background .2s var(--cdash-easing), transform .25s var(--cdash-spring);
}
.cdash-list-foot a:hover {
    background: rgba(13, 110, 253, .12);
    transform: translateX(2px);
    text-decoration: none;
}

/* ════════════════════════════════════════════════════════════════
   Dark-mode variants
   ════════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
    --cdash-elev-1: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 1px rgba(0, 0, 0, .25);
    --cdash-elev-2: 0 4px 12px -2px rgba(0, 0, 0, .45), 0 2px 4px rgba(0, 0, 0, .3);
    --cdash-elev-3: 0 12px 32px -6px rgba(0, 0, 0, .55), 0 4px 12px rgba(0, 0, 0, .35);
    --cdash-ring:   0 0 0 1px rgba(255, 255, 255, .06);
}

/* Clinic hero is light by default; dark-theme override lives in
   dashboard-modern.css alongside the light styles. */
[data-theme="dark"] .cdash-tabs {
    background: linear-gradient(180deg, rgba(30, 41, 59, .6) 0%, rgba(15, 23, 42, .4) 100%);
    border-color: rgba(255, 255, 255, .06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3), inset 0 1px 1px rgba(255, 255, 255, .03);
}
[data-theme="dark"] .cdash-tabs .nav-link.active {
    background: rgba(255, 255, 255, .08);
    color: #f1f5f9;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .5), 0 2px 4px rgba(0, 0, 0, .3);
}
[data-theme="dark"] .cdash-stat,
[data-theme="dark"] .cdash-tab-content .dash-card,
[data-theme="dark"] .quick-action-card {
    background: var(--dark-card-bg, #1e2330);
    border-color: rgba(255, 255, 255, .06);
}
[data-theme="dark"] .cdash-stat:hover { border-color: rgba(13, 110, 253, .3); }
[data-theme="dark"] .cdash-empty i {
    color: #64748b;
    background: radial-gradient(circle, rgba(13, 110, 253, .1) 0%, rgba(13, 110, 253, .03) 60%, transparent 100%);
}
[data-theme="dark"] .cdash-mini-row { border-bottom-color: rgba(255, 255, 255, .04); }
[data-theme="dark"] .cdash-mini-row:hover {
    background: linear-gradient(90deg, rgba(13, 110, 253, .08) 0%, transparent 50%);
}
[data-theme="dark"] .attention-card {
    background: linear-gradient(135deg, rgba(220, 38, 38, .08) 0%, rgba(30, 35, 48, .9) 60%, rgba(245, 158, 11, .06) 100%);
    border-color: rgba(220, 38, 38, .25);
}
[data-theme="dark"] .cdash-funnel-stage { background: rgba(255, 255, 255, .03); border-color: rgba(255, 255, 255, .06); }
[data-theme="dark"] .cdash-funnel-bar { background: rgba(255, 255, 255, .05); }
[data-theme="dark"] .cdash-list-foot a {
    background: rgba(13, 110, 253, .12);
    color: #60a5fa;
}
[data-theme="dark"] .cdash-list-foot a:hover { background: rgba(13, 110, 253, .2); }
[data-theme="dark"] .cdash-section-eyebrow {
    background: rgba(13, 110, 253, .15);
    color: #60a5fa;
}
/* Clinic pulse tiles are light cards; dark-theme override lives in
   dashboard-modern.css. */

/* ════════════════════════════════════════════════════════════════
   Responsive — keep premium feel on small screens
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
    .cdash-stat-value { font-size: 1.45rem; }
    .cdash-tabs { padding: .25rem; }
    .cdash-tabs .nav-link { padding: .5rem .75rem; }
}
@media (max-width: 575.98px) {
    .cdash-hero { border-radius: var(--cdash-radius); }
    .cdash-stat { padding: .9rem .95rem .8rem; }
    .cdash-stat-value { font-size: 1.3rem; }
    .cdash-stat-icon { width: 30px; height: 30px; font-size: .9rem; }
    .cdash-funnel-count { font-size: 1.25rem !important; }
    .cdash-tabs .nav-link.active::after { width: 20px; height: 2.5px; bottom: -.35rem; }
}

@media (prefers-reduced-motion: reduce) {
    .cdash-tab-content .tab-pane.active.show > * { animation: none !important; }
    .cdash-funnel-bar > span,
    .cdash-bigdonut-seg { animation: none !important; transition: none !important; }
}
