﻿
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999 !important; /* Highest z-index */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

    .loading-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

.spinner {
    width: 80px;
    height: 80px;
    position: relative;
}

.spinner-inner {
    width: 100%;
    height: 100%;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top: 5px solid #fff;
    animation: spin 1.5s linear infinite;
}

    .spinner-inner:nth-child(2) {
        width: 70%;
        height: 70%;
        border: 4px solid rgba(255, 255, 255, 0.2);
        border-top: 4px solid #e74c3c;
        animation: spinReverse 1.2s linear infinite;
        position: absolute;
        top: 15%;
        left: 15%;
    }

    .spinner-inner:nth-child(3) {
        width: 50%;
        height: 50%;
        border: 3px solid rgba(255, 255, 255, 0.2);
        border-top: 3px solid #27ae60;
        animation: spin 1s linear infinite;
        position: absolute;
        top: 25%;
        left: 25%;
    }

.loading-text {
    font-size: 22px;
    color: white;
    font-weight: 500;
    margin-top: 25px;
    text-align: center;
}

.loading-subtext {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    font-size: 16px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@media (max-width: 768px) {
    .spinner {
        width: 60px;
        height: 60px;
    }

    .loading-text {
        font-size: 18px;
    }
}
