:root {
  --brand: #0b3d3af7;
  --brand-dark: #f59e0b;
  --brand-light: #efecfe;
  --ink: #1f2430;
  --muted: #6b7280;
  --line: #e8e8ee;
  --bg: #f6f6fb;
  --white: #ffffff;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- header + pill nav ---------- */
.app-header {
  background: rgb(11 61 58 / 97%);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}
.app-header .text-muted {color: var(--white) !important;}
.brand-mark {
  width: 180px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 3px;
}
.pill-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  background: rgb(245, 158, 11);
  border-radius: 10px;
  padding: 4px;
}
.pill-nav-link {
  padding: 0.4rem 1rem;
  border-radius: 5px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.pill-nav-link:hover { color: var(--ink); }
.pill-nav-link.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(15, 15, 25, 0.12);
}

/* ---------- buttons ---------- */
.btn-brand {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

/* ---------- pastel badges (override Bootstrap solids) ---------- */
.badge.text-bg-success  { background: #e6f7ec !important; color: #1a7f4b !important; }
.badge.text-bg-warning  { background: #fff3e0 !important; color: #ad6a05 !important; }
.badge.text-bg-primary  { background: #e9edff !important; color: #3949ce !important; }
.badge.text-bg-info     { background: #e6f4fb !important; color: #196f9c !important; }
.badge.text-bg-secondary{ background: #eef0f3 !important; color: #6b7280 !important; }
.badge.text-bg-danger   { background: #fdecec !important; color: #c8352c !important; }
.badge.text-bg-purple   { background: #f1ecfe !important; color: #7c3aed !important; }
.badge { font-weight: 600; font-size: 1rem; padding: 0.35em 0.7em; }

/* ---------- stat cards ---------- */
.stat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
}
.stat-card .stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 0.6rem;
}
.stat-card .stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-card .stat-label { font-size: 0.72rem; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-top: 0.3rem; }

/* ---------- generic cards / row lists ---------- */
.row-card, .info-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.row-card .list-row {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #f1f2f5;
  text-decoration: none;
  color: inherit;
  display: block;
}
.row-card .list-row:last-child { border-bottom: none; }
.row-card .list-row:hover { background: #fafafd; }

.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }

/* ---------- school / entity cards (grid view) ---------- */
.entity-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.entity-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.entity-note {
  background: #f7f7fb;
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.8rem;
  color: #4b5060;
}
.entity-meta-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.83rem;
  color: #4b5060;
}
.entity-meta-row i { color: #9296a3; width: 14px; }

/* ---------- kanban board ---------- */
.kanban-scroll {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
}
.kanban-col {
  flex: 0 0 250px;
  width: 250px;
}
.kanban-col-header {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  padding: 0 0.1rem;
}
.kanban-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.kanban-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.7rem 0.75rem;
  margin-bottom: 0.6rem;
  font-size: 0.83rem;
}
.kanban-card .cand-name { font-weight: 600; }
.kanban-card select { font-size: 0.76rem; padding: 0.2rem 0.4rem; }

/* ---------- telecalling ---------- */
.call-timer {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 1.6rem;
  min-width: 4.5ch;
}
.outcome-btn {
  border: 1px solid #cbd1db;
  background: #fff;
  color: #475569;
  font-size: 0.8rem;
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
}
.outcome-btn.active-outcome { background: var(--brand); border-color: var(--brand); color: #fff; }
.quick-chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
  color: #3b3f4a;
  text-decoration: none;
  white-space: nowrap;
}
.quick-chip:hover { background: var(--brand-light); color: var(--brand-dark); }
.quick-chip i { color: var(--brand); margin-right: 4px; }

/* ---------- follow-ups ---------- */
.followup-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.75rem 1rem;
}

/* ---------- misc ---------- */
.empty-state {
  border: 1px dashed #cbd1db;
  border-radius: 10px;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--muted);
}
.icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);

  background: #fff;
}
.icon-btn:hover { background: #f5f5fa; color: var(--ink); }
.icon-btn.text-danger:hover { background: #fdecec; }

.modal-body { max-height:400px; overflow-y: scroll; }
.modal-header { background: var(--brand);}
.modal-title { color:  var(--white);}

.fw-semibold {
    font-size: 20px;
}