/* assets/css/loader.css */

/* 1. O Fundo (Overlay) */
.hv-loading-overlay {
    display: none; /* Começa invisível */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* Branco transparente */
    z-index: 99999; /* Garante que fique acima de tudo */
    
    /* Centralização Flexbox */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    
    /* Desfoque do fundo (opcional, fica bonito) */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Classe ativada via JS */
.hv-loading-overlay.active {
    display: flex !important;
}

/* 2. O Ícone da Boia */
.hv-loading-icon {
    font-size: 4rem; /* Tamanho grande */
    color: #0d6efd;  /* Azul Bootstrap */
    margin-bottom: 1rem;
    
    /* --- CORREÇÃO AQUI --- */
    display: inline-block; /* Obrigatório para animar rotação */
    
    /* Definição da animação: nome | tempo | curva | repetição */
    animation: girarBoia 1.5s linear infinite; 
    
    /* Compatibilidade */
    -webkit-animation: girarBoia 1.5s linear infinite;
}

/* 3. O Texto */
.hv-loading-text {
    font-family: 'Ubuntu', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    animation: piscarTexto 1.5s ease-in-out infinite;
}

/* 4. As Animações (Keyframes) */

/* Rotação */
@keyframes girarBoia {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Versão Webkit (Chrome/Safari antigos) */
@-webkit-keyframes girarBoia {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

/* Texto piscando suavemente */
@keyframes piscarTexto {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}