/* Design system do portal da operadora (ADR-010) — identidade Boutique Empresarial.
   Tokens: creme/dourado/quase-preto; Playfair Display (títulos) + Inter (corpo).
   Tema light/creme fixo (não depende de dark mode do dispositivo). */

:root {
  --cream: #f5f2eb;
  --ink: #1f1f1f;
  --mut: #555;
  --border: #e5e5e5;
  --gold: #c5a059;
  --dark: #1c1c1c;
  --danger: #9b3a32;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
}
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

a { color: var(--dark); text-decoration: underline; }

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}
nav a { color: var(--ink); text-decoration: none; font-weight: 500; }

input, select, button {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
button {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
}
button:hover { opacity: 0.92; }
.btn-primary { width: 100%; padding: 0.7rem; font-weight: 500; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--border); }
th { background: #efe9dd; font-weight: 500; }

.badge { display: inline-block; padding: 2px 8px; border-radius: var(--radius); font-size: 0.8rem; background: #eceae3; color: var(--mut); }
.badge-novo { background: #f3ecdc; color: #8a6d2f; }
.badge-terminal { background: #efe2dc; color: #8a4b2f; }
.badge-acompanhamento { background: #eceae3; color: #555; }

.driver-positive { color: #3b6d11; }
.driver-negative { color: var(--danger); }
.missing { color: #999; font-style: italic; }
.error { color: var(--danger); font-size: 0.9rem; }

form { display: inline; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

/* Marca + telas de autenticação/marca (login, landing) */
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.brand-mark { width: 16px; height: 16px; background: var(--gold); border-radius: 3px; display: inline-block; }
.auth-wrap {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}
.auth-wrap form { display: flex; flex-direction: column; gap: 0.75rem; width: 100%; max-width: 320px; text-align: left; }
.gold-rule { width: 34px; height: 2px; background: var(--gold); border: none; }
.subtitle { color: var(--mut); font-size: 0.9rem; margin: -0.25rem 0 0.25rem; }
.field { display: flex; align-items: center; gap: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: 0 0.6rem; }
.field input { border: none; background: transparent; flex: 1; padding: 0.55rem 0.25rem; }
.field svg { color: var(--gold); flex: none; }
.error svg { vertical-align: -2px; margin-right: 4px; }

/* Carteira — cards mobile-first */
.lead-count { color: var(--mut); font-size: 0.85rem; margin: -0.25rem 0 1rem; }
.lead-list { display: flex; flex-direction: column; gap: 0.6rem; }
.lead-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.7rem 0.85rem; }
.lead-top { border: 1.5px solid var(--gold); }
.lead-head { display: flex; align-items: center; gap: 0.5rem; }
.rank { width: 20px; height: 20px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 500; background: #eceae3; color: var(--mut); }
.rank-top { background: var(--gold); color: #3a2c08; }
.lead-name { font-weight: 500; color: var(--ink); text-decoration: none; }
.lead-name:hover { text-decoration: underline; }
.lead-meta { color: var(--mut); font-size: 0.82rem; margin: 0.2rem 0 0.6rem 1.75rem; }
.lead-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: 1.75rem; }
.lead-actions .spacer { flex: 1; }
.lead-actions select { padding: 0.3rem 0.5rem; font-size: 0.85rem; }
.soc, .thumb { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 28px; padding: 0; background: #fff; border: 1px solid var(--border); border-radius: 6px; color: var(--ink); }
.thumb:hover, .soc:hover { background: var(--cream); }
