/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-logo {
    margin-bottom: 3rem;
    animation: logoFloat 2s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.loading-logo svg {
    width: 100px;
    height: 100px;
}

.loading-logo .inner-circle {
    animation: pulseInner 2s ease-in-out infinite;
    transform-origin: center;
}

.loading-logo .outer-circle {
    animation: pulseOuter 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes pulseInner {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes pulseOuter {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.6;
    }
}

.loading-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.8;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

.progress-container {
    width: 300px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0071e3 0%, #0077ed 50%, #0071e3 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    animation: shimmer 2s linear infinite;
    position: relative;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: slide 1.5s ease-in-out infinite;
}

@keyframes slide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.loading-percentage {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

@media (prefers-color-scheme: dark) {
    .progress-container {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .progress-bar {
        background: linear-gradient(90deg, #0a84ff 0%, #409cff 50%, #0a84ff 100%);
    }
}

@media (max-width: 768px) {
    .loading-logo svg {
        width: 80px;
        height: 80px;
    }

    .progress-container {
        width: 250px;
    }

    .loading-text {
        font-size: 1rem;
    }
}
