/* Estilos globais base. Variáveis em tokens.css, temas em themes/*.css, bloqueios em kiosk.css;
   estilos de cada componente ficam no respectivo .razor.css. Nenhum recurso externo (RNF03). */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    height: 100%;
    background: #000;
    color: #fff;
    font-family: var(--font-body);
}

h1:focus {
    outline: none;
}

button {
    font: inherit;
    color: inherit;
}

/* Texto acessível sem aparecer na tela (ex.: rótulo de botões só com ícone). */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Base comum das telas: ocupam o palco inteiro e entram com fade. */
.screen {
    position: absolute;
    inset: 0;
    animation: screen-in var(--t-screen) ease-out both;
}

@keyframes screen-in {
    from { opacity: 0; transform: scale(1.01); }
    to { opacity: 1; transform: none; }
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    color: #000;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #333;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

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

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

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