﻿/* Global Loader Styles */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #71296D, #483F76);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

    .global-loader.hidden {
        opacity: 0;
        visibility: hidden;
    }

.loader-container {
    text-align: center;
    color: white;
}

.loader-animation {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    position: relative;
}

.loader-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top: 2px solid #FF4081;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

    .loader-circle:nth-child(2) {
        border-top: 2px solid rgba(255, 64, 129, 0.7);
        animation: spin 0.8s linear infinite reverse;
        width: 70%;
        height: 70%;
        top: 15%;
        left: 15%;
    }

    .loader-circle:nth-child(3) {
        border-top: 2px solid rgba(255, 64, 129, 0.4);
        animation: spin 0.8s linear infinite;
        width: 50%;
        height: 50%;
        top: 25%;
        left: 25%;
    }

.loader-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #FF4081, #FF80AB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loader-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.loader-progress {
    width: 150px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background: #FF4081;
    border-radius: 3px;
    width: 0%;
    transition: width 0.2s ease;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Faster pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.8;
    }
}

.loader-text {
    animation: pulse 1s infinite;
}
