/* Question Form Styles */
.workflow-question-form {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 30px;
  margin: 20px 0;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  animation: slideIn 0.5s ease-out;
}

.questions-container {
  display: grid;
  gap: 20px;
  margin: 20px 0;
}

.question-item {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.question-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.question-label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  font-size: 16px;
}

.question-label .required {
  color: #e53e3e;
  margin-left: 4px;
}

.question-input {
  width: 100%;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.question-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.question-hint {
  display: block;
  margin-top: 5px;
  color: #718096;
  font-size: 12px;
}

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.radio-label:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.radio-label input[type="radio"] {
  width: 20px;
  height: 20px;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
}

.btn-primary, .btn-secondary {
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: #e2e8f0;
  color: #4a5568;
}

.btn-secondary:hover {
  background: #cbd5e0;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-spinner.hidden {
  display: none;
}

/* Business Analysis Display */
.business-analysis {
  background: white;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.business-analysis h3 {
  color: #2d3748;
  margin-bottom: 15px;
  font-size: 20px;
}

.analysis-details {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* LLM Stream Container */
.llm-stream-container {
  background: #f7fafc;
  border-radius: 16px;
  padding: 25px;
  margin: 20px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.llm-stream-container h3 {
  color: #2d3748;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.llm-stream-container h3::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #48bb78;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.stream-sections {
  display: grid;
  gap: 15px;
}

.workflow-stream-section {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.workflow-stream-section.complete {
  border-color: #48bb78;
}

.workflow-header {
  background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}

.workflow-name {
  font-weight: 600;
  color: #4a5568;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.workflow-status {
  font-size: 12px;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 5px;
}

.workflow-stream-section.complete .workflow-status::before {
  content: '✓';
  color: #48bb78;
  font-weight: bold;
}

.stream-content {
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #2d3748;
}

.stream-content::-webkit-scrollbar {
  width: 8px;
}

.stream-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.stream-content::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.stream-content::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.stream-content strong {
  color: #1a202c;
  background: linear-gradient(135deg, #ffd89b 0%, #ffc371 100%);
  padding: 2px 4px;
  border-radius: 3px;
}

.stream-content code {
  background: #2d3748;
  color: #68d391;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
}

.stream-content pre {
  background: #2d3748;
  color: #e2e8f0;
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 10px 0;
}

/* Processing State */
.processing-state {
  text-align: center;
  padding: 60px 20px;
}

.processing-state .spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e2e8f0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.processing-state h3 {
  color: #2d3748;
  margin-bottom: 10px;
}

.processing-state p {
  color: #718096;
}

/* Notifications */
.notification {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  animation: slideInRight 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.notification-success {
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
  color: #1a202c;
}

.notification-error {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.notification-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.notification.fade-out {
  animation: slideOutRight 0.3s ease-out;
  opacity: 0;
}

/* Animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Progress Bar */
.progress-bar-container {
  background: #e2e8f0;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin: 20px 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.5s ease;
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .workflow-question-form {
    padding: 20px;
  }
  
  .questions-container {
    grid-template-columns: 1fr;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
  
  .radio-group {
    flex-direction: column;
  }
}

