/* Change Leadgen Tool — Novo palette from brief §11 */
:root {
  --novo-cyan:   #00A5D8;
  --novo-navy:   #051727;
  --novo-teal:   #34BDBB;
  --novo-bg:     #F4F8FB;
  --novo-ink:    #051727;
  --novo-slate:  #3F4E60;
  --novo-muted:  #94A3B8;
  --novo-red:    #B53A2C;
  --novo-green:  #2F855A;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--novo-bg);
  color: var(--novo-ink);
}

a { color: var(--novo-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: var(--novo-navy); color: white;
}
.brand a { color: white; font-weight: 600; font-size: 1.05rem; }
.brand-tag { color: var(--novo-muted); margin-left: 10px; font-size: 0.8rem; }
.topbar-nav { display: flex; gap: 14px; align-items: center; }
.user-chip { color: var(--novo-muted); font-size: 0.9rem; }
.inline-form { display: inline; margin: 0; }
.link-button {
  background: none; border: none; color: var(--novo-cyan); cursor: pointer;
  font: inherit; padding: 0;
}

.page { max-width: 1000px; margin: 24px auto; padding: 0 24px; }

h1 { margin-top: 0; }

.auth-card {
  max-width: 360px; margin: 60px auto; background: white;
  padding: 28px; border-radius: 10px;
  box-shadow: 0 6px 24px rgba(5, 23, 39, 0.08);
}
.field { display: flex; flex-direction: column; margin-bottom: 14px; }
.field label { font-size: 0.85rem; margin-bottom: 4px; color: var(--novo-slate); }
.field input {
  padding: 10px; border: 1px solid #D5DEE8; border-radius: 6px; font: inherit;
}
.btn-primary {
  background: var(--novo-cyan); color: white; border: none;
  padding: 10px 16px; border-radius: 6px; cursor: pointer; font-weight: 600;
}
.btn-primary:hover { background: #0290BD; }

.flashes { list-style: none; padding: 0; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 10px; }
.flash-error { background: #FDECEA; color: var(--novo-red); }
.flash-info  { background: #E6F4F1; color: var(--novo-slate); }
.flash-success { background: #E5F1EB; color: var(--novo-green); }

.error { color: var(--novo-red); font-size: 0.8rem; }

.meta { display: grid; grid-template-columns: 180px 1fr; row-gap: 6px; }
.meta dt { color: var(--novo-muted); }

.leads-table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; }
.leads-table th, .leads-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #EEF2F6; }
.leads-table th { background: #ECF3F8; font-size: 0.85rem; }

.client-list { list-style: none; padding: 0; }
.client-list li { padding: 8px 0; border-bottom: 1px solid #EEF2F6; }

.footer { text-align: center; padding: 24px; color: var(--novo-muted); }
/* ===== Alpha sprint additions: leads page styling ===== */

.muted { color: var(--novo-muted); font-weight: 400; }
.small { font-size: 0.85rem; }

.leads-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 12px;
}
.leads-header h1 { margin: 0; }

.row-id { color: var(--novo-muted); font-size: 0.75rem; margin-left: 6px; }

.tier {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.02em;
}
.tier-hot   { background: #FDECEA; color: var(--novo-red); }
.tier-warm  { background: #FFF3D8; color: #946700; }
.tier-watch { background: #E7EEF5; color: var(--novo-slate); }

/* Tabulator container styling — match table look-and-feel */
#leads-table-tabulator {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(5, 23, 39, 0.05);
}
#leads-table-tabulator .tabulator-header {
  background: #ECF3F8;
  border-bottom: 1px solid #DCE5EC;
}
#leads-table-tabulator .tabulator-header .tabulator-col {
  background: #ECF3F8;
  font-size: 0.85rem;
}
#leads-table-tabulator .tabulator-row {
  border-bottom: 1px solid #EEF2F6;
}
#leads-table-tabulator .tabulator-row:hover {
  background: #F7FAFD;
}
