:root {
    color-scheme: light;
}

#app {
    min-height: 100dvh;
}

#app .app-bootstrap {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
    background: #f5f5f5;
    color: rgba(0, 0, 0, .87);
}

#app .app-bootstrap-card {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    padding: 24px;
    text-align: center;
}

#app .app-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 4px solid rgba(89, 74, 226, .2);
    border-top-color: #594ae2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#app .app-loading-title {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

#app .app-loading-copy {
    margin: 0;
    color: rgba(0, 0, 0, .6);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#blazor-error-ui {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(18, 18, 18, .7);
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    font-family: "Roboto", "Helvetica", "Arial", sans-serif;
}

#blazor-error-ui .app-error-card {
    width: min(520px, 100%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .24);
    border-top: 5px solid #d32f2f;
    padding: 24px;
}

#blazor-error-ui .app-error-title {
    margin: 0 0 12px;
    font-size: 1.3rem;
    color: #d32f2f;
}

#blazor-error-ui .app-error-copy {
    margin: 0;
    color: rgba(0, 0, 0, .7);
}

#blazor-error-ui .app-error-actions {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

#blazor-error-ui .app-error-actions a {
    text-decoration: none;
    font-weight: 500;
    color: #594ae2;
}
