/* Loading Overlay - New 2.1.0 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.9) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100000 !important;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: fadeInOverlay 0.4s ease-out;
}

[data-theme="light"] .loading-overlay {
    background: rgba(248, 249, 250, 0.85);
}

.loading-content {
    width: 450px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.loading-icon {
    font-size: 4.5rem;
    margin-bottom: 25px;
    animation: pulseIcon 1.5s infinite ease-in-out;
    filter: drop-shadow(0 0 20px rgba(242, 108, 34, 0.5));
}

#loading-text {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-main);
}

#loading-subtext {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 35px;
}

.loading-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-body);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.loading-bar {
    width: 45%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    animation: slideBar 2.2s infinite ease-in-out;
}

@keyframes pulseIcon {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(242, 108, 34, 0.3));
    }

    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 30px rgba(242, 108, 34, 0.6));
    }
}

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

    100% {
        transform: translateX(250%);
    }
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}