/**
 * Reusable Full-Page Loading Overlay Component
 * Styles for full viewport coverage, centered indicator, and status text.
 */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(18, 24, 38, 0.7);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
    user-select: none;
    -webkit-user-select: none;
}

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

.loading-overlay-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 40px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
    min-width: 220px;
    max-width: 90vw;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.2s ease-in-out;
}

.loading-overlay.active .loading-overlay-box {
    transform: scale(1);
}

.loading-overlay-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e9ecef;
    border-top-color: #248afd;
    border-radius: 50%;
    animation: loading-overlay-rotate 0.8s linear infinite;
    -webkit-animation: loading-overlay-rotate 0.8s linear infinite;
}

.loading-overlay-message {
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #343a40;
    line-height: 1.4;
    letter-spacing: 0.3px;
    word-break: break-word;
}

@keyframes loading-overlay-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes loading-overlay-rotate {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}
