#global-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 20, 30, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    cursor: wait;
    pointer-events: none;
}

#global-loading-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#global-loading-overlay .loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 3rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

#global-loading-overlay .loading-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

#global-loading-overlay .spinner-border {
    width: 1.75rem;
    height: 1.75rem;
    border-width: 0.2em;
    border-color: rgba(255, 255, 255, 0.2);
    border-right-color: #ffffff;
}

#global-loading-overlay .loading-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

@media (prefers-color-scheme: light) {
    #global-loading-overlay {
        background: rgba(15, 20, 30, 0.6);
    }
    #global-loading-overlay .loading-content {
        background: rgba(255, 255, 255, 0.85);
        border: 1px solid rgba(0, 0, 0, 0.08);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
    #global-loading-overlay .loading-logo {
        filter: none;
        opacity: 1;
    }
    #global-loading-overlay .spinner-border {
        border-color: rgba(0, 0, 0, 0.1);
        border-right-color: #206bc4;
    }
    #global-loading-overlay .loading-text {
        color: #1a202c;
    }
}