/* Système de notifications - notifications.css */
.notification-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
    max-width: 400px;
    pointer-events: none;
}

.notification {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateX(-120%);
    animation: slideIn 0.5s ease-out forwards;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(45deg, #00ff88, #00ccff);
    border-radius: 2px 0 0 2px;
}

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

.notification-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-radius: 50%;
    background: linear-gradient(45deg, #00ff88, #00ccff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    animation: pulse 2s infinite;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    color: #00ff88;
}

.notification-body {
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.notification-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
}

.notification-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.product-badge {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 11px;
    color: #00ff88;
    font-weight: 500;
}

.status-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.status-online {
    color: #00ff88;
}

.status-offline {
    color: #ff6b6b;
}

/* Animations */
@keyframes slideIn {
    from {
        transform: translateX(-120%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-120%);
        opacity: 0;
    }
}

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

.notification.removing {
    animation: slideOut 0.3s ease-in forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .notification-container {
        left: 10px;
        right: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .notification {
        padding: 10px 12px;
        border-radius: 8px;
        margin-bottom: 8px;
    }
    
    .notification-header {
        margin-bottom: 4px;
    }
    
    .notification-icon {
        width: 18px;
        height: 18px;
        font-size: 12px;
        margin-right: 8px;
    }
    
    .notification-title {
        font-size: 12px;
    }
    
    .notification-body {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .notification-time {
        font-size: 10px;
        margin-top: 4px;
    }
    
    .notification-close {
        top: 6px;
        right: 8px;
        width: 20px;
        height: 20px;
        font-size: 14px;
    }
    
    .products-list {
        gap: 2px;
        margin-top: 4px;
    }
    
    .product-badge {
        padding: 1px 6px;
        font-size: 10px;
        border-radius: 4px;
    }
    
    .status-indicator {
        top: 10px;
        right: 10px;
        font-size: 11px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .notification-container {
        left: 8px;
        right: 8px;
        max-width: calc(100vw - 16px);
    }
    
    .notification {
        padding: 8px 10px;
        border-radius: 6px;
        margin-bottom: 6px;
        max-height: 60px;
        overflow: hidden;
    }
    
    .notification-header {
        margin-bottom: 2px;
    }
    
    .notification-icon {
        width: 16px;
        height: 16px;
        font-size: 10px;
        margin-right: 6px;
    }
    
    .notification-title {
        font-size: 11px;
        font-weight: 500;
    }
    
    .notification-body {
        font-size: 10px;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .notification-time {
        font-size: 9px;
        margin-top: 2px;
    }
    
    .notification-close {
        top: 4px;
        right: 6px;
        width: 18px;
        height: 18px;
        font-size: 12px;
    }
    
    .products-list {
        gap: 1px;
        margin-top: 2px;
        max-height: 16px;
        overflow: hidden;
    }
    
    .product-badge {
        padding: 0px 4px;
        font-size: 8px;
        border-radius: 3px;
        line-height: 14px;
    }
    
    .status-indicator {
        top: 8px;
        right: 8px;
        font-size: 10px;
        padding: 4px 8px;
    }
    
    /* Version mobile ultra-compacte */
    .notification.mobile-compact {
        padding: 6px 8px;
        max-height: 45px;
    }
    
    .notification.mobile-compact .notification-header {
        margin-bottom: 1px;
    }
    
    .notification.mobile-compact .notification-body {
        font-size: 9px;
        -webkit-line-clamp: 1;
    }
    
    .notification.mobile-compact .products-list {
        display: none;
    }
    
    .notification.mobile-compact .notification-time {
        position: absolute;
        top: 6px;
        right: 24px;
        margin: 0;
        font-size: 8px;
        opacity: 0.7;
    }
}