/* ==========================================================================
   NC Catálogo — Design System
   Tokens, reset e componentes base. Paleta institucional da DM Adesivos
   (azul/amarelo/cinza/branco) — self-hospedado aqui, sem CDN. Forma DJR
   Display e Gotham são fontes comerciais sem licença disponível neste
   projeto; Archivo e Plus Jakarta Sans (open source, self-hospedadas)
   entram como substitutas de métrica/estilo próximos até uma licença
   oficial ser fornecida.
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans.woff2') format('woff2');
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/archivo.woff2') format('woff2');
}

:root {
  --ink: #1c1c1c;
  --muted: #535353;
  --cream: #ffffff;
  --paper: #fff;
  --line: #e2e2e2;
  --sage: #d8d8d8;
  --azul: #0547af;
  --coral: #df725f;
  --amarelo: #ffc200;

  --font-ui: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Archivo', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
}

a {
  color: inherit;
}

.shell {
  max-width: 1240px;
  margin: auto;
  padding: 0 28px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--azul);
  font-weight: 700;
}

h1 {
  font-family: var(--font-display);
}

/* Botões */

.primary {
  display: inline-block;
  background: var(--amarelo);
  color: var(--ink);
  padding: 13px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.primary:hover {
  background: #e6ae00;
}

.secondary {
  display: inline-block;
  padding: 12px 16px;
  background: #eef2f8;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
}

/* Card e campos de formulário */

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 16px;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  padding: 11px;
  border-radius: 7px;
  color: var(--ink);
  font-weight: 400;
}

.field-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.field-checkbox input {
  width: auto;
}

/* Tabela */

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 15px 8px;
  text-align: left;
  font-size: 14px;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.status {
  background: #e3ebf8;
  color: var(--azul);
  padding: 5px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}

.status-inativo,
.status-cancelado {
  background: #f1e5e5;
  color: var(--coral);
}

.status-novo {
  background: #f0f0f0;
  color: var(--ink);
}

.status-em-atendimento {
  background: #fff3cc;
  color: #7a5c00;
}

.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.edit {
  display: inline-block;
  padding: 7px 11px;
  background: #e7edf8;
  color: var(--azul);
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 13px;
}

.edit.is-danger {
  background: #f6e9e7;
  color: var(--coral);
}

.thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.thumb-grande {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin: 8px 0 16px;
}

/* Paginação */

.pagination {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}

.pagination-btn {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
}

.pagination-btn.active {
  background: var(--azul);
  color: #fff;
  border-color: var(--azul);
}

/* Alertas / flash */

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.alert-sucesso {
  background: #e3ebf8;
  color: var(--azul);
}

.alert-erro {
  background: #f6e9e7;
  color: var(--coral);
}

/* Modal de confirmação */

.modal {
  position: fixed;
  inset: 0;
  background: #1c1c1c77;
  display: grid;
  place-items: center;
  z-index: 10;
  padding: 20px;
}

.modal-card {
  background: white;
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  padding: 25px;
}

.modal-card h2 {
  margin-top: 0;
  font-family: var(--font-display);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}
