/* Blazor framework defaults (error banner, loading, validation). */

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--rp-green);
}

.invalid {
    outline: 1px solid var(--rp-danger);
}

.validation-message {
    color: var(--rp-danger);
}

#blazor-error-ui {
    background: var(--rp-error-banner-bg);
    bottom: 0;
    box-shadow: 0 -1px 2px var(--rp-shadow);
    box-sizing: border-box;
    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;
}

.loading-progress {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-progress img {
    width: min(320px, 70vw);
    height: auto;
    animation: rp-pulse 1.4s ease-in-out infinite;
}

@keyframes rp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}
