/* Before MudBlazor has run there are no theme variables, so the literal is the
   fallback; once it has, the page follows the theme rather than this file. The
   font is scoped to the loading screen on purpose: this sheet loads after
   MudBlazor.min.css, and a font on body here would override Roboto app-wide. */
html, body {
    margin: 0;
    background-color: var(--mud-palette-background, #F7F5F0);
}

/* Full-screen loading state shown until Blazor WASM hydrates */
.app-loading {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: #1C1B19;
}

.app-loading-logo {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #1F4D3A;
}

.app-loading-text {
    margin-top: 0.75rem;
    color: #5C5A55;
}

#blazor-error-ui {
    background: #B3261E;
    color: #fff;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.3);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
    box-sizing: border-box;
}

#blazor-error-ui .reload {
    color: #fff;
    text-decoration: underline;
    margin-left: 0.5rem;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
