/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Hidden state */
.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===== LOADING CONTAINER ===== */
.loading-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* ===== SPINNER 1: Classic Spinner ===== */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(45, 90, 39, 0.1);
    border-top-color: #2D5A27;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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


/* ===== LOADING TEXT ===== */
.loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2D5A27;
    letter-spacing: 1px;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* ===== PROGRESS BAR ===== */
.loading-progress {
    width: 200px;
    height: 4px;
    background: rgba(45, 90, 39, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.loading-progress-bar {
    width: 0%;
    height: 100%;
    background: #2D5A27;
    border-radius: 4px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes progress {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}