.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(8px);
}

.loading-container {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-orb {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    animation: orbPulse 2s ease-in-out infinite;
    opacity: 0.1;
}

.loading-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: rotateRing 2s linear infinite;
}

.loading-ring-outer {
    border-top: 1.4px solid #2563eb;
    border-right: 1.4px solid #2563eb;
}

.loading-ring-inner {
    width: 75%;
    height: 75%;
    border-bottom: 1.1px solid #4f46e5;
    border-left: 1.1px solid #4f46e5;
    animation: rotateRingInner 2s linear infinite;
}

.loading-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.loading-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #2563eb;
    border-radius: 50%;
    animation: particleOrbit 3s linear infinite;
}

.loading-particle:nth-child(1) { animation-delay: 0s; }
.loading-particle:nth-child(2) { animation-delay: 0.5s; }
.loading-particle:nth-child(3) { animation-delay: 1s; }
.loading-particle:nth-child(4) { animation-delay: 1.5s; }

.loading-text {
    position: absolute;
    bottom: -40px;
    color: #1f2937;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: textPulse 2s ease-in-out infinite;
}

.loading-progress {
    position: absolute;
    bottom: -60px;
    width: 100px;
    height: 2px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 1px;
    overflow: hidden;
}

.loading-progress-bar {
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #4f46e5);
    animation: progressBar 2s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.15;
    }
}

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

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

@keyframes particleOrbit {
    0% {
        transform: rotate(0deg) translateX(35px) rotate(0deg);
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    100% {
        transform: rotate(360deg) translateX(35px) rotate(-360deg);
        opacity: 0;
    }
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

@keyframes progressBar {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.loading-overlay.hidden {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.loading-overlay:not(.hidden) {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}