/* ============================================
   GLOBAL MODERN LOADING SPINNER
   Usage: Include this CSS file globally
   ============================================ */

.global-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.global-loader-overlay.active {
    display: flex;
    opacity: 1;
}

.global-loader-content {
    text-align: center;
    animation: globalLoaderFadeInUp 0.5s ease;
}

.global-loader-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    position: relative;
}

.global-loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: globalLoaderSpin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.global-loader-ring:nth-child(1) {
    animation-delay: -0.45s;
    border-top-color: #3498db;
}

.global-loader-ring:nth-child(2) {
    animation-delay: -0.3s;
    border-top-color: #2ecc71;
}

.global-loader-ring:nth-child(3) {
    animation-delay: -0.15s;
    border-top-color: #f39c12;
}

.global-loader-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    animation: globalLoaderPulse 1.5s ease-in-out infinite;
}

.global-loader-subtext {
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 400;
}

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

@keyframes globalLoaderPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes globalLoaderFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .global-loader-spinner {
        width: 60px;
        height: 60px;
    }

    .global-loader-text {
        font-size: 16px;
    }

    .global-loader-subtext {
        font-size: 13px;
    }
}
