/* ViaDirect Brand Colors */
:root {
  --vd-red:       #CC2828;
  --vd-red-dark:  #A82020;
  --vd-red-light: #F5DADA;
  --vd-charcoal:  #2D2D2D;
  --vd-gray:      #C8C8C8;
  --vd-gray-mid:  #6B7280;
  --vd-bg:        #F5F6FA;
  --vd-white:     #FFFFFF;
  --vd-sidebar:   #1C1C1E;
  --vd-sidebar-hover: #CC2828;
  --vd-border:    #E5E7EB;
}

/* ── Layout ─────────────────────────────────────────────── */
body {
  background: var(--vd-bg);
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--vd-charcoal);
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
  width: 230px;
  min-height: 100vh;
  background: var(--vd-sidebar);
  position: fixed;
  top: 0; left: 0;
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  box-shadow: 2px 0 8px rgba(0,0,0,0.18);
}

.sidebar-brand {
  padding: .75rem 1.2rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: .5rem;
}

.sidebar-brand img {
  height: 36px;
  filter: brightness(0) invert(1); /* force white on dark bg */
}

.sidebar .nav-link {
  color: #A0A0A0;
  padding: .6rem 1.2rem;
  font-size: .875rem;
  font-weight: 500;
  border-radius: 6px;
  margin: 1px 10px;
  display: flex;
  align-items: center;
  gap: .6rem;
  transition: all .15s ease;
  text-decoration: none;
  letter-spacing: .01em;
}

.sidebar .nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.07);
}

.sidebar .nav-link.active {
  color: #fff;
  background: var(--vd-red);
}

.sidebar .nav-link .badge {
  background: #FF5C35 !important;
  margin-left: auto;
}

.sidebar-divider {
  border-color: rgba(255,255,255,.08);
  margin: .5rem 1rem;
}

.sidebar-footer {
  margin-top: auto;
  padding: .75rem 1.2rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

.sidebar-footer .user-name {
  color: #A0A0A0;
  font-size: .78rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .25rem;
}

.sidebar-footer .nav-link {
  font-size: .8rem;
  color: #777;
  margin: 0;
  padding: .35rem .5rem;
}

/* ── Main content ────────────────────────────────────────── */
.main-content {
  margin-left: 230px;
  padding: 0 2rem 2rem;
  min-height: 100vh;
}

.topbar {
  background: var(--vd-white);
  border-bottom: 1px solid var(--vd-border);
  margin: 0 -2rem 1.75rem;
  padding: .875rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

.topbar h5 {
  font-weight: 600;
  color: var(--vd-charcoal);
  margin: 0;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  background: var(--vd-white);
}

/* ── Stat cards ──────────────────────────────────────────── */
.stat-card {
  text-align: center;
  padding: 1.4rem 1rem;
}

.stat-card .value {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: .3rem;
  color: var(--vd-charcoal);
}

.stat-card .value.highlight { color: var(--vd-red); }
.stat-card .value.success   { color: #16A34A; }
.stat-card .value.info      { color: #0284C7; }
.stat-card .value.warning   { color: #D97706; }

.stat-card .label {
  font-size: .72rem;
  color: var(--vd-gray-mid);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}

/* ── Tables ──────────────────────────────────────────────── */
.table th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--vd-gray-mid);
  font-weight: 600;
  border-bottom: 2px solid var(--vd-border);
  background: #FAFAFA;
}

.table-hover tbody tr:hover {
  background: #FFF8F8;
  cursor: pointer;
}

/* ── Badges ──────────────────────────────────────────────── */
.status-badge {
  font-size: .72rem;
  padding: .28em .65em;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: .01em;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
  background: var(--vd-red);
  border-color: var(--vd-red);
  font-weight: 500;
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--vd-red-dark);
  border-color: var(--vd-red-dark);
}

.btn-outline-primary {
  color: var(--vd-red);
  border-color: var(--vd-red);
}

.btn-outline-primary:hover {
  background: var(--vd-red);
  border-color: var(--vd-red);
}

/* ── Alerts & banners ────────────────────────────────────── */
.dry-run-banner {
  background: #FFF8E6;
  border: 1px solid #F5A623;
  border-radius: 8px;
  padding: .6rem 1rem;
  margin-bottom: 1.25rem;
  font-size: .84rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.review-alert {
  border-left: 4px solid var(--vd-red);
  background: var(--vd-red-light);
  border-radius: 0 8px 8px 0;
}

/* ── Domain quota bars ───────────────────────────────────── */
.progress-bar { background: var(--vd-red); }
.progress-bar.bg-danger { background: #DC2626 !important; }
.progress-bar.bg-success { background: #16A34A !important; }

/* ── Filter tabs (Inbox) ─────────────────────────────────── */
.filter-tabs .btn-active-review { background: #D97706; border-color: #D97706; color: #fff; }
.filter-tabs .btn-active-interested { background: #16A34A; border-color: #16A34A; color: #fff; }
.filter-tabs .btn-active-not_interested { background: #DC2626; border-color: #DC2626; color: #fff; }
.filter-tabs .btn-active-bounce { background: #374151; border-color: #374151; color: #fff; }

/* ── Client selector ─────────────────────────────────────── */
.client-selector {
  max-width: 180px;
  font-size: .85rem;
  border-radius: 6px;
}

/* Inter font via CDN (added in base.html <head>) */
