/*
 * CSS dos servicos: alerta + carregamento.
 *
 * O CSS do alerta (toast/popup) ja existe em `alert.css` e nao e
 * duplicado aqui — `mostrarAlerta` continua usando `.alert-container`,
 * `.alert`, `.alert.success/error/warning/info`, `.alert-close`, etc.
 *
 * Este arquivo cobre o loader/spinner de `mostrarCarregando` — antes
 * injetado como `<style>` em runtime pelo `modal_carregamento.js`,
 * agora servido como CSS estatico (carregado em `base.html`).
 */

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loader-overlay-visivel {
    display: flex;
    opacity: 1;
}

.loader-overlay-oculto {
    display: none;
    opacity: 0;
}

.loader-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-message {
    margin-top: 15px;
    color: #333;
    font-weight: 500;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
