*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
ul {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-center {
    text-align: center;
}

:root {
    --primary: #1e90ff; /* DodgerBlue */
    --primary-dark: #1873cc;
    --primary-light: #f0f7ff;

    --success: #2a7d4f;
    --success-dark: #21633F;
    --danger: #db2a2a;
    --danger-dark: #991d1d;
    --warning: #e67b0a;

    --neutral: #d3d3d3; /* LightGrey */
    --neutral-strong: #a9a9a9; /* DarkGrey */
    --border-dim: #d3d3d3;

    --text-main: #3c444d;
    --text-muted: #5b6875;
    --text-inverse: #ffffff;
    --text-strong: #000000;

    --bg-app: #f7f7f7;
    --bg-surface: #ffffff;
    --bg-disabled: rgba(255, 255, 255, 0.05);
    --bg-input: #f7f7f7;
    --overlay-bg: rgba(0, 0, 0, 0.5);

    --bg-section1: rgb(255, 245, 157);
    --bg-section2: rgb(248, 187, 208);
    --bg-section3: rgb(187, 222, 251);
    --bg-section4: rgb(200, 230, 201);
    --bg-section5: rgb(207, 216, 220);

    --focus-ring: rgba(30, 144, 255, 0.25);
    --shadow: rgba(0, 0, 0, 0.5);

    --z-sticky-low: 2;
    --z-sticky: 1000;
    --z-sticky-header: 1500;
    --z-modal: 2000;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Helvetica, Arial, sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

.alert {
    font-size: 0.85rem;
    text-align: center;
}

.alert-error {
    color: var(--danger-dark);
}

.alert-success {
    color: var(--success);
}

.alert-warning {
    color: var(--warning);
}

.icon {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    width: 3.125rem;
    height: 3.125rem;
    margin-bottom: 0.5rem;
}

.icon-info {
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
    margin-right: 4px;
    margin-bottom: 0;
}

.icon-alert {
    stroke: var(--warning);
    stroke-linecap: round;
    stroke-linejoin: round;
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
    margin-right: 4px;
    margin-bottom: 0;
}

[hidden] {
    display: none !important;
}

.logout-form {
    margin: 0;
}
.modal-actions-center {
    justify-content: center;
}
.trace-info {
    margin: 1rem 0;
    color: var(--text-muted);
}
.text-nowrap {
    white-space: nowrap;
}
.cursor-default {
    cursor: default;
}

.system-banner {
    color: white;
    text-align: center;
    font-weight: bold;
    font-size: 1.1rem;
    width: 100%;
    letter-spacing: 1px;
    z-index: 9999;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.banner-danger {
    background-color: var(--danger-dark);
}

.banner-warning {
    background-color: var(--warning);
}

.banner-success {
    background-color: var(--success);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #549dfb;
        --primary-dark: #83b5fc;
        --primary-light: #20292d;

        --success: #46d295;
        --success-dark: #49DB8C;
        --danger: #cd4d4c;
        --danger-dark: #ff605f;
        --warning: #f08e26;

        --neutral: #252b30;
        --neutral-strong: #37414a;
        --border-dim: #505f6d;

        --text-main: #bac8d4;
        --text-muted: #9ca3af;
        --text-inverse: #1c2023;
        --text-strong: #c7d6e3;

        --bg-app: #1a1c1e;
        --bg-surface: #1c2023;
        --bg-input: #20292d;

        --bg-section1: rgb(82, 75, 40);
        --bg-section2: rgb(82, 40, 53);
        --bg-section3: rgb(28, 62, 94);
        --bg-section4: rgb(39, 78, 45);
        --bg-section5: rgb(45, 55, 64);

        /* NOT DONE
        --focus-ring: rgba(30, 144, 255, 0.25);
        --shadow: rgba(0, 0, 0, 0.5);
        */
    }
}
