/* Nytron Barcode Generator - Frontend Styles */
.nbc-wrap {
  max-width: 680px;
  margin: 0 auto;
  font-family: 'Syne', 'Segoe UI', Arial, sans-serif;
  color: #1a1a2e;
}

/* Steps */
.nbc-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.nbc-step {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #dde0e8;
  border-radius: 8px;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nbc-step.active {
  border-color: #0B1F3A;
  background: #f0f4f8;
}
.nbc-step.done {
  border-color: #3FAE5A;
  background: #f0faf3;
}
.nbc-step-num {
  font-size: 11px;
  font-weight: 700;
  color: #0B1F3A;
  font-family: 'DM Mono', monospace;
  background: #0B1F3A;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nbc-step.done .nbc-step-num { background: #3FAE5A; }
.nbc-step-label { font-size: 13px; color: #555; }
.nbc-step.active .nbc-step-label { color: #0B1F3A; font-weight: 600; }

/* Mode toggle */
.nbc-mode-toggle {
  display: flex;
  gap: 0;
  border: 1px solid #dde0e8;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}
.nbc-mode-btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: #fff;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.nbc-mode-btn + .nbc-mode-btn { border-left: 1px solid #dde0e8; }
.nbc-mode-btn.active { background: #0B1F3A; color: #fff; }
.nbc-mode-btn:not(.active):hover { background: #f5f7fa; }

/* Form fields */
.nbc-field-group { margin-bottom: 18px; }
.nbc-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.nbc-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #444;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 7px;
}
.nbc-required { color: #e24b4a; }
.nbc-optional { color: #aaa; font-weight: 400; text-transform: none; font-size: 11px; letter-spacing: 0; }
.nbc-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dde0e8;
  border-radius: 7px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a2e;
  background: #fff;
  transition: border .15s, box-shadow .15s;
  box-sizing: border-box;
}
.nbc-input:focus {
  outline: none;
  border-color: #0B1F3A;
  box-shadow: 0 0 0 3px rgba(11,31,58,.08);
}
.nbc-hint {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 5px;
}
.nbc-error {
  font-size: 12px;
  color: #e24b4a;
  margin-top: 8px;
  min-height: 18px;
}

/* Barcode type grid */
.nbc-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.nbc-type-btn {
  padding: 12px 14px;
  border: 1px solid #dde0e8;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: all .15s;
  font-family: inherit;
}
.nbc-type-btn:hover { border-color: #0B1F3A; background: #f5f8fc; }
.nbc-type-btn.active { border-color: #0B1F3A; background: #0B1F3A; }
.nbc-type-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0B1F3A;
  margin-bottom: 3px;
}
.nbc-type-desc { display: block; font-size: 11px; color: #888; }
.nbc-type-btn.active .nbc-type-name { color: #fff; }
.nbc-type-btn.active .nbc-type-desc { color: #7BA7D4; }

/* Upload areas */
.nbc-upload-area {
  border: 2px dashed #dde0e8;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: border .15s, background .15s;
  background: #fafbfc;
}
.nbc-upload-area:hover { border-color: #0B1F3A; background: #f5f8fc; }
.nbc-upload-area.drag-over { border-color: #3FAE5A; background: #f0faf3; }
.nbc-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.nbc-upload-placeholder { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.nbc-upload-icon { font-size: 28px; color: #0B1F3A; }
.nbc-upload-placeholder > span:nth-child(2) { font-size: 14px; font-weight: 500; color: #333; }
.nbc-upload-hint { font-size: 12px; color: #888; }
.nbc-image-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.nbc-image-preview img { max-height: 100px; max-width: 100%; border-radius: 6px; border: 1px solid #dde0e8; }
.nbc-remove-image, .nbc-remove-file {
  background: #fcebeb;
  color: #a32d2d;
  border: none;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.nbc-file-selected { display: flex; align-items: center; gap: 10px; justify-content: center; }
.nbc-file-icon { font-size: 24px; }
.nbc-file-selected > span:nth-child(2) { font-size: 14px; font-weight: 500; color: #333; }

/* Batch info box */
.nbc-batch-info {
  background: #f0f4f8;
  border-left: 3px solid #0B1F3A;
  padding: 16px 18px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
}
.nbc-batch-info h3 { margin: 0 0 8px; font-size: 15px; color: #0B1F3A; }
.nbc-batch-info p { margin: 0 0 8px; font-size: 13px; color: #444; line-height: 1.6; }
.nbc-batch-info p:last-of-type { margin-bottom: 12px; }
.nbc-template-link { font-size: 13px; color: #0B1F3A; font-weight: 600; }
.nbc-template-link:hover { text-decoration: underline; }

/* Buttons */
.nbc-actions { margin-top: 24px; }
.nbc-actions-row { display: flex; gap: 10px; }
.nbc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s;
  border: none;
  text-decoration: none;
}
.nbc-btn-primary { background: #0B1F3A; color: #fff; }
.nbc-btn-primary:hover { background: #163660; }
.nbc-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.nbc-btn-outline {
  background: transparent;
  color: #0B1F3A;
  border: 1px solid #0B1F3A;
}
.nbc-btn-outline:hover { background: #f0f4f8; }
.nbc-actions .nbc-btn-primary { width: 100%; }
.nbc-actions-row .nbc-btn-primary { flex: 1; }

/* User card */
.nbc-user-card {
  background: #fff;
  border: 1px solid #dde0e8;
  border-radius: 12px;
  padding: 28px;
}
.nbc-user-intro {
  font-size: 14px;
  color: #555;
  margin: 0 0 20px;
  line-height: 1.6;
}
.nbc-recaptcha-note {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 16px;
  line-height: 1.5;
}
.nbc-recaptcha-note a { color: #888; }

/* Success screen */
.nbc-success-card {
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border: 1px solid #dde0e8;
  border-radius: 12px;
}
.nbc-success-icon {
  width: 56px;
  height: 56px;
  background: #3FAE5A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  margin: 0 auto 16px;
}
.nbc-success-card h2 { font-size: 22px; color: #0B1F3A; margin: 0 0 10px; }
.nbc-success-card p { font-size: 14px; color: #555; margin: 0 0 24px; line-height: 1.6; }
.nbc-success-note {
  background: #f0f4f8;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 13px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 24px;
  text-align: left;
}
.nbc-link { color: #0B1F3A; font-weight: 600; }
.nbc-success-card .nbc-btn-outline { width: 100%; }

/* Responsive */
@media (max-width: 520px) {
  .nbc-type-grid { grid-template-columns: 1fr; }
  .nbc-field-row  { grid-template-columns: 1fr; }
  .nbc-steps .nbc-step-label { display: none; }
}
