/* Componentes do WS APP (complementa o app.css gerado com Tailwind) */
:root {
  --ws-dark: #090D16; --ws-card: #111827; --ws-line: #1f2937; --ws-line2: #334155;
  --ws-green: #8DC63F; --ws-green-hi: #a3d65c; --ws-blue: #1E88E5; --ws-yellow: #FFD60A;
  --ws-text: #e2e8f0; --ws-muted: #94a3b8;
}
html { -webkit-tap-highlight-color: transparent; }
body { background: var(--ws-dark); color: var(--ws-text); font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--ws-dark); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 9999px; }

.card { background: var(--ws-card); border: 1px solid var(--ws-line); border-radius: 1rem; padding: 1.25rem; }
.card-title { font-size: 1rem; font-weight: 700; color: #fff; }
.eyebrow { font-family: ui-monospace, "JetBrains Mono", monospace; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ws-green); }

.label { display: block; font-size: .75rem; font-weight: 600; color: #cbd5e1; margin-bottom: .3rem; }
.input, .select, .textarea {
  width: 100%; background: var(--ws-dark); border: 1px solid var(--ws-line2); border-radius: .75rem;
  padding: .6rem .8rem; font-size: .875rem; color: #fff; outline: none; transition: border-color .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--ws-green); }
.input::placeholder, .textarea::placeholder { color: #64748b; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
input[type="date"].input { color-scheme: dark; }
input[type="range"] { accent-color: var(--ws-green); width: 100%; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ws-green); width: 1rem; height: 1rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border-radius: .75rem;
  padding: .6rem 1rem; font-size: .8rem; font-weight: 700; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, border-color .15s, opacity .15s; text-decoration: none; white-space: nowrap; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--ws-green); color: #0b1204; font-weight: 800; }
.btn-primary:hover { background: var(--ws-green-hi); }
.btn-blue { background: var(--ws-blue); color: #fff; }
.btn-blue:hover { background: #3b9bef; }
.btn-ghost { background: #1e293b; color: #f1f5f9; }
.btn-ghost:hover { background: #334155; }
.btn-outline { border-color: var(--ws-line2); color: #e2e8f0; background: transparent; }
.btn-outline:hover { border-color: #64748b; }
.btn-danger { border-color: #9f1239; color: #fda4af; background: rgba(76, 5, 25, .4); }
.btn-danger:hover { background: rgba(136, 19, 55, .5); }
.btn-sm { padding: .35rem .7rem; font-size: .72rem; border-radius: .6rem; }
.btn-block { width: 100%; }

.badge { display: inline-flex; align-items: center; gap: .25rem; font-size: .66rem; font-weight: 700; padding: .15rem .5rem;
  border-radius: .4rem; border: 1px solid transparent; font-family: ui-monospace, monospace; text-transform: uppercase; }
.b-green { background: rgba(141,198,63,.12); color: var(--ws-green); border-color: rgba(141,198,63,.35); }
.b-yellow { background: rgba(245,158,11,.12); color: #fcd34d; border-color: rgba(245,158,11,.4); }
.b-red { background: rgba(225,29,72,.15); color: #fda4af; border-color: rgba(225,29,72,.5); }
.b-blue { background: rgba(30,136,229,.14); color: #7cc0f7; border-color: rgba(30,136,229,.4); }
.b-gray { background: #1e293b; color: #94a3b8; }

.flash { border-radius: .8rem; padding: .75rem 1rem; font-size: .8rem; font-weight: 500; border: 1px solid; }
.flash-success { background: rgba(141,198,63,.1); border-color: rgba(141,198,63,.45); color: #d9f99d; }
.flash-danger { background: rgba(225,29,72,.12); border-color: rgba(225,29,72,.5); color: #fecdd3; }
.flash-info { background: rgba(30,136,229,.1); border-color: rgba(30,136,229,.45); color: #bfdbfe; }

.nav-link { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .6rem .8rem; border-radius: .75rem;
  font-size: .8rem; font-weight: 500; color: #cbd5e1; border: 1px solid transparent; text-decoration: none; }
.nav-link:hover { background: rgba(30,41,59,.7); color: #fff; }
.nav-link.active { background: rgba(141,198,63,.12); color: var(--ws-green); border-color: rgba(141,198,63,.35); }

.tabs { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex-shrink: 0; padding: .45rem .8rem; border-radius: .65rem; font-size: .75rem; font-weight: 600; color: #94a3b8;
  background: var(--ws-card); border: 1px solid var(--ws-line); text-decoration: none; }
.tab:hover { color: #fff; }
.tab.active { color: #0b1204; background: var(--ws-green); border-color: var(--ws-green); }

.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .62rem; font-weight: 600; color: #94a3b8; text-decoration: none; padding: .45rem 0; }
.bottom-nav a.active { color: var(--ws-green); }
.bottom-nav svg { width: 22px; height: 22px; }

.hero-bg { background:
  radial-gradient(circle at 20% 50%, rgba(30,136,229,.30), transparent 50%),
  radial-gradient(circle at 70% 40%, rgba(141,198,63,.22), transparent 55%),
  linear-gradient(135deg, #061324 0%, #0a1b2c 50%, #0b1a10 100%); }
.title-ws { font-weight: 900; font-style: italic; letter-spacing: -.02em; }

.scale { display: grid; grid-template-columns: repeat(11, minmax(0,1fr)); gap: 4px; }
.scale.s5 { grid-template-columns: repeat(5, minmax(0,1fr)); }
.scale label { position: relative; }
.scale input { position: absolute; opacity: 0; inset: 0; }
.scale span { display: flex; align-items: center; justify-content: center; height: 2.2rem; border-radius: .55rem; background: var(--ws-dark);
  border: 1px solid var(--ws-line2); font-size: .8rem; font-weight: 700; color: #cbd5e1; cursor: pointer; }
.scale input:checked + span { background: var(--ws-green); color: #0b1204; border-color: var(--ws-green); }
.scale input:focus-visible + span { outline: 2px solid var(--ws-blue); }

.cred-box { font-family: ui-monospace, "JetBrains Mono", monospace; }

/* Folha A4 do relatório */
.a4 { background: #fff; color: #0f172a; border-radius: 1rem; padding: 2rem; }
.a4 textarea, .a4 input { background: #fff; color: #0f172a; border: 1px solid #cbd5e1; border-radius: .5rem; padding: .5rem; width: 100%; font-size: .85rem; }
.a4 h4 { font-weight: 800; text-transform: uppercase; font-size: .8rem; color: #1e293b; letter-spacing: .03em; }
.a4 .txt { white-space: pre-wrap; line-height: 1.6; font-size: .88rem; color: #1e293b; }

.print-only { display: none; }
@media print {
  .print-only { display: block !important; }
  body { background: #fff !important; color: #0f172a !important; }
  .no-print { display: none !important; }
  .print-area { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .a4 { border-radius: 0; padding: 0; box-shadow: none !important; }
  @page { size: A4; margin: 16mm; }
}
