/* Label Printer Integration Panel Styles */

.lp-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lp-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.lp-help-text {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.lp-help-note {
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 8px 12px;
  background: var(--input-bg);
  border-radius: 6px;
}

.lp-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  padding: 4px 0;
}

.lp-toggle {
  width: 36px;
  height: 20px;
  appearance: none;
  -webkit-appearance: none;
  background: var(--border);
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.lp-toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.lp-toggle:checked {
  background: var(--accent);
}

.lp-toggle:checked::after {
  transform: translateX(16px);
}

.lp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-field-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lp-url-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lp-url-input {
  flex: 1;
  min-width: 0;
}

.lp-select {
  width: 100%;
}

.lp-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--input-bg);
  border-radius: 6px;
  font-size: 13px;
}

.lp-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lp-status-connected {
  background: var(--success);
}

.lp-status-offline {
  background: var(--error);
}

.lp-status-error {
  background: var(--warning);
}

.lp-status-unknown {
  background: var(--text-tertiary);
}

.lp-status-text {
  color: var(--text-primary);
  font-weight: 500;
}

.lp-status-checked {
  color: var(--text-tertiary);
  font-size: 12px;
  margin-left: auto;
}

.lp-setup-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.lp-setup-steps code {
  font-size: 12px;
  background: var(--input-bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-primary);
}

.lp-help-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.lp-status-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lp-help-text code {
  font-size: 12px;
  background: var(--input-bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-primary);
}
