/* Popup Notification Styles */

#popupNotification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

@keyframes slideIn {
    from {
        transform: translateX(450px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(450px);
        opacity: 0;
    }
}

.popup-notification.removing {
    animation: slideOut 0.3s ease-in forwards;
}

.popup-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    gap: 12px;
}

.popup-message {
    flex: 1;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.popup-close:hover {
    opacity: 1;
}

/* Success */
.popup-success .popup-content {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.popup-success .popup-close {
    color: #155724;
}

/* Error */
.popup-error .popup-content {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.popup-error .popup-close {
    color: #721c24;
}

/* Warning */
.popup-warning .popup-content {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
}

.popup-warning .popup-close {
    color: #856404;
}

/* Info */
.popup-info .popup-content {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.popup-info .popup-close {
    color: #0c5460;
}

/* Mobile responsive */
@media (max-width: 480px) {
    #popupNotification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .popup-content {
        padding: 12px 16px;
        font-size: 13px;
    }
}
