html,
body {
    margin: 0;
    min-height: 100%;
}

html {
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color-scheme: light;
}


/* =========================================================
   DEFAULT / INDUSTRIAL BLUE
   ========================================================= */

:root,
:root[data-theme-preset="industrial-blue"] {
    --aps-primary: #185ee5;
    --aps-accent: #42a5f5;
    --aps-sidebar: #081324;
    --aps-sidebar-secondary: #0d203c;
    --aps-success: #43a047;
    --aps-warning: #ffb300;
    --aps-danger: #e53935;
    --aps-background: #f5f7fa;
    --aps-surface: #ffffff;
    --aps-surface-hover: #f2f5f9;
    --aps-border: #d8dee8;
    --aps-text: #172033;
    --aps-text-secondary: #667085;
    --aps-grid: #dfe5ee;
}


    /* =========================================================
   STEEL GRAY
   ========================================================= */

    :root[data-theme-preset="steel-gray"] {
        --aps-primary: #2d6cdf;
        --aps-accent: #90caf9;
        --aps-sidebar: #252a31;
        --aps-sidebar-secondary: #343a42;
        --aps-success: #43a047;
        --aps-warning: #ffb300;
        --aps-danger: #e53935;
        --aps-background: #f5f7f9;
        --aps-surface: #ffffff;
        --aps-surface-hover: #eef1f4;
        --aps-border: #d4d9df;
        --aps-text: #20262d;
        --aps-text-secondary: #6c747d;
        --aps-grid: #dde2e7;
    }


    /* =========================================================
   SLATE DARK
   ========================================================= */

    :root[data-theme-preset="slate-dark"] {
        --aps-primary: #3882f6;
        --aps-accent: #93c5fd;
        --aps-sidebar: #111820;
        --aps-sidebar-secondary: #1b2530;
        --aps-success: #22c55e;
        --aps-warning: #f59e0b;
        --aps-danger: #ef4444;
        --aps-background: #f6f7f8;
        --aps-surface: #ffffff;
        --aps-surface-hover: #f1f3f5;
        --aps-border: #d6dbe1;
        --aps-text: #202731;
        --aps-text-secondary: #64748b;
        --aps-grid: #dfe3e8;
    }


    /* =========================================================
   WARM BEIGE
   ========================================================= */

    :root[data-theme-preset="warm-beige"] {
        --aps-primary: #2c6bed;
        --aps-accent: #90b6f9;
        --aps-sidebar: #30281f;
        --aps-sidebar-secondary: #493c2e;
        --aps-success: #2e7d32;
        --aps-warning: #ff9800;
        --aps-danger: #d32f2f;
        --aps-background: #faf7f2;
        --aps-surface: #fffdfa;
        --aps-surface-hover: #f7f0e7;
        --aps-border: #e1d8cc;
        --aps-text: #312c26;
        --aps-text-secondary: #806e63;
        --aps-grid: #e5ddd2;
    }


    /* =========================================================
   DARK MODE
   ========================================================= */

    :root[data-theme-mode="dark"] {
        color-scheme: dark;
        --aps-background: #0f172a;
        --aps-surface: #172033;
        --aps-surface-hover: #202b40;
        --aps-border: #2c3a52;
        --aps-text: #e8eef7;
        --aps-text-secondary: #9aa8bc;
        --aps-grid: #27354a;
    }

        :root[data-theme-mode="dark"]
        body {
            background: var(--aps-background);
            color: var(--aps-text);
        }


/* =========================================================
   GLOBAL
   ========================================================= */

body {
    background: var(--aps-background);
    color: var(--aps-text);
}

a {
    color: var(--aps-primary);
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   BOOTSTRAP OVERRIDES
   ========================================================= */

.table {
    --bs-table-bg: var(--aps-surface);
    --bs-table-color: var(--aps-text);
    --bs-table-border-color: var(--aps-border);
}

.alert-danger {
    border-color: var(--aps-danger);
}


/* =========================================================
   FORM
   ========================================================= */

.form-control,
.form-select {
    background: var(--aps-surface);
    color: var(--aps-text);
    border-color: var(--aps-border);
}

/* V16-R10 focused semantic policy editor reached from Gantt legend. */
.aps-policy-focus-pulse {
    outline: 2px solid rgba(37,99,235,.55);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(37,99,235,.10);
    transition: box-shadow .2s ease, outline-color .2s ease;
}
