/* styles_premium.css - Versão Definitiva e Ultra Estável */
:root {
    --brand-accent: #10B981;
}

/* 1. Loader de Página Inteira */
#global-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    /* Fundo branco para contraste */
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease-out, visibility 0.4s;
    opacity: 1;
    visibility: visible;
}

#global-page-loader.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
}

.loader-logo {
    width: 120px;
    /* Tamanho fixo */
    height: auto;
    /* Mantém a proporção */
    margin-bottom: 25px;
    animation: pulse-logo 2s infinite ease-in-out;
    filter: brightness(0);
    /* Deixa o logo branco totalmente preto */
}

.loader-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--brand-accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

@keyframes pulse-logo {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 2. Barra de Progresso no Topo */
#page-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--brand-accent);
    z-index: 100000;
    transition: width 0.3s ease, opacity 0.3s;
}

/* 3. Controle de Visibilidade do Body */
body:not(.content-ready) {
    overflow: hidden;
    /* Prevent scrolling during loading */
}

/* Suavidade nos elementos interativos */
a,
button {
    transition: all 0.2s ease !important;
}