/* ── TRANSIÇÕES DE PÁGINA ── */

/* Fade-out ao sair (classe adicionada via JS pelo transitions.js) */
body.saindo {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

/* ── LOADING OVERLAY ── */
#loading-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.35s ease;
}

#loading-overlay.oculto {
    opacity: 0;
    pointer-events: none;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: #0f0741;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner-label {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    color: #888;
    font-weight: 600;
    letter-spacing: 0.3px;
}
