/* ==========================================================================
   Loomy · Chamados T.I. — Direção MINIMALISTA (dark)
   Verde funcional #a6fe1f (Pantone 375C) · Montserrat · superfícies chapadas
   Sem canvas de pontos, sem glow, sem sombras/brilhos exagerados.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  /* superfícies */
  --bg: #121212;
  --surface: #1A1B1E;
  --surface-2: #212226;
  --surface-3: #2A2C30;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* acento único da marca */
  --green: #a6fe1f;
  --green-press: #93d500;
  --on-green: #0c0d0c;

  /* texto */
  --text: #F3F4F6;
  --muted: #A4ABB2;
  --muted-2: #7E858C;
  --danger: #ff6b6b;

  /* forma */
  --r-card: 14px;
  --r-field: 10px;
  --r-pill: 999px;

  --ff: 'Montserrat', system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--green); color: var(--on-green); }

/* spec label monospace (anotações de especificação nas cards) */
.spec { font-family: var(--mono); font-size: 11px; color: var(--muted-2); letter-spacing: 0.01em; }

/* -------------------- Botões -------------------- */
.btn {
  font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid transparent; border-radius: var(--r-field);
  padding: 12px 20px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-press); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-3); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn[disabled], .btn.is-disabled { opacity: 0.4; cursor: not-allowed; }

/* -------------------- Campos -------------------- */
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.input {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-field); padding: 12px 14px; outline: none;
  transition: border-color 0.15s ease;
}
.input::placeholder { color: var(--muted-2); }
.input:focus, .input.is-focus { border-color: var(--green); }
textarea.input { min-height: 92px; resize: vertical; line-height: 1.5; }

/* -------------------- Chips -------------------- */
.chip {
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: var(--r-pill); padding: 9px 16px; cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.chip:hover { color: var(--text); border-color: var(--muted-2); }
.chip.sel { background: var(--green); border-color: var(--green); color: var(--on-green); }

/* -------------------- Categorias (lista tipo app) -------------------- */
.cat-list { display: flex; flex-direction: column; gap: 8px; }
.cat-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-field);
  cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease;
}
.cat-row:hover { background: var(--surface-2); }
.cat-row.sel { border-color: var(--green); }
.cat-ic { width: 22px; height: 22px; flex: none; color: var(--muted); }
.cat-ic svg { width: 100%; height: 100%; display: block; }
.cat-row.sel .cat-ic { color: var(--green); }
.cat-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cat-title { font-size: 15px; font-weight: 600; color: var(--text); }
.cat-desc { font-size: 13px; color: var(--muted-2); margin-top: 3px; }
.cat-chev { width: 18px; height: 18px; flex: none; color: var(--muted-2); }
.cat-chev svg { width: 100%; height: 100%; display: block; }
.cat-group { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin: 6px 0 2px; }

/* -------------------- Progresso (minimal) -------------------- */
.progress-min { margin-bottom: 22px; }
.progress-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.progress-top .p-step { font-size: 12px; font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.progress-top .p-phase { font-size: 12px; font-weight: 600; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.06em; }
.progress-bar { height: 4px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-fill { height: 100%; background: var(--green); border-radius: 999px; }

/* -------------------- Status (pílulas sóbrias) -------------------- */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-analise { color: #e0b34d; background: rgba(224, 179, 77, 0.12); }
.pill-progresso { color: #8f93ef; background: rgba(143, 147, 239, 0.12); }
.pill-feito { color: #6fce4f; background: rgba(111, 206, 79, 0.12); }
.pill-parado { color: #ff6b6b; background: rgba(255, 107, 107, 0.12); }

/* -------------------- Balões de conversa -------------------- */
.bubble { border-radius: 12px; padding: 12px 14px; max-width: 82%; }
.bubble-you { background: rgba(166, 254, 31, 0.10); border: 1px solid rgba(166, 254, 31, 0.22); margin-left: auto; }
.bubble-team { background: var(--surface-2); border: 1px solid var(--border); }
.bubble-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.bubble-who { font-size: 12px; font-weight: 700; }
.bubble-you .bubble-who { color: var(--green); }
.bubble-team .bubble-who { color: var(--text); }
.bubble-date { font-size: 11px; color: var(--muted-2); }
.bubble-body { font-size: 14px; color: var(--text); line-height: 1.5; }

/* -------------------- Card / chrome de tela -------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 26px; }
.wordmark { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; color: var(--text); }
.wordmark b { color: var(--green); font-weight: 700; }

/* -------------------- Helpers de card de especímen -------------------- */
.ds-pad { padding: 24px; }
.ds-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ds-col { display: flex; flex-direction: column; }
