/* GEN3 UX Standard — Official Styles */

/* === GEN3 Timeline Wrapper (inside SF stage) === */
.vc-sf-gen3-timeline-wrap {
  margin: 12px 0;
}

/* === Streaming Output === */
.vc-gen3-cursor {
  color: #a78bfa;
  font-weight: bold;
  animation: vc-gen3-blink 1s step-end infinite;
}

@keyframes vc-gen3-blink {
  50% { opacity: 0; }
}

.vc-gen3-streaming-content {
  line-height: 1.6;
  font-size: 14px;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.vc-gen3-code-block {
  background: #1a1a2e;
  border: 1px solid #2d2d44;
  border-radius: 6px;
  padding: 12px;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  overflow-x: auto;
  margin: 8px 0;
}

.vc-gen3-inline-code {
  background: #1a1a2e;
  border: 1px solid #2d2d44;
  border-radius: 3px;
  padding: 1px 4px;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  color: #a78bfa;
}

.vc-gen3-h1, .vc-gen3-h2, .vc-gen3-h3 {
  color: #f1f5f9;
  margin: 16px 0 8px 0;
}
.vc-gen3-h1 { font-size: 20px; }
.vc-gen3-h2 { font-size: 17px; }
.vc-gen3-h3 { font-size: 15px; }

.vc-gen3-li {
  margin: 4px 0;
  padding-left: 8px;
}
.vc-gen3-ordered {
  list-style: decimal;
  margin-left: 20px;
}

/* === Auto-Follow Scroll === */
.vc-gen3-auto-scroll {
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* === Timeline === */
.vc-gen3-timeline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: #0a0a1a;
  border: 1px solid #1a1a2e;
  border-radius: 8px;
  min-width: 160px;
}

.vc-gen3-timeline-header {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.vc-gen3-timeline-track {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vc-gen3-timeline-node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.vc-gen3-timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.vc-gen3-timeline-label {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.vc-gen3-timeline-pending .vc-gen3-timeline-dot {
  background: #1a1a2e;
  border: 1px solid #2d2d44;
}
.vc-gen3-timeline-pending .vc-gen3-timeline-label {
  color: #4b5563;
}

.vc-gen3-timeline-active .vc-gen3-timeline-dot {
  background: #8b5cf6;
  border: 2px solid #a78bfa;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
  animation: vc-gen3-pulse 1.5s infinite;
}
.vc-gen3-timeline-active .vc-gen3-timeline-label {
  color: #e2e8f0;
  font-weight: 600;
}

.vc-gen3-timeline-completed .vc-gen3-timeline-dot {
  background: #22c55e;
  border: 1px solid #22c55e;
}
.vc-gen3-timeline-completed .vc-gen3-timeline-label {
  color: #86efac;
}

.vc-gen3-timeline-failed .vc-gen3-timeline-dot {
  background: #ef4444;
  border: 1px solid #ef4444;
}
.vc-gen3-timeline-failed .vc-gen3-timeline-label {
  color: #fca5a5;
}

.vc-gen3-timeline-connector {
  position: absolute;
  left: 22px;
  top: 34px;
  width: 2px;
  height: 12px;
  background: #1a1a2e;
}
.vc-gen3-timeline-connector-done {
  background: #22c55e;
}

@keyframes vc-gen3-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* === Progress Bar === */
.vc-gen3-progress-bar-container {
  padding: 8px 12px;
  background: #0a0a1a;
  border: 1px solid #1a1a2e;
  border-radius: 6px;
}

.vc-gen3-progress-label {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vc-gen3-progress-track {
  width: 100%;
  height: 3px;
  background: #1a1a2e;
  border-radius: 2px;
  overflow: hidden;
}

.vc-gen3-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* === Suggestions === */
.vc-gen3-suggestions {
  margin-top: 16px;
  padding: 12px;
  background: #0a0a1a;
  border: 1px solid #1a1a2e;
  border-radius: 8px;
}

.vc-gen3-suggestions-header {
  font-size: 13px;
  font-weight: 600;
  color: #a78bfa;
  margin-bottom: 8px;
}

.vc-gen3-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vc-gen3-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: #111122;
  border: 1px solid #1a1a2e;
  border-radius: 6px;
  transition: border-color 0.2s;
}
.vc-gen3-suggestion-item:hover {
  border-color: #8b5cf6;
}

.vc-gen3-suggestion-icon {
  font-size: 18px;
}

.vc-gen3-suggestion-content {
  flex: 1;
}

.vc-gen3-suggestion-title {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.vc-gen3-suggestion-desc {
  font-size: 11px;
  color: #64748b;
}

.vc-gen3-suggestion-btn {
  background: #8b5cf6;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s;
}
.vc-gen3-suggestion-btn:hover {
  background: #7c3aed;
}
