/*
 * Preuvia brand layer over the Neo Elite kit: the kit's cyan accent becomes the violet of the logo
 * (#635bff on navy #0b1437). Only tokens are overridden, every component follows. Loaded right after
 * theme.css. Contrast (WCAG AA) checked for: on-primary on primary, text-emphasis on its soft tint
 * and on the page, links on surfaces, secondary text on dark surfaces.
 */

:root,
[data-bs-theme="light"] {
    --bs-primary: #635bff;
    --bs-primary-rgb: 99, 91, 255;
    --bs-primary-text-emphasis: #4b41d8;
    --bs-link-color: #4b41d8;
    --bs-link-color-rgb: 75, 65, 216;
    --bs-link-hover-color: #3a31b5;
    --bs-link-hover-color-rgb: 58, 49, 181;
    --bs-code-color: #4b41d8;

    /* Info moves to blue so it stays distinct from the violet accent */
    --bs-info: #2563eb;
    --bs-info-rgb: 37, 99, 235;
    --bs-info-text-emphasis: #1d4ed8;

    --ui-on-primary: #ffffff;

    /* Ambient backdrop: violet and purple glows with a hint of blue */
    --ui-page-bg: #f3f2fb;
    --ui-ambient-1: rgba(99, 91, 255, 0.4);
    --ui-ambient-2: rgba(168, 85, 247, 0.28);
    --ui-ambient-3: rgba(99, 91, 255, 0.2);
    --ui-nav-active-bg: rgba(99, 91, 255, 0.12);
    --ui-glass-shadow: 0 0 0 1px rgba(11, 20, 55, 0.05), 0 10px 30px -16px rgba(30, 27, 90, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.7);

    /* Data viz: violet first, then orange and teal; sequential ramp in the brand violet */
    --ui-chart-1: #5b51f0;
    --ui-chart-2: #eb6834;
    --ui-chart-3: #0f8f8a;
    --ui-seq-1: #e8e7ff;
    --ui-seq-2: #b9b5ff;
    --ui-seq-3: #7f78ff;
    --ui-seq-4: #5146e0;
    --ui-seq-5: #2e2785;
}

[data-bs-theme="dark"] {
    /* Near-neutral graphite with a faint cool cast: violet stays the accent instead of tinting every
       surface. Steps: page, chrome, content, then controls and raised layers. */
    --bs-body-color: #e6e8ee;
    --bs-body-color-rgb: 230, 232, 238;
    --bs-body-bg: #1a1c23;
    --bs-body-bg-rgb: 26, 28, 35;
    --bs-secondary-color: #b3b7c4;
    --bs-secondary-color-rgb: 179, 183, 196;
    --bs-secondary-bg: #23262e;
    --bs-secondary-bg-rgb: 35, 38, 46;
    --bs-tertiary-color: #9196a5;
    --bs-tertiary-color-rgb: 145, 150, 165;
    --bs-tertiary-bg: #1f2229;
    --bs-tertiary-bg-rgb: 31, 34, 41;
    --bs-border-color: #2e323c;
    --bs-border-color-translucent: #2e323c;
    --bs-light: #2a2d36;
    --bs-light-rgb: 42, 45, 54;

    --bs-primary: #8f89ff;
    --bs-primary-rgb: 143, 137, 255;
    --bs-primary-text-emphasis: #bdb9ff;
    --bs-link-color: #a8a3ff;
    --bs-link-color-rgb: 168, 163, 255;
    --bs-link-hover-color: #cbc8ff;
    --bs-link-hover-color-rgb: 203, 200, 255;
    --bs-code-color: #bdb9ff;

    --bs-info: #7aa7ff;
    --bs-info-rgb: 122, 167, 255;
    --bs-info-text-emphasis: #a9c6ff;
    --ui-on-info: #0b1d3a;

    --ui-on-primary: #14113d;

    --ui-page-bg: #111318;
    --ui-ambient-1: rgba(99, 91, 255, 0.07);
    --ui-ambient-2: rgba(168, 85, 247, 0.04);
    --ui-ambient-3: rgba(99, 91, 255, 0.03);
    --ui-glass-surface: rgba(26, 28, 35, 0.98);
    --ui-glass-chrome: rgba(22, 24, 30, 0.97);
    --ui-glass-bg: rgba(32, 35, 43, 0.98);
    --ui-glass-border: #2c3039;
    --ui-glass-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 12px 32px -14px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    --ui-scroll-thumb: #4a4f5c;
    --ui-nav-active-bg: rgba(143, 137, 255, 0.14);
    --ui-surface-raised: #262932;
    --ui-input-bg: #1e2128;
    --ui-input-bg-focus: #242730;
    --ui-input-border: #444956;
    --ui-glow: 0 0 16px -6px rgba(143, 137, 255, 0.45);

    --ui-chart-1: #8f89ff;
    --ui-chart-2: #e8743f;
    --ui-chart-3: #2bb3ab;
    --ui-seq-1: #26244a;
    --ui-seq-2: #3b3592;
    --ui-seq-3: #5b51f0;
    --ui-seq-4: #8f89ff;
    --ui-seq-5: #cbc8ff;
}
