html {
    height: 100%;
    overflow: hidden;
    color-scheme: light dark;
}

body {
    position: relative;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

#app {
    position: fixed;
    inset: 0;
}

#app .loading-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #ffffff;
    color: #1a3a5c;
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
}

#app .loading-spinner {
    width: 64px;
    height: 64px;
}

#app .loading-screen p {
    margin: 0;
    font-size: 0.95rem;
}

@media (prefers-color-scheme: dark) {
    #app .loading-screen {
        background: #1e1e1e;
        color: #7fb3d8;
    }
}

#blazor-error-ui {
    background: lightyellow;
    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;
}
