html, body {
    background: var(--mono-black);
    height: auto;
    overflow: visible;
}

/* --- App loading screen --- */

#app-loading {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    transition: opacity 0.3s ease-out;
}

#app-loading.hiding {
    opacity: 0;
    pointer-events: none;
}

@keyframes app-loading-rotate {
    0% {
        transform: rotate(0deg);
    }
    80% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(180deg);
    }
}

.app-loading__spinner {
    position: relative;
    width: 80px;
    height: 80px;
    animation: app-loading-rotate 1s ease-in-out infinite;
}

.app-loading__circle {
    position: absolute;
    border-radius: 50%;
    background-color: #fff;
    width: 28px;
    height: 28px;
    left: 50%;
    transform: translateX(-50%);
}

.app-loading__circle--top {
    top: 0;
}

.app-loading__circle--bottom {
    bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
    .app-loading__spinner {
        animation: none;
    }
}

/* --- Error UI --- */

#blazor-error-ui {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: none;
    background: #1a1a1a;
    border: 1px solid #ef4444;
    border-radius: 12px;
    padding: 8px 20px;
    color: #d4d4d4;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

#blazor-error-ui .reload {
    color: #60a5fa;
    text-decoration: none;
    margin-left: 8px;
}

#blazor-error-ui .reload:hover {
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    margin-left: 12px;
}
