/*! ============================= Loader ============================= */
.loader-wrapper {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-wrapper.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    animation: loaderPulse 1.6s ease-in-out infinite;
}

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

.loader-leaf {
    font-size: 26px;
    color: var(--main-color);
    animation: loaderSpin 1.2s linear infinite;
}

@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-bar {
    width: 180px;
    height: 6px;
    border-radius: 10px;
    background-color: #49733e1a;
    overflow: hidden;
    position: relative;
}

.loader-bar-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 40%;
    border-radius: 10px;
    background: linear-gradient(90deg, #004B22 0%, #007E39 40%, #53753E 70%, #A66C42 100%);
    animation: loaderBarMove 1.2s ease-in-out infinite;
}

@keyframes loaderBarMove {
    0% {
        right: -40%;
    }
    50% {
        right: 30%;
    }
    100% {
        right: 100%;
    }
}

@media (max-width: 575px) {
    .loader-logo {
        width: 90px;
    }
    .loader-bar {
        width: 140px;
    }
}