/* BSCMETAL Conversor de Etiquetas v6.4.1 — CSS em padrão BEM */
:root {
  --black: #111111;
  --yellow: #ffc400;
  --yellow-dark: #e4ae00;
  --white: #ffffff;
  --bg: #edf0f2;
  --card: #ffffff;
  --text: #171717;
  --muted: #5e646b;
  --border: #d8dde2;
  --soft: #f5f6f7;
  --danger: #9d1c1c;
  --success: #176b39;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; }
button, select { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.app-header {
  position: relative;
  background: linear-gradient(115deg, #101010 0%, #171717 62%, #232323 100%);
  color: var(--white);
  border-bottom: 4px solid var(--yellow);
  overflow: hidden;
}
.app-header::after {
  content: "";
  position: absolute;
  right: -95px;
  top: -130px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255,196,0,.10);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(255,196,0,.025), 0 0 0 104px rgba(255,196,0,.02);
  pointer-events: none;
}
.app-header__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.app-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 18px;
}
.app-header__logo-box {
  flex: 0 0 auto;
  width: 112px;
  height: 62px;
  border-radius: 10px;
  background: #fff;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 7px 20px rgba(0,0,0,.20);
}
.app-header__logo { width: 100%; height: 100%; object-fit: contain; }
.app-header__divider {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.34), transparent);
  flex: 0 0 auto;
}
.app-header__copy { min-width: 0; }
.app-header__kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--yellow);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 1.7px;
}
.app-header__title {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 33px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -.3px;
}
.app-header__subtitle {
  margin: 7px 0 0;
  color: #d7d7d7;
  font-size: 14px;
  line-height: 1.35;
}
.app-header__status {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}
.app-header__format-flow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid #505050;
  background: rgba(0,0,0,.26);
  border-radius: 11px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.app-header__format-flow span {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .4px;
}
.app-header__format-flow b { color: #fff; font-size: 16px; font-weight: 500; }
.app-header__status small { color: #a9a9a9; font-size: 11px; white-space: nowrap; }
.app__main { flex: 1; width: 100%; padding: 28px 20px 44px; }
.converter { width: min(980px, 100%); margin: 0 auto; background: var(--card); border-radius: 18px; padding: 28px; box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.upload-zone { border: 2px dashed #98a2ad; border-radius: 15px; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 7px; padding: 24px; cursor: pointer; transition: .18s ease; outline: none; background: #fbfbfc; }
.upload-zone:hover, .upload-zone:focus-visible, .upload-zone.upload-zone--dragging { border-color: var(--yellow-dark); background: #fffbed; box-shadow: 0 0 0 4px rgba(255,196,0,.13); }
.upload-zone__icon { color: #6d747c; margin-bottom: 2px; }
.upload-zone strong { font-size: 21px; }
.upload-zone span { color: var(--muted); font-size: 14px; }
.converter-toolbar { margin-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.converter-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.converter-stats__pill { border: 1px solid var(--border); background: var(--soft); border-radius: 999px; padding: 9px 13px; font-size: 13px; white-space: nowrap; }
.converter-stats__pill b { font-size: 14px; }
.converter-stats__pill--privacy { border-color: #d7e5da; background: #f2f8f3; color: #305d3c; }
.button { border: 0; border-radius: 10px; font-weight: 800; cursor: pointer; transition: .18s ease; min-height: 44px; }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button--primary { width: 100%; margin-top: 18px; min-height: 56px; background: var(--yellow); color: var(--black); letter-spacing: .3px; font-size: 17px; }
.button--primary:not(:disabled):hover { background: #ffd02b; transform: translateY(-1px); }
.button--ghost { background: #f1f2f3; color: #34383d; padding: 0 15px; border: 1px solid var(--border); }
.button--ghost:not(:disabled):hover { background: #e8eaec; }
.selected-files { margin-top: 16px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.selected-files__header { padding: 12px 14px; background: var(--soft); display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.selected-files__header span { color: var(--muted); }
.selected-files__list { margin: 0; padding: 0; list-style: none; max-height: 190px; overflow: auto; }
.selected-files__list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid #eceff1; font-size: 13px; }
.selected-files__meta { min-width: 0; }
.selected-files__name { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selected-files__details { display: block; color: var(--muted); margin-top: 2px; font-size: 12px; }
.selected-files__remove { border: 0; background: transparent; color: #646a70; cursor: pointer; padding: 6px 7px; border-radius: 7px; }
.selected-files__remove:hover { background: #f1f2f3; color: var(--danger); }
.converter-options { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; }
.form-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cdd3d9;
  border-radius: 9px;
  padding: 0 38px 0 14px;
  background: #fff;
  color: #111;
  text-align: left;
  text-align-last: left;
  line-height: 1.2;
}
.form-field select option {
  padding: 8px 14px;
  text-align: left;
}
.form-field select:focus { outline: 3px solid rgba(255,196,0,.22); border-color: var(--yellow-dark); }
.converter-progress { margin-top: 18px; }
.converter-progress__header { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #51575e; margin-bottom: 7px; }
.converter-progress__track { height: 9px; background: #e8ebee; border-radius: 999px; overflow: hidden; }
.converter-progress__bar { height: 100%; width: 0%; background: var(--yellow); transition: width .15s linear; }
.converter-message { margin-top: 16px; padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.4; }
.converter-message.converter-message--success { background: #edf8f0; color: var(--success); border: 1px solid #cfe9d5; }
.converter-message.converter-message--error { background: #fff0f0; color: var(--danger); border: 1px solid #f0caca; }
.converter-message.converter-message--info { background: #f3f5f7; color: #3d444b; border: 1px solid #dde1e5; }
.converter-preview { margin-top: 22px; border-top: 1px solid #e5e8eb; padding-top: 20px; }
.converter-preview__header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.converter-preview__header div { display: flex; flex-direction: column; gap: 3px; }
.converter-preview__header span { color: var(--muted); font-size: 12px; }
.converter-preview__stage { background: #e5e8ea; border-radius: 12px; padding: 18px; display: flex; justify-content: center; overflow: auto; }
.converter-preview__canvas { width: min(425px, 100%); height: auto; aspect-ratio: 850 / 1200; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.15); image-rendering: auto; }
.app-footer {
  background: #070707;
  color: #d9dde1;
  border-top: 1px solid #2a2a2a;
}
.app-footer__inner {
  min-height: 80px;
  width: min(1110px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}
.app-footer__copyright,
.app-footer__credit { white-space: nowrap; }
.app-footer__credit a {
  color: #e51b7b;
  font-weight: 800;
  text-decoration: none;
}
.app-footer__credit a:hover,
.app-footer__credit a:focus-visible {
  color: #ff3b94;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.u-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 900px) {
  .app-header__inner { width: calc(100% - 28px); }
  .app-header__logo-box { width: 110px; height: 58px; }
  .app-header__title { font-size: 22px; }
  .app-header__subtitle { font-size: 14px; }
}
@media (max-width: 720px) {
  .app-header__inner { width: calc(100% - 24px); min-height: auto; padding: 14px 0; gap: 14px; align-items: flex-start; flex-direction: column; }
  .app-header__logo-box { width: 96px; height: 56px; padding: 6px 10px; border-radius: 10px; }
  .app-header__title { font-size: 18px; }
  .app-header__subtitle { font-size: 12px; margin-top: 5px; }
  .app__main { padding: 20px 12px 26px; }
  .converter { border-radius: 14px; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.07); }
  .upload-zone { min-height: 160px; padding: 20px 14px; }
  .upload-zone strong { font-size: 18px; }
  .upload-zone span { font-size: 12px; max-width: 300px; }
  .converter-toolbar { align-items: stretch; flex-direction: column; }
  .converter-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .converter-stats__pill--privacy { grid-column: 1 / -1; text-align: center; }
  .converter-toolbar > .button { width: 100%; }
  .converter-options { grid-template-columns: 1fr; gap: 13px; }
  .button--primary { min-height: 54px; font-size: 15px; }
  .selected-files__header { flex-direction: column; gap: 3px; }
  .converter-preview__header { align-items: flex-end; }
  .converter-preview__stage { padding: 10px; }
  .app-footer__inner {
    min-height: 92px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 14px 0;
    font-size: 12px;
    text-align: center;
  }
  .app-footer__copyright, .app-footer__credit { white-space: normal; }
}
@media (max-width: 390px) {
  .converter-stats { grid-template-columns: 1fr; }
  .converter-stats__pill--privacy { grid-column: auto; }
  .converter-stats__pill { text-align: center; }
  .app-header__title { font-size: 17px; }
  .app-header__subtitle { font-size: 11px; }
  .app-header__logo-box { width: 88px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* v4.2 - cabeçalho exclusivo do conversor */
@media (max-width: 900px) {
  .app-header__inner { width: calc(100% - 28px); min-height: 110px; gap: 18px; }
  .app-header__logo-box { width: 102px; height: 58px; }
  .app-header__brand { gap: 14px; }
  .app-header__title { font-size: 23px; }
  .app-header__subtitle { max-width: 470px; }
}
@media (max-width: 720px) {
  .app-header__inner {
    width: calc(100% - 24px);
    min-height: auto;
    padding: 14px 0 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .app-header__brand { width: 100%; gap: 11px; align-items: center; }
  .app-header__logo-box { width: 86px; height: 52px; padding: 5px 8px; }
  .app-header__divider { height: 44px; }
  .app-header__kicker { font-size: 9px; letter-spacing: 1.35px; margin-bottom: 4px; }
  .app-header__title { font-size: 19px; }
  .app-header__subtitle { font-size: 11.5px; margin-top: 4px; }
  .app-header__status {
    align-self: flex-start;
    align-items: flex-start;
    flex-direction: row;
    gap: 9px;
    margin-left: 98px;
  }
  .app-header__format-flow { padding: 6px 9px; gap: 7px; border-radius: 8px; }
  .app-header__format-flow span { font-size: 11px; }
  .app-header__format-flow b { font-size: 13px; }
  .app-header__status small { align-self: center; font-size: 10px; }
}
@media (max-width: 470px) {
  .app-header__status { margin-left: 0; width: 100%; justify-content: space-between; }
  .app-header__status small { white-space: normal; text-align: right; }
  .app-header::after { right: -190px; }
}
@media (max-width: 390px) {
  .app-header__logo-box { width: 78px; height: 48px; }
  .app-header__brand { gap: 9px; }
  .app-header__divider { display: none; }
  .app-header__title { font-size: 17px; }
  .app-header__subtitle { font-size: 10.5px; }
}


/* v5.0 - conversor bidirecional TXT/PDF */
.converter__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 5px;
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #f1f3f5;
}
.converter__tab {
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #5b6167;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: .2px;
  transition: .18s ease;
}
.converter__tab:hover { background: rgba(255,255,255,.72); color: #111; }
.converter__tab.converter__tab--active {
  background: #111;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.16);
}
.converter__tab::first-letter { color: inherit !important; }
.converter__panel[hidden] { display: none !important; }
.converter-options--pdf { grid-template-columns: 1.15fr .85fr; }
.advanced-options {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fafbfb;
}
.advanced-options summary {
  cursor: pointer;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 800;
  color: #42484f;
  user-select: none;
}
.advanced-options[open] summary { border-bottom: 1px solid #e5e8eb; }
.advanced-options__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 15px;
  align-items: center;
}
.form-field--range input[type="range"] { width: 100%; accent-color: var(--yellow-dark); }
.form-field--range small { color: var(--muted); font-weight: 400; }
.form-field--range output { color: #111; font-weight: 900; }
.checkbox-field {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dfe3e6;
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}
.checkbox-field input { width: 18px; height: 18px; accent-color: var(--yellow-dark); }
.converter-hint {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 11px 13px;
  border-radius: 9px;
  border: 1px solid #e7dcaf;
  background: #fffbea;
  color: #594c16;
  font-size: 12px;
  line-height: 1.45;
}
.converter-hint code { background: rgba(17,17,17,.07); padding: 1px 4px; border-radius: 4px; color: #111; }
.converter-preview__canvas--pdf { aspect-ratio: 816 / 1218; }
@media (max-width: 720px) {
  .converter__tabs { margin-bottom: 16px; }
  .converter__tab { min-height: 44px; font-size: 13px; }
  .converter-options--pdf, .advanced-options__grid { grid-template-columns: 1fr; }
}

/* v6.2: cabeçalho limpo, sem círculo decorativo */
.app-header::after { display: none !important; content: none !important; }

/* v6.5.0 — header mobile compacto: logo à esquerda e título à direita. */
@media (max-width: 720px) {
  .app-header__inner {
    width: calc(100% - 24px);
    padding: 12px 0 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .app-header__brand {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .app-header__logo-box {
    width: 72px;
    height: 46px;
    flex: 0 0 72px;
    padding: 5px 8px;
  }
  .app-header__divider { display: none; }
  .app-header__copy { flex: 1; min-width: 0; }
  .app-header__title {
    margin: 0;
    font-size: clamp(16px, 5.1vw, 19px);
    line-height: 1.05;
    white-space: nowrap;
  }
  .app-header__subtitle {
    margin-top: 4px;
    font-size: 10.5px;
    line-height: 1.25;
  }
  .app-header__status {
    width: 100%;
    margin-left: 0;
    align-self: stretch;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .app-header__status small {
    white-space: normal;
    text-align: right;
    font-size: 9.5px;
  }
}
@media (max-width: 390px) {
  .app-header__logo-box { width: 64px; height: 42px; flex-basis: 64px; }
  .app-header__title { font-size: clamp(14px, 4.65vw, 17px); }
  .app-header__subtitle { font-size: 9.5px; }
}


/* v6.5.1 — mobile: somente logo, título e subtítulo no cabeçalho. */
@media (max-width: 720px) {
  .app-header__inner {
    width: calc(100% - 24px);
    min-height: 78px;
    padding: 10px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
  }
  .app-header__brand {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .app-header__logo-box {
    width: 72px;
    height: 46px;
    flex: 0 0 72px;
    padding: 5px 8px;
    border-radius: 9px;
  }
  .app-header__divider,
  .app-header__status {
    display: none !important;
  }
  .app-header__copy {
    flex: 1;
    min-width: 0;
  }
  .app-header__copy h1 {
    margin: 0;
    font-size: clamp(17px, 5vw, 20px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.2px;
    white-space: nowrap;
  }
  .app-header__copy p {
    margin: 4px 0 0;
    color: #d7d7d7;
    font-size: clamp(10px, 2.9vw, 12px);
    line-height: 1.25;
  }
}
@media (max-width: 390px) {
  .app-header__inner { width: calc(100% - 18px); }
  .app-header__brand { gap: 8px; }
  .app-header__logo-box { width: 64px; height: 42px; flex-basis: 64px; }
  .app-header__copy h1 { font-size: clamp(15px, 4.6vw, 17px); }
  .app-header__copy p { font-size: 9.5px; }
}
