/* ======================================================== */
/* NEW MODERN PRELOADER STYLES (Added by Assistant) */
/* ======================================================== */

/* Override original preloader styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-container {
    position: relative;
    width: clamp(100px, 10vw, 150px);
    height: clamp(100px, 10vw, 150px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-logo {
    position: absolute;
    width: 50%;
    height: auto;
    object-fit: contain;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: pulse-logo 2s ease-in-out infinite;
    max-width: 80%;
    max-height: 80%;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--ul-primary);
    border-right-color: var(--ul-secondary);
    border-bottom-color: var(--ul-primary);
    animation: spin-loader 1s linear infinite;
    box-shadow: 0 0 15px rgba(239, 40, 83, 0.1);
}

@keyframes spin-loader {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse-logo {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(0.9);
        opacity: 0.8;
    }

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