/* Standardized utility background is now in util-base.css */


.schematic-content {
  max-width: 1000px;
  margin: 0 auto;
}

.template-note-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}

.template-note {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  background: rgba(var(--muted-rgb), 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.template-note:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.template-note-title {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: var(--space-2);
  color: var(--foreground);
}

.schematic-upload-area {
  position: relative;
}

.schematic-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.schematic-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) var(--space-6);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-xl);
  background: rgba(var(--background-rgb), 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  gap: var(--space-3);
}

.schematic-file-input:hover+.schematic-dropzone,
.schematic-dropzone.is-dragover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
  transform: scale(1.01);
}

.schematic-dropzone .hz-icon {
  font-size: 3rem;
  color: var(--primary);
  opacity: 0.8;
  transition: transform 0.3s ease;
}

.schematic-file-input:hover+.schematic-dropzone .hz-icon {
  transform: translateY(-5px);
  opacity: 1;
}

.mapping-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(var(--muted-rgb), 0.2);
}

.mapping-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.mapping-table th {
  background: rgba(var(--muted-rgb), 0.5);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
}

.mapping-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.875rem;
}

.mapping-table tr:last-child td {
  border-bottom: none;
}

.color-chip {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.template-guide-list {
  margin: 0;
  padding-left: var(--space-5);
  list-style: none;
}

.template-guide-list li {
  position: relative;
  margin-bottom: var(--space-2);
}

.template-guide-list li::before {
  content: "•";
  position: absolute;
  left: -1.25rem;
  color: var(--primary);
  font-weight: bold;
}

.util-progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
}

.util-progress-step[data-status="active"] {
  background: rgba(var(--primary-rgb), 0.1);
}

.util-progress-step-index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--muted);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.util-progress-step[data-status="active"] .util-progress-step-index {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.4);
}

.util-progress-step[data-status="done"] .util-progress-step-index {
  background: var(--success);
  color: var(--success-foreground);
}

.util-progress-step-title {
  font-size: 0.8125rem;
  font-weight: 600;
}

.schematic-row-actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
}

.schematic-row-label {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.schematic-row-label .input {
  max-width: 200px;
}