/* Marketing-site brand palette, loaded for the Fluent theme group via ThemeSwitcher:CustomUrls in appsettings.json.
   The light accent is also the "LlamaLogger" item's Color there (Fluent builds its accent scale from it); keep the two in sync.
   Scoped to body so these win over the theme's :root definitions; XAF adds dxbl-theme-dark to body in dark mode. */
body {
    --llama-background: #f5f5f8;
    --llama-surface: #ffffff;

    --dxds-color-surface-neutral-default-rest: var(--llama-surface);
    --dxds-color-surface-neutral-subdued-rest: var(--llama-background);
    background-color: var(--llama-background);
}

body.dxbl-theme-dark {
    --llama-background: #14131a;
    --llama-surface: #1d1b25;
    --llama-accent: #ff8a2b;

    /* Dark mode would otherwise derive a lighter accent from #e8730c; pin it to the brand value. */
    --dxds-color-surface-primary-default-rest: var(--llama-accent);
    --dxds-color-surface-primary-default-hovered: color-mix(in srgb, var(--llama-accent), white 12%);
    --dxds-color-content-primary-default-rest: var(--llama-accent);
    --dxds-color-content-primary-default-hovered: color-mix(in srgb, var(--llama-accent), white 12%);
    --dxds-color-border-primary-default-rest: var(--llama-accent);
    --dxds-color-border-primary-default-hovered: color-mix(in srgb, var(--llama-accent), white 12%);
}

/* Grid lines: softer than the theme's general border colour. --dxbl-grid-border-color is DevExpress-internal, so after an
   upgrade this may stop applying (the grid just falls back to the theme colour). body raises specificity over the theme's .dxbl-grid rule. */
body .dxbl-grid {
    --dxbl-grid-border-color: #e4e3ea;
}

body.dxbl-theme-dark .dxbl-grid {
    --dxbl-grid-border-color: #3d3949;
}

/* Custom data columns (custom.css): white at 5% over the dark surface, #282630. */
body.dxbl-theme-dark {
    --llama-extra-column-bg: rgba(255, 255, 255, 0.05);
}

/* Status chips (custom.css) retuned for the dark surfaces; light mode keeps the defaults, which these would wash out on white.
   Starred moves to gold so it doesn't read as the orange accent. */
body.dxbl-theme-dark .llama-chip-status-normal {
    background-color: #6e8fd6;
    color: #14131a;
}

body.dxbl-theme-dark .llama-chip-status-starred {
    background-color: #f2c14e;
    color: #14131a;
}

body.dxbl-theme-dark .llama-chip-status-dismissed {
    background-color: #4a4659;
    color: #d6d3e0;
}
