/* Global notification styles (shared with translation overview) */

/* Success notification */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(40, 167, 69, 0.3);
    z-index: 9999;
    min-width: 350px;
    max-width: 500px;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #1e7e34;
}

.success-notification.show {
    transform: translateX(0);
}

.success-notification .notification-header,
.error-notification .notification-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.success-notification .notification-icon {
    font-size: 24px;
    margin-right: 12px;
    animation: gcmNotifBounce 0.6s ease-in-out;
}

.error-notification .notification-icon {
    font-size: 24px;
    margin-right: 12px;
    animation: gcmNotifShake 0.6s ease-in-out;
}

.success-notification .notification-title,
.error-notification .notification-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.success-notification .notification-message,
.error-notification .notification-message {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-height: 180px;
    overflow-y: auto;
}

.success-notification .notification-close,
.error-notification .notification-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.success-notification .notification-close:hover,
.error-notification .notification-close:hover {
    opacity: 1;
}

@keyframes gcmNotifBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Error notification */
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    color: white;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(220, 53, 69, 0.3);
    z-index: 9999;
    min-width: 350px;
    max-width: 500px;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #c82333;
}

.error-notification.show {
    transform: translateX(0);
}

@keyframes gcmNotifShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Responsive notifications */
@media (max-width: 768px) {
    .success-notification,
    .error-notification {
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100%);
    }
    .success-notification.show,
    .error-notification.show {
        transform: translateY(0);
    }
}

