﻿/* Estilização do loader fixo centralizado */
.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    z-index: 100000001;
    background-color: white;
    display: flex;
    align-items: center;
}

/* Loader circular (spinner) */
.spinner {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 1rem;
    border: 0.2em solid rgba(153, 102, 255, 0.2);
    border-top: 0.2em solid rgb(153, 102, 255);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Animação do spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Acessibilidade: esconder texto mas manter leitura por leitor de tela */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
