/* ============================================================================
   Blazor plumbing: boot screen, error UI, validation.
   Brand tokens come from site.css, which is loaded first.
   ========================================================================= */

/* ---------------------------------------------------------------- Boot ---- */

.app-boot {
    position: fixed;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 0.35rem;
    background: #030F17;
    color: #FFFBFA;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-align: center;
    padding: 2rem;
}

/* An h1 now, so it also takes the site's heading colour: keep it on-dark. */
.app-boot__title {
    margin: 0.5rem 0 0;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: inherit;
}

.app-boot__lead {
    margin: 0.35rem 0 0;
    max-width: 34rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(255, 251, 250, 0.72);
}

    .app-boot__lead a {
        color: #F5B841;
    }

.app-boot__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin: 0.85rem 0 0.6rem;
}

    .app-boot__links a {
        padding: 0.3rem 0.75rem;
        border: 1px solid rgba(255, 251, 250, 0.22);
        border-radius: 999px;
        color: #FFFBFA;
        font-size: 0.8rem;
        font-weight: 700;
        text-decoration: none;
    }

.loading-progress {
    position: relative;
    display: block;
    width: 6.5rem;
    height: 6.5rem;
}

    .loading-progress circle {
        fill: none;
        stroke: rgba(255, 251, 250, 0.16);
        stroke-width: 0.5rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #F5B841;
            stroke-linecap: round;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.65), 500%;
            transition: stroke-dasharray 0.12s ease-in-out;
        }

.loading-progress-text {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 251, 250, 0.55);
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Laden");
    }

/* --------------------------------------------------------------- Errors --- */

#blazor-error-ui {
    color-scheme: light only;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    box-sizing: border-box;
    width: 100%;
    padding: 0.85rem 3rem 0.9rem 1.25rem;
    background: #FEF3DA;
    color: #070100;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.95rem;
    box-shadow: 0 -2px 12px rgba(7, 1, 0, 0.18);
}

    #blazor-error-ui .reload {
        color: #8D0801;
        font-weight: 700;
    }

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

.blazor-error-boundary {
    background: #8D0801;
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 16px;
}

    .blazor-error-boundary::after {
        content: "Er is een fout opgetreden.";
    }

/* ----------------------------------------------------------- Validation --- */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #16A34A;
}

.invalid {
    outline: 1px solid #8D0801;
}

.validation-message {
    color: #8D0801;
}
