/* ============================================================
   AdmVet Talent — Design System Global
   ============================================================ */

:root {
  --green-900: #0d3d20;
  --green-800: #145a2e;
  --green-700: #1a6b3c;
  --green-600: #22854e;
  --green-400: #3db870;
  --green-100: #d4f0e1;
  --green-50:  #edfaf3;

  --gray-900: #1a1a1a;
  --gray-700: #3d3d3d;
  --gray-500: #6b6b6b;
  --gray-300: #c2c2c2;
  --gray-100: #f2f2f2;
  --gray-50:  #f8f8f8;

  --red-600:  #c0392b;
  --red-50:   #fdf0ef;
  --amber-600:#b7650a;
  --amber-50: #fef8ed;
  --blue-600: #1a5fa8;
  --blue-50:  #eef4fc;

  --white: #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --transition: 0.18s ease;
  --font: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-600); }

img { max-width: 100%; display: block; }

/* ── Tipografia ─────────────────────────────── */
h1 { font-size: 2rem;   font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem;   font-weight: 600; }
p  { color: var(--gray-700); }

/* ── Container ──────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.container--sm { max-width: 560px; }
.container--md { max-width: 820px; }

/* ── Botões ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .65rem 1.4rem; border-radius: var(--radius-sm);
  font-size: .925rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn--primary   { background: var(--green-700); color: var(--white); }
.btn--primary:hover { background: var(--green-800); color: var(--white); }
.btn--outline   { background: transparent; border-color: var(--green-700); color: var(--green-700); }
.btn--outline:hover { background: var(--green-50); }
.btn--danger    { background: var(--red-600); color: var(--white); }
.btn--danger:hover  { background: #a93226; color: var(--white); }
.btn--ghost     { background: transparent; color: var(--gray-700); border-color: var(--gray-300); }
.btn--ghost:hover   { background: var(--gray-100); }
.btn--sm { padding: .4rem .9rem; font-size: .825rem; }
.btn--lg { padding: .85rem 2rem; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Formulários ────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-size: .875rem; font-weight: 500; color: var(--gray-700); margin-bottom: .4rem; }
.form-label span { color: var(--red-600); }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: .65rem .9rem;
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  font-size: .95rem; font-family: var(--font); color: var(--gray-900);
  background: var(--white); transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(26,107,60,.12);
}
.form-input::placeholder { color: var(--gray-300); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: .8rem; color: var(--gray-500); margin-top: .3rem; }
.form-error { font-size: .8rem; color: var(--red-600); margin-top: .3rem; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-md);
  padding: 2rem; text-align: center; cursor: pointer;
  transition: all var(--transition); background: var(--white);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--green-700); background: var(--green-50);
}
.upload-zone__icon { font-size: 2.5rem; margin-bottom: .5rem; }
.upload-zone__text { color: var(--gray-500); font-size: .9rem; }
.upload-zone__text strong { color: var(--green-700); }

/* ── Cards ──────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 1.5rem;
  border: 1px solid rgba(0,0,0,.06);
}
.card--bordered { border: 1.5px solid var(--gray-300); box-shadow: none; }

/* ── Badge / Tags ───────────────────────────── */
.badge {
  display: inline-block; padding: .25rem .7rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; line-height: 1;
}
.badge--green   { background: var(--green-100); color: var(--green-800); }
.badge--amber   { background: var(--amber-50);  color: var(--amber-600); }
.badge--red     { background: var(--red-50);    color: var(--red-600); }
.badge--blue    { background: var(--blue-50);   color: var(--blue-600); }
.badge--gray    { background: var(--gray-100);  color: var(--gray-700); }

/* ── Flash messages ─────────────────────────── */
.flash {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.2rem; border-radius: var(--radius-md);
  margin-bottom: 1.2rem; font-size: .9rem; font-weight: 500;
}
.flash__icon { font-size: 1rem; font-weight: 700; flex-shrink: 0; }
.flash--success { background: var(--green-50);  color: var(--green-800); border-left: 4px solid var(--green-700); }
.flash--error   { background: var(--red-50);    color: var(--red-600);   border-left: 4px solid var(--red-600); }
.flash--info    { background: var(--blue-50);   color: var(--blue-600);  border-left: 4px solid var(--blue-600); }
.flash--warning { background: var(--amber-50);  color: var(--amber-600); border-left: 4px solid var(--amber-600); }

/* ── Navbar pública ─────────────────────────── */
.navbar {
  background: var(--white); border-bottom: 1px solid rgba(0,0,0,.08);
  position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-sm);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 1.5rem;
}
.navbar__logo { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.2rem; color: var(--green-700); }
.navbar__logo-icon { width: 36px; height: 36px; background: var(--green-700); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 1rem; }
.navbar__nav { display: flex; align-items: center; gap: .25rem; }
.navbar__link { padding: .4rem .85rem; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; color: var(--gray-700); transition: all var(--transition); }
.navbar__link:hover { background: var(--gray-100); color: var(--gray-900); }

/* ── Tabelas ─────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--gray-300); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
thead th { background: var(--gray-100); padding: .75rem 1rem; text-align: left; font-weight: 600; font-size: .82rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
tbody td { padding: .85rem 1rem; border-top: 1px solid var(--gray-100); vertical-align: middle; }
tbody tr:hover { background: var(--gray-50); }

/* ── Utilitários ─────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--gray-500); }
.text-sm     { font-size: .875rem; }
.text-xs     { font-size: .78rem; }
.mt-1 { margin-top: .5rem; }  .mt-2 { margin-top: 1rem; }  .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }.mb-2 { margin-bottom: 1rem; }.mb-3 { margin-bottom: 1.5rem; }.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; } .flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Stat card ──────────────────────────────── */
.stat-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid rgba(0,0,0,.06); padding: 1.25rem 1.5rem; }
.stat-card__label { font-size: .82rem; font-weight: 500; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .4rem; }
.stat-card__value { font-size: 2rem; font-weight: 700; color: var(--gray-900); line-height: 1; }
.stat-card__sub   { font-size: .82rem; color: var(--gray-500); margin-top: .35rem; }

/* ── Paginação ──────────────────────────────── */
.pagination { display: flex; align-items: center; gap: .4rem; margin-top: 1.5rem; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  font-size: .875rem; border: 1px solid var(--gray-300); color: var(--gray-700);
  transition: all var(--transition);
}
.pagination a:hover { background: var(--green-50); border-color: var(--green-700); color: var(--green-700); }
.pagination .active { background: var(--green-700); color: white; border-color: var(--green-700); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ── Responsivo ─────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  .navbar__nav .btn { display: none; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ── Estados de erro em inputs ──────────────────────────────── */
.form-input--error,
.form-input--error:focus {
  border-color: var(--red-600);
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}
