/* ── Global Reset & Base ─────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: #f9f9fb;
    color: #1a1a2e;
    -webkit-font-smoothing: antialiased;
}

h1:focus {
    outline: none;
}

/* ── Blazor Validation ───────────────────────────────────── */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* ── Blazor Error Boundary ───────────────────────────────── */
/* Fallback for any nested <ErrorBoundary> without custom <ErrorContent>. */
/* The main boundary in Routes.razor uses its own branded ErrorContent.   */
.blazor-error-boundary {
    background: #fff3cd;
    border-left: 4px solid #b33a3a;
    border-radius: 0.375rem;
    padding: 1rem 1.25rem;
    color: #1a1a2e;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

    .blazor-error-boundary::after {
        content: "Something went wrong. Reload the page to continue.";
    }

.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;
}
/* Visually hidden but readable by screen readers and search engines */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}