/* Modern Notification System */

/* Notification Container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    pointer-events: none;
}

/* Notification Card */
.notification {
    pointer-events: all;
    background: white;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(400px);
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    position: relative;
    overflow: hidden;
}

.notification::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #1e40af, #3b82f6);
}

.notification.success::before {
    background: linear-gradient(180deg, #10b981, #34d399);
}

.notification.error::before {
    background: linear-gradient(180deg, #ef4444, #f87171);
}

.notification.warning::before {
    background: linear-gradient(180deg, #f59e0b, #fbbf24);
}

/* Notification Icon */
.notification-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.notification.success .notification-icon {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.notification.error .notification-icon {
    background: linear-gradient(135deg, #ef4444, #f87171);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.notification.warning .notification-icon {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Notification Content */
.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Close Button */
.notification-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #f3f4f6;
    color: #6b7280;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: #e5e7eb;
    color: #1f2937;
    transform: rotate(90deg);
}

/* Progress Bar */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #e5e7eb;
}

.notification-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1e40af, #3b82f6);
    animation: progress 3s linear forwards;
}

.notification.success .notification-progress-bar {
    background: linear-gradient(90deg, #10b981, #34d399);
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.notification.removing {
    animation: slideOut 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .notification-container {
        left: 10px;
        right: 10px;
        top: 10px;
    }
    
    .notification {
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }
    
    @keyframes slideIn {
        from {
            transform: translateY(-100px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes slideOut {
        from {
            transform: translateY(0);
            opacity: 1;
        }
        to {
            transform: translateY(-100px);
            opacity: 0;
        }
    }
}

/* Cart Popup - Special */
.cart-popup {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.95), rgba(59, 130, 246, 0.95));
    backdrop-filter: blur(10px);
    color: white;
}

.cart-popup .notification-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    animation: bounce 0.6s ease;
}

.cart-popup .notification-title,
.cart-popup .notification-message {
    color: white;
}

.cart-popup .notification-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.cart-popup .notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.cart-popup::before {
    display: none;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Product Image in Notification */
.notification-product-img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

