html, body {
    background-color: #181818;
    color: #f1f1f1;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
}

/* Links — soft blue (brand accent) */
a, .btn-link {
    color: #B4D7E1;
    text-decoration: none;
}

a:hover, .btn-link:hover {
    color: #d4e7ed;
}

/* Primary button — Clave teal */
.btn-primary {
    color: #FFE6CD;
    background-color: #005550;
    border-color: #003e3a;
}

.btn-primary:hover {
    color: #FFE6CD;
    background-color: #00736b;
    border-color: #005550;
}

.btn-primary:focus, .btn-primary:active {
    color: #FFE6CD;
    background-color: #00736b;
    border-color: #FFE6CD;
}

/* Focus outlines — cream ring, brand-aligned */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(0, 0, 0, 0.5), 0 0 0 0.22rem rgba(255, 230, 205, 0.55);
}

.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;
}

/* Dark-mode error boundary */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: #fff;
    background-image: none; /* Remove or replace the default error icon */
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Dark scrollbars site-wide. Subtle on idle, lights up on hover. */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 230, 205, 0.42);
    background-clip: padding-box;
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

/* Floating labels on dark */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: #ccc;
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}
