/* Blazor framework UI only — the design system lives in css/theme.css */

/* Error UI */
#blazor-error-ui {
    color-scheme: light only;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1.4rem;
    background: #0b1b2b;
    color: #fff;
    font-family: var(--font-sans, system-ui);
    font-size: .92rem;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .25);
}
#blazor-error-ui .reload, #blazor-error-ui .dismiss {
    color: #7dd3fc;
    cursor: pointer;
    text-decoration: underline;
}
#blazor-error-ui .dismiss { margin-left: auto; text-decoration: none; font-size: 1.1rem; }

.blazor-error-boundary {
    background: #fdecec;
    color: #b91c1c;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid #f5c2c2;
    font-size: .92rem;
}
.blazor-error-boundary::after { content: "An error has occurred."; }

/* Reconnect modal */
.components-reconnect-show, .components-reconnect-failed, .components-reconnect-rejected {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: grid;
    place-items: center;
    background: rgba(10, 20, 38, .55);
    backdrop-filter: blur(4px);
    color: #fff;
    font-family: var(--font-sans, system-ui);
    font-size: 1rem;
}
.components-reconnect-show::after { content: "Reconnecting…"; }
.components-reconnect-failed::after { content: "Connection lost. Reload to continue."; }

/* Validation */
.valid.modified:not([type=checkbox]) { outline: 1px solid #16a34a; }
.invalid { outline: 1px solid #dc2626; }
.validation-message { color: #dc2626; font-size: .82rem; margin-top: .3rem; }
