/* ============================================
   Notification Commande
   ============================================ */

.order-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.98) 0%, rgba(20, 20, 30, 0.98) 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 16px;
    padding: 0;
    max-width: 420px;
    min-width: 340px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    cursor: pointer;
}

/* Variantes de couleur selon le statut */
.order-notification.status-attente {
    border-color: rgba(0, 150, 255, 0.4);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 150, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.order-notification.status-expédié,
.order-notification.status-expedie {
    border-color: rgba(0, 180, 255, 0.4);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 180, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.order-notification.status-livré,
.order-notification.status-livre {
    border-color: rgba(0, 255, 150, 0.4);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 150, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.order-notification::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(0, 255, 255, 0.5) 0%, 
        rgba(0, 150, 255, 0.5) 50%, 
        rgba(0, 255, 255, 0.5) 100%);
    animation: shimmer 3s ease-in-out infinite;
}

/* Couleur de la barre selon le statut */
.order-notification.status-expédié::before,
.order-notification.status-expedie::before,
.order-notification.status-attente::before {
    background: linear-gradient(90deg, 
        rgba(0, 150, 255, 0.6) 0%, 
        rgba(0, 180, 255, 0.6) 50%, 
        rgba(0, 150, 255, 0.6) 100%);
}

.order-notification.status-livré::before,
.order-notification.status-livre::before {
    background: linear-gradient(90deg, 
        rgba(0, 255, 150, 0.6) 0%, 
        rgba(0, 200, 100, 0.6) 50%, 
        rgba(0, 255, 150, 0.6) 100%);
}

@keyframes shimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.order-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.order-notification:hover {
    transform: translateX(-5px) scale(1.02);
}

.order-notification.status-attente:hover {
    border-color: rgba(0, 150, 255, 0.6);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(0, 150, 255, 0.25);
}

.order-notification.status-expédié:hover,
.order-notification.status-expedie:hover {
    border-color: rgba(0, 180, 255, 0.6);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(0, 180, 255, 0.25);
}

.order-notification.status-livré:hover,
.order-notification.status-livre:hover {
    border-color: rgba(0, 255, 150, 0.6);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 50px rgba(0, 255, 150, 0.25);
}

.order-notif-content {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    position: relative;
}

.order-notif-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.2) 0%, rgba(0, 150, 255, 0.2) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00FFFF;
    animation: pulse 2s ease-in-out infinite;
}

/* Couleurs des icônes selon le statut */
.order-notification.status-attente .order-notif-icon {
    background: linear-gradient(135deg, rgba(0, 150, 255, 0.2) 0%, rgba(0, 100, 200, 0.2) 100%);
    color: #0096FF;
}

.order-notification.status-expédié .order-notif-icon,
.order-notification.status-expedie .order-notif-icon {
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.2) 0%, rgba(0, 120, 255, 0.2) 100%);
    color: #00B4FF;
}

.order-notification.status-livré .order-notif-icon,
.order-notification.status-livre .order-notif-icon {
    background: linear-gradient(135deg, rgba(0, 255, 150, 0.2) 0%, rgba(0, 200, 100, 0.2) 100%);
    color: #00FF96;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 255, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(0, 255, 255, 0.2);
    }
}

/* Animation pulse selon le statut */
.order-notification.status-attente .order-notif-icon {
    animation: pulseBlue 2s ease-in-out infinite;
}

.order-notification.status-expédié .order-notif-icon,
.order-notification.status-expedie .order-notif-icon {
    animation: pulseBlue 2s ease-in-out infinite;
}

.order-notification.status-livré .order-notif-icon,
.order-notification.status-livre .order-notif-icon {
    animation: pulseGreen 2s ease-in-out infinite;
}

@keyframes pulseBlue {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 150, 255, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(0, 150, 255, 0.2);
    }
}

@keyframes pulseGreen {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 255, 150, 0.4);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 20px 5px rgba(0, 255, 150, 0.2);
    }
}

.order-notif-body {
    flex: 1;
    min-width: 0;
}

.order-notif-body h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.3;
}

.order-notif-body p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    word-wrap: break-word;
}

.order-notif-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.order-notif-close:hover {
    background: rgba(255, 0, 0, 0.1);
    border-color: rgba(255, 0, 0, 0.3);
    color: #FF4444;
    transform: rotate(90deg);
}

.order-notif-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    animation: progress 15s linear forwards;
}

/* Couleur de la barre de progression selon le statut */
.order-notification.status-attente .order-notif-progress {
    background: linear-gradient(90deg, #0096FF 0%, #0060FF 100%);
}

.order-notification.status-expédié .order-notif-progress,
.order-notification.status-expedie .order-notif-progress {
    background: linear-gradient(90deg, #00B4FF 0%, #0080FF 100%);
}

.order-notification.status-livré .order-notif-progress,
.order-notification.status-livre .order-notif-progress {
    background: linear-gradient(90deg, #00FF96 0%, #00C864 100%);
}

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

/* Badge de statut optionnel */
.order-status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.order-status-badge.status-attente {
    background: rgba(0, 150, 255, 0.2);
    color: #0096FF;
    border: 1px solid rgba(0, 150, 255, 0.3);
}

.order-status-badge.status-expédié,
.order-status-badge.status-expedie {
    background: rgba(0, 180, 255, 0.2);
    color: #00B4FF;
    border: 1px solid rgba(0, 180, 255, 0.3);
}

.order-status-badge.status-livré,
.order-status-badge.status-livre {
    background: rgba(0, 255, 150, 0.2);
    color: #00FF96;
    border: 1px solid rgba(0, 255, 150, 0.3);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .order-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .order-notif-content {
        padding: 16px;
        gap: 12px;
    }

    .order-notif-icon {
        width: 40px;
        height: 40px;
    }

    .order-notif-body h4 {
        font-size: 15px;
    }

    .order-notif-body p {
        font-size: 13px;
    }
}

/* ============================================
   Animations supplémentaires
   ============================================ */

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

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

.order-notification.slide-in {
    animation: slideInRight 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.order-notification.slide-out {
    animation: slideOutRight 0.3s ease-out forwards;
}
