:root {
    color-scheme: dark;
    --bg: #303334; /* page background */
    --text: #b2b0ac; /* muted warm off-white, matching Dark Reader text */
    --header-bg: #2a2c2d; /* slightly darker header/nav */
    --tab-content-bg: #303334; /* content background */
    --border: var(--task-row-border); /* subtle borders (alias to task row border) */
    --card-bg: rgba(255, 255, 255, 0.04); /* card/panel surface over page bg */
    --item-hover-bg: rgba(255, 255, 255, 0.05); /* row hover state */

    /* Text scale */
    --text-primary: #b2b0ac; /* primary content text */
    --text-secondary: #716f6c; /* secondary/supporting text */
    --text-muted: #6e6c6a; /* muted/disabled text */

    /* ── Consistent purple palette (hue ~263°) ── */
    --purple-1: #e0ccfc; /* pale lavender — scheduled times, faint accents */
    --purple-2: #b490f4; /* light — bright highlights, gradient endpoints */
    --purple-3: #8a52da; /* medium — tag text, icon accents */
    --purple-4: #6a32b8; /* primary — buttons, active tab text */
    --purple-5: #4c2294; /* dark — button pressed/active backgrounds */
    --purple-6: #382068; /* deeper — selection & focus highlight backgrounds */
    --purple-7: #241548; /* very dark — tag chip backgrounds */
    --purple-border: #4a3280; /* border — tag borders, dialog outlines */

    /* Semantic accent aliases — all sourced from the palette above */
    --accent: var(--purple-4);
    --accent-bright: var(--purple-2);
    --accent-pink: #cc40b8; /* magenta accent — intentionally distinct */
    --accent-blue: var(--purple-3);
    --accent-blue-bg: var(--purple-6);
    --accent-orange: var(--time-elapsed);
    --accent-green: #10b981; /* emerald green — ok/success states */
    --accent-cyan: #22d3ee; /* cyan — in-progress task lists */
    --accent-red: #ef4444; /* red — error/critical states */
    --tag-color: var(--purple-3);
    --link: var(--purple-2); /* bright purple for links — good contrast on dark backgrounds */
    --header: #8f61d6; /* brighter purple for headers — midpoint between accent and link */

    --accent-text: #1a1a1a;
    --pre-text: #2de076; /* neon green accent used for task left stripe */
    --task-left-accent: #2de076;
    --task-row-bg: #303334;
    --task-row-border: #484644;
    --time-scheduled: var(--purple-1);
    --time-elapsed: #e07830;
    --inprogress-base: #7030e0; /* vivid purple for glow animation */
    --inprogress-glow: rgba(112, 48, 224, 0.9);
    --inprogress-glow-outer: rgba(112, 48, 224, 0.30);
    --inprogress-glow-outer-2: rgba(112, 48, 224, 0.14);
    --tag-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --tag-font-weight: 700;
    --tag-letter-spacing: 0.4px;
    --tag-bg: var(--purple-7);
    --tag-border: var(--purple-border);
    --shadow: rgba(0, 0, 0, 0.50);
    --btn-hover: #2e2d3a;
    --primary-color: #3574e0;
    --primary-color-dark: #1a48c8;
}

/* Dark theme flag (in case we add toggling later) */
.theme-dark {
    color-scheme: dark;
}
