/* ============================================
   SYSTÈME DE POP-UPS WORKFLOWS
   À ajouter dans public/styles.css
   ============================================ */

/* Conteneur du pop-up */
.workflow-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999999;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  max-width: 400px;
  width: calc(100% - 40px);
}

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

.workflow-notification.hide {
  opacity: 0;
  transform: translateX(400px);
}

/* Contenu du pop-up */
.workflow-notification-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Icône */
.workflow-notification-icon {
  font-size: 32px;
  flex-shrink: 0;
  animation: bounce 1s ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Message */
.workflow-notification-message {
  flex: 1;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
}

/* Bouton fermer */
.workflow-notification-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.workflow-notification-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Empiler les notifications */
.workflow-notification:nth-child(n+2) {
  top: calc(20px + (n - 1) * 110px);
}

/* Responsive */
@media (max-width: 768px) {
  .workflow-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
  }
  
  .workflow-notification-content {
    padding: 15px;
  }
  
  .workflow-notification-icon {
    font-size: 24px;
  }
  
  .workflow-notification-message {
    font-size: 14px;
  }
}

/* Animation d'apparition supplémentaire */
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(400px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Variantes de couleurs */
.workflow-notification.success .workflow-notification-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.workflow-notification.warning .workflow-notification-content {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.workflow-notification.info .workflow-notification-content {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
