/* Host-local styles for the Blazor WebAssembly demo head.
   The real design system lives in _content/Kmila.Shared/... — this file only
   covers the pre-Blazor boot screen and the framework error strip. */

.kmila-boot {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #334155;
    background: #f8fafc;
}

@media (prefers-color-scheme: dark) {
    .kmila-boot { color: #e2e8f0; background: #0b1220; }
}

.kmila-boot-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: kmila-boot-spin 0.8s linear infinite;
    opacity: 0.85;
}

.kmila-boot-label { font-size: 1.05rem; font-weight: 600; }
.kmila-boot-sub   { font-size: 0.85rem; opacity: 0.65; }

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

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.6rem 1.25rem 0.6rem 3.25rem;
    background: #ffe4b5;
    color: #4a2f00;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 0.9rem;
}

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

#blazor-error-ui .reload { margin-left: 0.4rem; }
