/*
 * Design tokens. The theme is chosen by <html data-theme="dark|light">
 * (set in index.html before paint and toggled by js/ui.js).
 * Components only use these variables, never raw colors.
 */
:root,
:root[data-theme="dark"] {
    --card: #0b1220;
    --muted: #98a0b3;

    --accent: #a78bfa;
    --accent-2: #7c5cff;
    --highlight: #a78bfa;
    --bg-color-1: #050213;
    --bg-color-2: #1f1a37;

    --text-primary: #e6eef8;
    --text-white: #ffffff;

    --success-green: #7bff7b;
    --error-red: #ff7b7b;

    --border-light: #ffffff08;
    --border-light-2: #ffffff0f;
    --border-light-3: #ffffff1a;
    --bg-light: #ffffff05;
    --bg-light-2: #ffffff0f;

    --shadow-dark: #7c5cff26;
    --shadow-accent: #7c5cff1f;

    --gradient-button: linear-gradient(90deg, #7a5af8, #9d79ff);
    --gradient-bg: linear-gradient(180deg, var(--bg-color-1) 0%, var(--bg-color-2) 100%);
}

/* Light theme (maroon), unchanged from the original design. */
:root[data-theme="light"] {
    --card: #f5f5f5;
    --muted: #666666;

    --accent: #8E1637;
    --accent-2: #6b0d2b;
    --highlight: #8E1637;
    --bg-color-1: #ffffff;
    --bg-color-2: #a83838;

    --text-primary: #111111;
    --text-white: #ffffff;

    --success-green: #00cf00;
    --error-red: #ff3c3c;

    --border-light: #00000014;
    --border-light-2: #0000001f;
    --border-light-3: #00000029;
    --bg-light: #00000008;
    --bg-light-2: #0000000f;

    --shadow-dark: #6b0d2bd9;
    --shadow-accent: #6b0d2b1f;

    --gradient-button: linear-gradient(90deg, #8E1637, #6b0d2b);
    --gradient-bg: linear-gradient(180deg, var(--bg-color-1) 10%, var(--bg-color-2) 300%);
}