/* Workflow Components */

/* Workflow Stepper */
.workflow-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  padding: 32px;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  color: var(--slate-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition-base);
}

.step.completed .step-icon {
  background: var(--primary-600);
  color: white;
}

.step.active .step-icon {
  background: var(--primary-600);
  color: white;
  box-shadow: 0 0 0 4px var(--primary-100);
}

.step-connector {
  width: 80px;
  height: 2px;
  background: var(--slate-200);
  margin: 0 16px;
}

.step-connector.completed {
  background: var(--primary-600);
}

/* Grade Selector */
.grade-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.grade-option {
  padding: 20px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-xl);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-base);
}

.grade-option:hover {
  border-color: var(--slate-300);
  background: var(--slate-50);
  transform: translateY(-2px);
}

.grade-option.selected {
  border-color: var(--primary-500);
  background: var(--primary-50);
}

.grade-option .grade-letter {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.grade-option.grade-a .grade-letter {
  color: var(--success);
}

.grade-option.grade-b .grade-letter {
  color: var(--warning);
}

.grade-option.grade-c .grade-letter {
  color: var(--accent-500);
}

.grade-option.grade-d .grade-letter {
  color: var(--error);
}

.grade-title {
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.grade-desc {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

/* Checklist */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-lg);
  transition: background var(--transition-base);
  cursor: pointer;
}

.checklist-item:hover {
  background: var(--slate-50);
}

.checklist-item.checked {
  opacity: 0.7;
}

.check-box {
  width: 24px;
  height: 24px;
  border: 2px solid var(--slate-300);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.checklist-item.checked .check-box {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: white;
}

.check-title {
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 2px;
}

.check-desc {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

/* Photo Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.photo-slot {
  aspect-ratio: 1;
  border: 2px dashed var(--slate-300);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.photo-slot:hover {
  border-color: var(--primary-500);
  background: var(--slate-50);
}

.photo-slot.filled {
  border-style: solid;
  border-color: var(--primary-500);
  padding: 0;
}

.photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slot-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px;
  text-align: center;
}

.photo-slot:not(.filled) .photo-slot-label {
  position: static;
  background: none;
  color: var(--slate-500);
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--slate-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-600);
  transition: width var(--transition-slow);
}

/* AI Editor */
.ai-editor {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.ai-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #667eea10, #764ba210);
  border-bottom: 1px solid var(--slate-200);
}

.ai-editor-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--slate-900);
}

.ai-badge {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.ai-editor-body {
  padding: 20px;
}

.ai-editor-textarea {
  width: 100%;
  min-height: 120px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--slate-800);
  resize: vertical;
  outline: none;
}

.ai-editor-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

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

.btn-ai:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Channel Toggles */
.channel-toggles {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 2px solid var(--slate-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
}

.channel-toggle:hover {
  border-color: var(--slate-300);
  background: var(--slate-50);
}

.channel-toggle.active {
  border-color: var(--primary-500);
  background: var(--primary-50);
}

.channel-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.channel-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.channel-logo.channel-bbl {
  background: var(--primary-600);
  font-size: 1.5rem;
}

.channel-logo.channel-shp {
  background: #95bf47;
  color: white;
}

.channel-logo.channel-wlp {
  background: #13c9c8;
  color: white;
}

.channel-details h4 {
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 2px;
}

.channel-details p {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.toggle-switch {
  width: 48px;
  height: 28px;
  background: var(--slate-300);
  border-radius: var(--radius-full);
  position: relative;
  transition: background var(--transition-base);
}

.toggle-switch::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform var(--transition-base);
}

.toggle-switch.on {
  background: var(--primary-600);
}

.toggle-switch.on::after {
  transform: translateX(20px);
}

/* Work Queue */
.work-queue {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.queue-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  cursor: pointer;
  transition: all var(--transition-base);
}

.queue-item:hover {
  background: var(--slate-50);
  border-color: var(--primary-500);
  transform: translateX(4px);
}

.queue-info {
  flex: 1;
}

.queue-title {
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.queue-meta {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.queue-time {
  font-size: 0.8125rem;
  color: var(--slate-400);
  font-weight: 500;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-item {
  display: flex;
  gap: 16px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.timeline-dot.success {
  background: var(--success);
}

.timeline-dot.warning {
  background: var(--warning);
}

.timeline-content {
  flex: 1;
}

.timeline-time {
  font-size: 0.75rem;
  color: var(--slate-400);
  margin-bottom: 4px;
}

.timeline-title {
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 2px;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--slate-600);
}
