/*
 * Overlay padrão de carregamento (proposta do Hub Ambiental), usado em todo o portal enquanto há
 * processamento AJAX: cobre e bloqueia a tela com blur, folha "respirando" e anel giratório.
 */
.ajax-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 35, 24, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.ajax-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ajax-loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.ajax-loading-spinner {
    position: relative;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ajax-loading-spinner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 3px solid rgba(213, 217, 113, 0.25);
    border-top-color: #D5D971;
    animation: ajaxLoadingSpin 0.9s linear infinite;
}

.ajax-loading-leaf {
    font-size: 40px;
    color: #A5A83B;
    animation: ajaxLoadingBreathe 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 10px rgba(64, 89, 46, 0.25));
}

.ajax-loading-text {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #D5D971;
    letter-spacing: 0.5px;
}

@keyframes ajaxLoadingBreathe {
    0%, 100% { transform: scale(1); opacity: 0.75; }
    50%      { transform: scale(1.15); opacity: 1; }
}

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