/* Vamriko preview theme. Barcode engines and exported artwork are unchanged. */
:root { color-scheme: dark; }
.barcode-page { padding-bottom: 18px; }
.barcode-tool {
  margin: 16px 0 0;
  color: var(--text);
  font-family: inherit;
}
.barcode-tool .mode-tabs,
.barcode-tool #qrMode,
.barcode-tool #about,
.barcode-tool #docs,
#qrMiniBar { display: none !important; }
.barcode-tool #barcodeMode {
  display: grid !important;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 14px;
  align-items: start;
}
.barcode-tool .card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #0b0b0c, #0e0e10);
}
.barcode-tool .panel {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.barcode-tool .output { position: sticky; top: 86px; }
.barcode-tool .preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 175px;
  padding: 18px 12px;
  background: #fff;
  color: #111;
  border-radius: 9px;
  overflow: auto;
}
.barcode-tool .preview-box svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.barcode-tool .field-label {
  display: block;
  margin: 15px 0 7px;
  color: #dedee4;
  font-size: 11px;
  font-weight: 800;
}
.barcode-tool .seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.barcode-tool .seg button {
  flex: 1;
  min-height: 35px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.barcode-tool .seg button[aria-checked="true"] {
  border-color: var(--primary);
  background: rgba(116,82,255,.17);
  color: #e1d9ff;
}
.barcode-tool .seg button:hover { border-color: #957cff; }
.barcode-tool .input {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #49494f;
  border-radius: 8px;
  background: #08080a;
  color: var(--text);
  font: inherit;
  outline: none;
}
.barcode-tool .input.big { font-size: 17px; letter-spacing: .035em; }
.barcode-tool .input:focus {
  border-color: #957cff;
  box-shadow: 0 0 0 3px rgba(116,82,255,.15);
}
.barcode-tool .input.invalid { border-color: var(--danger); }
.barcode-tool .input.valid { border-color: #438969; }
.barcode-tool textarea.input { min-height: 115px; resize: vertical; }
.barcode-tool .grid-2,
.barcode-tool .grid-3 {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
.barcode-tool [hidden] { display: none !important; }
.barcode-tool .span-2 { grid-column: 1 / -1; }
.barcode-tool .field { min-width: 0; }
.barcode-tool .field-end { justify-content: end; }
.barcode-tool .check {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.barcode-tool input[type="checkbox"],
.barcode-tool input[type="range"] { accent-color: var(--primary); }
.barcode-tool input[type="range"] { width: 100%; margin: 8px 0; }
.barcode-tool output { float: right; color: #b5a5ff; }
.barcode-tool .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.barcode-tool .actions .btn { flex: 1; }
.barcode-tool .btn {
  min-height: 38px;
  border-radius: 9px;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
}
.barcode-tool .btn.primary,
.barcode-tool #batchGenerateBtn {
  border-color: transparent;
  background: linear-gradient(135deg,var(--primary),var(--primary-2));
  color: white;
}
.barcode-tool .btn svg { width: 18px; height: 18px; }
.barcode-tool .meta,
.barcode-tool .summary,
.barcode-tool .hint,
.barcode-tool .feedback,
.barcode-tool .print-info {
  margin: 9px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.barcode-tool .feedback.ok { color: var(--success); }
.barcode-tool .feedback.bad { color: var(--danger); }
.barcode-tool .alert {
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #745831;
  border-radius: 8px;
  background: rgba(185,132,47,.08);
  color: #ebcc99;
  font-size: 11px;
}
.barcode-tool .swatches,
.barcode-tool .swatch-row { display: flex; align-items: center; gap: 8px; }
.barcode-tool .swatch {
  position: relative;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #666;
  border-radius: 8px;
  cursor: pointer;
}
.barcode-tool .swatch.selected {
  outline: 2px solid var(--primary-2);
  outline-offset: 3px;
}
.barcode-tool .swatch.custom {
  display: grid;
  place-items: center;
  border-style: dashed;
  background: var(--surface-3);
  overflow: hidden;
}
.barcode-tool .swatch.custom input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.barcode-tool .more {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.barcode-tool .more summary {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  color: #dcd7ef;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}
.barcode-tool .more summary::-webkit-details-marker { display: none; }
.barcode-tool .more .chev { width: 18px; height: 18px; }
.barcode-tool .more[open] .chev { transform: rotate(180deg); }
.barcode-license-note {
  padding: 14px 0;
  color: var(--muted-2);
  text-align: center;
  font-size: 11px;
}
.barcode-license-note a:hover { color: #b5a5ff; }
@media (max-width: 720px) {
  .barcode-tool #barcodeMode { grid-template-columns: 1fr; }
  .barcode-tool .output { position: static; }
  .barcode-tool .card { padding: 14px; }
}
@media (max-width: 420px) {
  .barcode-tool .grid-2,
  .barcode-tool .grid-3 { grid-template-columns: 1fr; }
  .barcode-tool .span-2 { grid-column: auto; }
}