/* ==========================================================================
   MODERN UI - Consistent Loading Modal Popup Styles
   ONLY for Modern UI implementations (RecruiterUser, AdminModern, EmployerUserModern, EmployerLayout)
   NOT for old UI (EmployerUser, Admin, JobseekerUser)
   ========================================================================== */

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Standard Loading Modal */
#loadingModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    pointer-events: all;
    backdrop-filter: blur(2px);
}

#loadingModal.active {
    display: flex;
}

#loadingModal > div {
    background: #ffffff;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    min-width: 200px;
}

#loadingModal > div > div {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #118fd7;
    border-radius: 50%;
    animation: loaderSpin 0.8s linear infinite;
    margin: 0 auto 15px;
}

#loadingModal > div > p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #334155;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #loadingModal > div {
        min-width: 90%;
        max-width: 95%;
        padding: 1.5rem 2rem;
    }
    
    #loadingModal > div > div {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
    
    #loadingModal > div > p {
        font-size: 14px;
    }
}

