html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ─── Framework crash banner (#blazor-error-ui) ──────────────────────
 * Blazor toggles this element to display:block (inline style) when an
 * unhandled exception kills the circuit/runtime. Without these rules the
 * raw markup in MainLayout.razor renders as a permanently-visible
 * unstyled div. Hidden by default; when shown, a fixed bottom banner in
 * the Command Center skin — dark panel, GDI-gold border, Nod-red accent
 * on the dismiss control. */
#blazor-error-ui {
    display: none;
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 3000;
    max-width: min(680px, calc(100vw - 32px));
    padding: 14px 56px 14px 18px;
    background: linear-gradient(135deg, rgba(20, 18, 12, 0.97), rgba(10, 12, 16, 0.97));
    border: 1px solid #c8a028;
    border-left: 4px solid #b02828;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    color: #e6e6e6;
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: 0.95rem;
    line-height: 1.45;
}
#blazor-error-ui::before {
    content: "SYSTEM FAULT";
    display: block;
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #c8a028;
    margin-bottom: 2px;
}
#blazor-error-ui .reload {
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #c8a028;
    text-decoration: none;
    border: 1px solid #c8a028;
    padding: 2px 10px;
    margin-left: 10px;
    white-space: nowrap;
}
#blazor-error-ui .reload:hover {
    background: rgba(200, 160, 40, 0.15);
    color: #f0d840;
}
#blazor-error-ui .dismiss {
    position: absolute;
    top: 8px;
    right: 12px;
    cursor: pointer;
    color: #e06060;
    font-size: 1.1rem;
    line-height: 1;
}
#blazor-error-ui .dismiss:hover {
    color: #ff8585;
}

/* ─── Boot splash (#rxa-boot-splash) ─────────────────────────────────
 * Static SSR markup in App.razor shown while the WASM runtime downloads
 * and boots (render mode is prerender:false, so the page is otherwise
 * blank for several seconds on first load). Command Center skin: dark
 * panel + faint grid, Rajdhani caps wordmark in GDI gold, Tiberium-green
 * indeterminate scan bar. Removed by window.rxaHideSplash() the moment
 * MainLayout's first interactive render lands. */
#rxa-boot-splash {
    position: fixed;
    inset: 0;
    /* Below #blazor-error-ui (3000) so a failed WASM boot still surfaces
       the SYSTEM FAULT banner on top of the splash. */
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(180deg, transparent 0px, transparent 2px, rgba(95, 207, 95, 0.025) 3px, transparent 4px),
        linear-gradient(0deg, rgba(200, 160, 40, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 160, 40, 0.04) 1px, transparent 1px),
        radial-gradient(ellipse at center, #14120c 0%, #0d0c0a 70%);
    background-size: auto, 48px 48px, 48px 48px, auto;
    opacity: 1;
    transition: opacity 300ms ease-out;
    pointer-events: none;
}
.rxa-splash-inner {
    text-align: center;
    padding: 2.5rem 3rem;
    border: 1px solid rgba(200, 160, 40, 0.35);
    border-left: 3px solid #c8a028;
    background: linear-gradient(135deg, rgba(20, 18, 12, 0.85), rgba(10, 12, 16, 0.85));
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.6), inset 0 0 18px rgba(200, 160, 40, 0.05);
    clip-path: polygon(8px 0%, 100% 0%, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0% 100%, 0% 8px);
}
.rxa-splash-eyebrow {
    font-family: "Rajdhani", "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: rgba(240, 232, 208, 0.55);
    margin-bottom: 2px;
}
.rxa-splash-title {
    font-family: "Rajdhani", "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 1.9rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #c8a028;
    text-shadow: 0 0 14px rgba(200, 160, 40, 0.35);
    margin-bottom: 1.4rem;
}
.rxa-splash-bar {
    position: relative;
    height: 6px;
    background: #1f1e1a;
    overflow: hidden;
    clip-path: polygon(2px 0%, 100% 0%, calc(100% - 2px) 100%, 0% 100%);
}
.rxa-splash-bar-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 35%;
    background: linear-gradient(90deg, transparent, #5fcf5f 35%, #5fcf5f 65%, transparent);
    box-shadow: 0 0 12px rgba(95, 207, 95, 0.45);
    animation: rxa-splash-sweep 1.4s ease-in-out infinite;
}
@keyframes rxa-splash-sweep {
    0%   { left: -35%; }
    100% { left: 100%; }
}
.rxa-splash-status {
    font-family: "Rajdhani", "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #5fcf5f;
    margin-top: 0.9rem;
    animation: rxa-splash-blink 1.6s ease-in-out infinite;
}
@keyframes rxa-splash-blink {
    0%, 100% { opacity: 0.45; }
    50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .rxa-splash-bar-fill { animation: none; left: 0; width: 100%; }
    .rxa-splash-status   { animation: none; opacity: 0.8; }
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}