/* UPP Change Management — global styles. MudBlazor provides the component styling/theme;
   this file sets the font stack and a few global polish rules. */

:root {
    --upp-periwinkle: #93A4D3;
    --upp-gray: #686868;
    --upp-light: #F3F4F6;
}

html, body {
    font-family: "Aptos", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Use the brand font everywhere MudBlazor renders too. */
.mud-typography, .mud-input, .mud-button-root, .mud-nav-link, .mud-table {
    font-family: "Aptos", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

h1:focus {
    outline: none;
}

/* Blazor's default error UI (kept; MudBlazor doesn't replace this). */
.blazor-error-boundary {
    background: #C62828;
    padding: 1rem 1rem 1rem 1rem;
    color: white;
    border-radius: 8px;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

#blazor-error-ui {
    color-scheme: light;
    background: #ffe9a8;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
