/* AI Workflow Animation and Gradient Styles */

.ai-workflow-item {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, 
    #f3e8ff 0%, 
    #e9d5ff 25%, 
    #ddd6fe 50%, 
    #c4b5fd 75%, 
    #a78bfa 100%);
  background-size: 200% 200%;
  animation: ai-gradient-shift 4s ease-in-out infinite;
}

.ai-workflow-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: ai-shimmer 3s ease-in-out infinite;
  z-index: 1;
}

.ai-workflow-item .ai-content {
  position: relative;
  z-index: 2;
}

.ai-workflow-item .ai-robot-icon {
  animation: ai-pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 2px rgba(139, 92, 246, 0.3));
}

/* Keyframe Animations */
@keyframes ai-gradient-shift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes ai-shimmer {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

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

/* Hover effects */
.ai-workflow-item:hover {
  animation-duration: 2s;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.ai-workflow-item:hover::before {
  animation-duration: 1.5s;
}

.ai-workflow-item:hover .ai-robot-icon {
  animation-duration: 1s;
  filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.5));
}

/* Subtle glow effect for rescheduled items */
.ai-workflow-item.rescheduled {
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

.ai-workflow-item.rescheduled::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px dashed rgba(139, 92, 246, 0.6);
  border-radius: inherit;
  z-index: 1;
}