@import url('https://fonts.googleapis.com/css?family=Poppins');



/* Smart Popup */
.modal {
    display: none; /* Ensures modal is hidden on page load */
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex; /* This will only work when JavaScript sets it */
    align-items: center;
    justify-content: center;
    visibility: hidden; /* Ensures it does not flash before being hidden */
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    animation: fadeIn 0.3s ease-in-out forwards;
}

/* Ensures that hidden modals are not taking up space */
.modal.hidden {
    display: none !important;
    visibility: hidden !important;
}


/* Close button styling */
.close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease-in-out;
}

.close-button:hover {
    opacity: 1;
}

/* Alert Message Styling */
#alertMessage {
    color: #333;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

/* Modal Button Styling - specific to alert modal */
#customAlert .modal-content button {
    margin-top: 20px;
    padding: 10px 30px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
}

#customAlert .modal-content button:hover {
    background: #1d4ed8;
}

/* Animation Adjustments */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}





     /* Full-page overlay */
     .loading-overlay {
         position: fixed;
         top: 0;
         left: 0;
         width: 100%;
         height: 100%;
         background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
         display: flex;
         align-items: center;
         justify-content: center;
         z-index: 1000; /* Ensure it stays above everything */
         display: none; /* Hidden by default */
     }

     /* Adjust spinner size */
     .loading-overlay img {
         width: 150px; /* Adjust size as needed */
     }