/* UC2 Flasher Styles */
:root {
  --uc2-primary: #0d6efd;
  --uc2-success: #198754;
  --uc2-warning: #ffc107;
  --uc2-danger: #dc3545;
}

/* Board selection styling */
.board-card {
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}
.board-card:hover {
  border-color: var(--uc2-primary);
  transform: translateY(-2px);
}
.board-card.selected {
  border-color: var(--uc2-primary);
  background-color: rgba(13, 110, 253, 0.1);
}
.board-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* Console output styling */
.console-output {
  background-color: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 12px;
  padding: 1rem;
  border-radius: 4px;
  max-height: 300px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}
.console-output .success { color: #4ec9b0; }
.console-output .error { color: #f14c4c; }
.console-output .warning { color: #cca700; }
.console-output .info { color: #3794ff; }

/* Progress indicator */
.progress-step {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.progress-step.active {
  background-color: rgba(13, 110, 253, 0.1);
}
.progress-step.completed {
  background-color: rgba(25, 135, 84, 0.1);
}
.progress-step .step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  font-size: 12px;
}
.progress-step.pending .step-icon {
  background-color: #6c757d;
  color: white;
}
.progress-step.active .step-icon {
  background-color: var(--uc2-primary);
  color: white;
}
.progress-step.completed .step-icon {
  background-color: var(--uc2-success);
  color: white;
}

/* CAN ID configuration */
.can-preset {
  cursor: pointer;
  padding: 0.5rem 1rem;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  margin: 0.25rem;
  transition: all 0.2s;
}
.can-preset:hover {
  border-color: var(--uc2-primary);
}
.can-preset.selected {
  border-color: var(--uc2-primary);
  background-color: rgba(13, 110, 253, 0.1);
}

/* Version badge */
.version-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* Tab content padding */
.tab-pane {
  padding: 1.5rem 0;
}

/* Loading spinner */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Hide by default */
.hidden { display: none !important; }

/* LED matrix grid */
.led-matrix-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}
.led-matrix-grid .btn {
  padding: 2px 4px;
  font-size: 0.6rem;
  min-width: 0;
}

/* Light source slider row */
.light-channel-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.light-channel-row .form-range {
  flex: 1;
}
