/* UiKit dark token set (Magic Scales WP1 W1, umbrella D10): UiKitThemes.Dark loads it in the Tokens slot, after Radzen
   material-dark.css (Base slot) and the host's own css (app.css, site.css), so it re-points the Radzen and --wayware-*
   variables those set for the light theme. Crude by design: the brand blue #084D84 stays for filled controls (white on
   it is 8.6:1) and #6fb3e8 is the link and accent colour on the #121a24 surface; the colour-scheme exploration (WP1a,
   umbrella D40/D44) replaces or extends this set through UiKitTheme.WithTokenStylesheet. A host that does not select
   UiKitThemes.Dark never loads this file. */

:root {
    color-scheme: dark;

    /* The palette this set is built from. */
    --mastech-surface: #121a24;
    --mastech-surface-raised: #1a2532;
    --mastech-surface-sunken: #0d141c;
    --mastech-border: #2c3c4f;
    --mastech-text: #e6edf3;
    --mastech-text-muted: #9fb0c2;
    --mastech-accent: #6fb3e8;
    --mastech-brand: #084D84;

    /* Radzen (material-dark) over the palette. */
    --rz-primary: var(--mastech-brand);
    --rz-primary-dark: #063e6b;
    --rz-primary-darker: #052e4f;
    --rz-primary-light: #1b6ca6;
    --rz-primary-lighter: rgba(111, 179, 232, 0.16);
    --rz-on-primary-lighter: var(--mastech-accent);
    --rz-body-background-color: var(--mastech-surface);
    --rz-layout-body-background-color: var(--mastech-surface);
    --rz-base-background-color: var(--mastech-surface-raised);
    --rz-header-background-color: var(--mastech-surface-sunken);
    --rz-header-color: var(--mastech-text);
    --rz-sidebar-background-color: var(--mastech-surface-sunken);
    --rz-sidebar-color: var(--mastech-text);
    --rz-text-color: var(--mastech-text);
    --rz-link-color: var(--mastech-accent);
    --rz-link-hover-color: #9fcdf1;

    /* The light theme's --wayware-* values (site.css) on the dark surface. */
    --wayware-grid-header-background-color: #1f2b38;
    --wayware-grid-header-color: var(--mastech-text);
    --wayware-background-color-lighter: var(--mastech-surface-raised);
    --wayware-form-label-font-color: var(--mastech-text);

    /* The shell components (site.css). */
    --mastech-message-banner-info-background: #12304a;
    --mastech-message-banner-info-color: #d6eafb;
    --mastech-message-banner-info-border: #3f84bf;
    --mastech-message-banner-warning-background: #3a2e0a;
    --mastech-message-banner-warning-color: #fbe7b0;
    --mastech-message-banner-warning-border: #c99a1e;
    --mastech-message-banner-danger-background: #3d1414;
    --mastech-message-banner-danger-color: #fbd3d3;
    --mastech-message-banner-danger-border: #d05454;
    --mastech-account-menu-global-background: #7a3fb0;
    --mastech-account-menu-global-color: #ffffff;
}

html,
body {
    background-color: var(--mastech-surface);
    color: var(--mastech-text);
}

/* app.css gives the Blazor error panel a lightyellow background and no text colour; on the dark body text that is
   unreadable, so the panel takes the warning banner's colours (#fbe7b0 on #3a2e0a, about 11:1), its links and the
   dismiss control included. */
#blazor-error-ui {
    background: var(--mastech-message-banner-warning-background);
    color: var(--mastech-message-banner-warning-color);
    border-top: 1px solid var(--mastech-message-banner-warning-border);
}

#blazor-error-ui a,
#blazor-error-ui a:hover,
#blazor-error-ui .dismiss {
    color: var(--mastech-message-banner-warning-color);
    text-decoration: underline;
}

/* app.css sets the light theme's link colour. */
a,
.btn-link {
    color: var(--mastech-accent);
}

a:hover,
.btn-link:hover {
    color: var(--rz-link-hover-color);
}
