.pipeline-container {
  font-family: 'Helvetica', sans-serif;
  background: #f8f9fb;
  padding: 24px 32px;
  min-height: 100%;
}

// Header
.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #374151;
  cursor: pointer;
  border-radius: 8px;

  &:hover {
    background: #f3f4f6;
  }
}

.doc-id {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.doc-sub {
  font-size: 13px;
  color: #6b7280;
  margin: 4px 0 0;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.btn-outline-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;

  &:hover {
    background: #f9fafb;
  }
}

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;

  &:hover {
    background: #2563eb;
  }
}

// Tabs
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 24px;
}

.tab {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  color: #6b7280;
  cursor: pointer;

  &:hover {
    color: #111827;
  }

  &.active {
    color: #111827;
    font-weight: 600;
    border-bottom-color: #111827;
  }
}

// Section Card
.section-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 24px;
}

// Pipeline Steps
.pipeline-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 16px 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 120px;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
  z-index: 1;
}

.step-success {
  background: #dcfce7;
  color: #16a34a;
  border: 2px solid #86efac;
}

.step-warning {
  background: #fef9c3;
  color: #ca8a04;
  border: 2px solid #fde68a;
}

.step-error {
  background: #fee2e2;
  color: #dc2626;
  border: 2px solid #fca5a5;
}

.step-pending {
  background: #f3f4f6;
  color: #9ca3af;
  border: 2px solid #d1d5db;
}

.step-icon {
  font-size: 18px;
  line-height: 1;
}

.step-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-align: center;
}

.step-duration {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 4px;
}

.step-connector {
  position: absolute;
  top: 24px;
  left: calc(50% + 28px);
  width: calc(100% - 56px);
  height: 2px;
  background: #d1d5db;
}

// Validation Results
.validation-card {
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
  border-left: 4px solid transparent;
}

.validation-error {
  background: #fef2f2;
  border-left-color: #ef4444;
}

.validation-warning {
  background: #fffbeb;
  border-left-color: #f59e0b;
}

.validation-info {
  background: #eff6ff;
  border-left-color: #3b82f6;
}

.validation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.validation-icon {
  flex-shrink: 0;
}

.validation-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.validation-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-error {
  background: #ef4444;
  color: white;
}

.badge-warning {
  background: #f59e0b;
  color: white;
}

.badge-info {
  background: #3b82f6;
  color: white;
}

.validation-message {
  font-size: 14px;
  color: #991b1b;
  margin: 0 0 6px;
}

.validation-field {
  font-size: 13px;
  color: #dc2626;
  margin: 0 0 16px;

  code {
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.04);
    padding: 2px 6px;
    border-radius: 4px;
  }
}

.remediation-box {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 18px;
}

.remediation-label {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  margin: 0 0 4px;
}

.remediation-text {
  font-size: 13px;
  color: #374151;
  margin: 0;
}

.placeholder-text {
  font-size: 14px;
  color: #9ca3af;
}
