/* Workflow Progress Tracker Styles */

.workflow-progress-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 1000;
  max-width: 400px;
  width: 100%;
  animation: slideInRight 0.3s ease-out;
}

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

.workflow-progress-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 20px;
  border: 1px solid #e5e7eb;
}

.workflow-progress-card.success {
  border-color: #10b981;
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.workflow-progress-card.error {
  border-color: #ef4444;
  background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.progress-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.progress-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.progress-icon.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.progress-icon.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.progress-icon svg.animate-spin {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.progress-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin: 0;
}

.progress-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 4px;
  transition: width 0.5s ease-out;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.progress-percentage {
  font-weight: 600;
  color: #3b82f6;
}

.progress-status {
  color: #6b7280;
}

.progress-message {
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
  border-left: 3px solid #3b82f6;
}

.completion-message {
  text-align: center;
  color: #059669;
  font-weight: 500;
  margin: 8px 0;
}

.error-message {
  color: #dc2626;
  font-weight: 500;
  padding: 12px;
  background: #fef2f2;
  border-radius: 8px;
  border-left: 3px solid #ef4444;
}

.editor-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 8px;
  width: 100%;
  box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

.editor-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(16, 185, 129, 0.4);
  color: white;
  text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .workflow-progress-container {
    top: 60px;
    right: 12px;
    left: 12px;
    max-width: none;
  }

  .workflow-progress-card {
    padding: 16px;
  }

  .progress-title {
    font-size: 16px;
  }
}

/* Ensure it doesn't interfere with chat */
.modern-chat-container {
  position: relative;
}
