/* Ensure popup is hidden initially */
#loadingPopup {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-popup-content {
    background: linear-gradient(135deg, #e87e02, #ed8b19);
    padding: 40px 60px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    animation: fadeIn 0.5s ease-in-out;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid transparent;
    border-radius: 50%;
    border-top: 5px solid #ffffff;
    border-right: 5px solid #ffffff;
    animation: spin 1s linear infinite;
}

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

@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}
