.popup-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background-color: #1e293b;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}
.popup-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.popup-notification.success { background-color: #10b981; }
.popup-notification.error { background-color: #ef4444; }





/* Global Confirmation Modal Overlay */
#globalConfirmOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6); /* Semi-transparent backdrop */
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: fadeInOverlay 0.2s ease-in-out;
}

#globalConfirmOverlay .cls-modal-container {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: scaleUpModal 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUpModal {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}




/* Center-aligned Success Popup */
.success-popup-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background-color: #ffffff;
    color: #0f172a;
    padding: 1.25rem 1.75rem;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    border-left: 4px solid #10b981; /* Green accent bar */
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease-in-out;
    pointer-events: none;
    min-width: 320px;
}

.success-popup-notification.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.success-popup-notification.hidden {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    pointer-events: none;
}

.success-popup-icon-wrapper {
    width: 2.25rem;
    height: 2.25rem;
    background-color: #ecfdf5;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.success-popup-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.success-popup-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #065f46;
}

.success-popup-message {
    font-size: 0.8125rem;
    color: #64748b;
}