/* Global Loading Spinner with Blur Background */
.global-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-in-out;
}

.global-loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner-container {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(0, 0, 0, 0.1);
    border-top: 6px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Dark theme support */
.theme-dark .global-loading-overlay {
    background-color: rgba(44, 62, 80, 0.9);
}

.theme-dark .loading-spinner {
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top: 6px solid #3498db;
}

.theme-dark .loading-text {
    color: #3498db;
}
