/**
 * Notifications Modern - AngoHost Branding
 * Sleek, premium snackbars for cart actions
 */

.notification-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.notification-toast {
    pointer-events: auto;
    min-width: 300px;
    max-width: 400px;
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: notification-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.notification-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #673de6;
    /* AngoHost Purple */
}

.notification-toast.notification-error::before {
    background: #dc3545;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.notification-icon {
    font-size: 1.25rem;
    color: #673de6;
}

.notification-error .notification-icon {
    color: #dc3545;
}

.notification-message {
    font-size: 0.9rem;
    font-weight: 500;
}

.notification-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-undo {
    background: transparent;
    border: none;
    color: #9d7dfa;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    text-transform: uppercase;
}

.notification-undo:hover {
    background: rgba(157, 125, 250, 0.1);
}

.notification-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.notification-close:hover {
    color: #ffffff;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(103, 61, 230, 0.4);
    width: 0%;
}

.notification-error .notification-progress {
    background: rgba(220, 53, 69, 0.4);
}

@keyframes notification-slide-in {
    from {
        transform: translateX(40px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notification-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(40px);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .notification-container {
        bottom: 16px;
        left: 16px;
        right: 16px;
    }

    .notification-toast {
        min-width: 0;
        max-width: none;
    }
}