/* Notification Styles */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 350px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
    gap: 12px;
}

.notification.success {
    border-left: 4px solid #4CAF50;
}

.notification.error {
    border-left: 4px solid #F44336;
}

.notification i:first-child {
    font-size: 24px;
    min-width: 24px;
}

.notification.success i:first-child {
    color: #4CAF50;
}

.notification.error i:first-child {
    color: #F44336;
}

.notification div {
    flex: 1;
}

.notification p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.notification .product-name,
.notification .details {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

.close-notification {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    width: 24px;
}

.close-notification:hover {
    color: #666;
}

.notification.fadeOut {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 576px) {
    .notification-container {
        max-width: calc(100% - 40px);
        top: 10px;
        right: 10px;
    }
}

/* Legacy Alert Styles for Compatibility */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4CAF50;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid #F44336;
}

.alert i {
    font-size: 18px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fadeOut {
    animation: fadeOut 0.5s forwards;
}