/* Premium Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    position: relative;
}

.loader-logo {
    width: 120px;
    height: auto;
    margin-bottom: 30px;
    animation: pulse 2s infinite ease-in-out;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(116, 55, 150, 0.1);
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #743796, #437dbd);
    transition: width 0.4s ease;
}

.loader-text {
    margin-top: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #743796;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInOut 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0px rgba(116, 55, 150, 0));
    }

    50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(116, 55, 150, 0.2));
    }
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* Dark mode support if applicable */
@media (prefers-color-scheme: dark) {
    #preloader {
        background: #0f0f0f;
    }

    .loader-bar {
        background: rgba(255, 255, 255, 0.05);
    }
}