.global-notification-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent backdrop */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* High z-index to be on top */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; /* Allow clicks through backdrop if message not hit */
    -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
}

.global-notification-overlay.visible {
    display: flex;
    opacity: 1;
    pointer-events: auto; /* Block clicks when visible */
    -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
}

.global-notification-box {
    background-color: white;
    padding: 25px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 300px;
    max-width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease-in-out;
    position: relative;
}

.global-notification-overlay.visible .global-notification-box {
    transform: scale(1);
}

.global-notification-box p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.global-notification-box.success p {
    color: #38a169; /* Green text for success */
}

.global-notification-box.error p {
    color: #e53e3e; /* Red text for error */
}

.global-notification-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #a0aec0; /* Gray color */
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.global-notification-close-btn:hover {
    color: #718096; /* Darker gray on hover */
}
