/* ═══════════════════════════════════════════════
   HUNTERS AI — DESIGN SYSTEM
   ═══════════════════════════════════════════════ */

:root {
  /* Brand */
  --navy:             #1B2A4A;
  --navy-mid:         #1B2A4A;
  --gold:             #C9A84C;
  --gold-light:       #E2C97E;
  --red-alert:        #CC2B2B;

  /* Backgrounds */
  --bg-page:          #F4F5FA;
  --bg-card:          #FFFFFF;
  --bg-input:         #FAFBFC;

  /* Semantic score */
  --score-green-bg:   #E1F5EE;
  --score-green-text: #0F6E56;
  --score-amber-bg:   #FAEEDA;
  --score-amber-text: #854F0B;
  --score-red-bg:     #FCEBEB;
  --score-red-text:   #A32D2D;

  /* Legacy compat — used in app.js inline styles */
  --red:        #CC2B2B;
  --green:      #0F6E56;
  --border:     #e5e7eb;
  --text-muted: #888;
  --text-main:  #1B2A4A;
  --bg-hover:   #F5F6F8;
  --bg-dark:    #e5e7eb;
  --primary:    #1B2A4A;
  --secondary:  #CC2B2B;
  --shortlist:  #1B2A4A;
  --dark:       #1B2A4A;
}

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

html {
  overflow-x: hidden;
  height: 100%;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100%;
}

button {
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  font-family: inherit;
}

button:not(:disabled):hover { opacity: 0.85; }

button:not(:disabled):active { transform: scale(0.98); }

button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── BUTTONS ───────────────────────────────────── */
.btn-primary {
  background: var(--navy-mid);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 150ms ease, transform 100ms ease;
}
.btn-primary:hover   { opacity: 0.85; }
.btn-primary:active  { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: #fff;
  color: #444;
  border: 0.5px solid #ddd;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: opacity 150ms ease, transform 100ms ease;
}
.btn-secondary:hover  { opacity: 0.8; }
.btn-secondary:active { transform: scale(0.98); }

.btn-text {
  background: none;
  border: none;
  color: #888;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  padding: 8px;
}

/* Kept for JS-generated HTML compatibility */
.btn-outline {
  background: #fff;
  color: var(--navy-mid);
  border: 0.5px solid #ddd;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 150ms ease;
}
.btn-outline:hover { opacity: 0.8; }

.btn-action {
  background: var(--bg-page);
  color: var(--navy-mid);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.btn-action:hover { background: var(--navy-mid); color: #fff; border-color: var(--navy-mid); }

/* Job card buttons (JS-generated) */
.btn-share {
  background: var(--bg-page);
  color: var(--navy-mid);
  border: 0.5px solid var(--border);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 150ms ease;
}
.btn-share:hover { opacity: 0.75; }
.btn-share.edit-btn { background: #f0f4ff; border-color: #c0c8d8; color: var(--navy-mid); }

.btn-apply-link {
  text-decoration: none;
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 150ms ease;
}
.btn-apply-link:hover { gap: 8px; }

.btn-full { width: 100%; justify-content: center; margin-bottom: 10px; }

/* ── LOGIN ─────────────────────────────────────── */
.login-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-page);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.login-overlay.active { display: flex; }

.login-card {
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.1);
  border-radius: 14px;
  padding: 36px 32px;
  width: 360px;
  animation: slideUp 0.4s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.logo-icon { width: 54px; height: 54px; }

.brand-name {
  font-size: 22px;
  font-weight: 500;
  color: var(--navy-mid);
  text-align: center;
  margin-top: 4px;
}
.brand-sub {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 6px;
}
.tagline {
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-bottom: 22px;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #555;
  margin-bottom: 5px;
}

.field-input {
  width: 100%;
  padding: 10px 12px;
  border: 0.5px solid #ddd;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: var(--navy-mid);
  background: var(--bg-input);
  outline: none;
  transition: border-color 150ms ease;
}
.field-input:focus { border-color: var(--navy-mid); }

.input-wrap {
  position: relative;
  margin-bottom: 14px;
}
.input-wrap .field-input {
  padding-left: 34px;
  width: 100%;
}
.input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  stroke: #ccc;
  fill: none;
  pointer-events: none;
}

.remember-row { margin-bottom: 14px; }
.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
}
.remember-me input { width: 14px; height: 14px; cursor: pointer; accent-color: var(--navy-mid); }

.sec-note {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-page);
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 11px;
  color: #999;
  margin-top: 14px;
}
.sec-note svg { stroke: #ccc; fill: none; flex-shrink: 0; }

/* ── GLOBAL NAV ────────────────────────────────── */
.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.global-nav {
  height: 52px;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 0;
  overflow: hidden;
  min-width: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: 28px;
  flex-shrink: 0;
}
.nav-logo-icon { width: 22px; height: 22px; flex-shrink: 0; }
.nav-brand { display: flex; flex-direction: column; }
.nav-brand-name { color: #fff; font-size: 14px; font-weight: 500; line-height: 1.1; }
.nav-brand-sub  { color: var(--gold); font-size: 8.5px; letter-spacing: 0.06em; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  flex: 1;
  padding: 0;
  margin: 0;
}
.nav-links li {
  color: rgba(255,255,255,0.55);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  user-select: none;
}
.nav-links li svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}
.nav-links li:hover  { color: rgba(255,255,255,0.85); }
.nav-links li.active { color: #fff; background: rgba(255,255,255,0.12); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-approvals-link {
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  transition: opacity 150ms ease;
}
.nav-approvals-link svg { stroke: currentColor; fill: none; flex-shrink: 0; }
.nav-approvals-link:hover { opacity: 0.8; }

.nav-username {
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  font-weight: 500;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 150ms ease;
}
.nav-avatar:hover { opacity: 0.85; }
.nav-avatar svg { stroke: var(--navy-mid); fill: none; }

/* ── PAGE BODY ─────────────────────────────────── */
.page-body {
  background: var(--bg-page);
  padding: 20px 24px;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.page-content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* ── VIEWS ─────────────────────────────────────── */
.view { display: none; }
.view.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-mid);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
}
.page-title svg {
  width: 15px;
  height: 15px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.view-header .page-title { margin-bottom: 0; }

.header-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ── STAT CARDS ────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.stat-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  transition: box-shadow 150ms ease;
}
.stat-card:hover { box-shadow: 0 4px 16px rgba(27,42,74,0.06); }
.stat-value {
  font-size: 30px;
  font-weight: 500;
  color: var(--navy-mid);
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ── SECTION HEADER ────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.section-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-mid);
}

/* ── TABLES ────────────────────────────────────── */
.table-wrap {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 20px;
  max-width: 100%;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.data-table thead tr { background: var(--navy-mid); }
.data-table th {
  color: #fff;
  padding: 9px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
}
.data-table td {
  padding: 10px 14px;
  border-bottom: 0.5px solid #f0f2f5;
  color: var(--text-main);
  font-size: 12px;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #fafbfc; }

/* Legacy table classes (used by app.js-generated HTML) */
.table-container {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
table  { width: 100%; border-collapse: collapse; }
th {
  color: #fff;
  padding: 9px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  background: var(--navy-mid);
}
td {
  padding: 10px 14px;
  border-bottom: 0.5px solid #f0f2f5;
  color: var(--text-main);
  font-size: 12px;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fafbfc; }

/* ── BADGES ────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}
.badge.shortlist { background: var(--score-green-bg); color: var(--score-green-text); }
.badge.maybe     { background: var(--score-amber-bg); color: var(--score-amber-text); }
.badge.reject    { background: var(--score-red-bg);   color: var(--score-red-text); }
.badge.pending   { background: #f0f2f5; color: #888; }

.score-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}
.score-green { background: var(--score-green-bg); color: var(--score-green-text); }
.score-amber { background: var(--score-amber-bg); color: var(--score-amber-text); }
.score-red   { background: var(--score-red-bg);   color: var(--score-red-text); }

/* ── JOBS GRID ─────────────────────────────────── */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.job-card {
  background: #fff;
  border: 0.5px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  border-top: 3px solid var(--navy-mid);
  transition: box-shadow 150ms ease;
}
.job-card:hover { box-shadow: 0 4px 16px rgba(27,42,74,0.06); }
.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 8px;
}
.job-card h3 {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-mid);
  margin: 0;
}
/* Legacy h1/h2 inside views */
h1 {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-mid);
  margin-bottom: 14px;
}
h2 {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-mid);
  margin: 16px 0 10px;
}
h3 { font-size: 12px; font-weight: 500; color: var(--navy-mid); }

.job-meta p {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.job-details-tags {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-main);
  margin-top: 10px;
}
.job-details-tags div { margin-bottom: 4px; }
.job-weights-badge {
  margin-top: 10px;
  padding: 3px 8px;
  background: var(--score-amber-bg);
  color: var(--score-amber-text);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  display: inline-block;
}

/* ── MODALS ────────────────────────────────────── */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.modal.active { display: flex; animation: fadein 200ms ease; }
@keyframes fadein  { from { opacity: 0; } to { opacity: 1; } }
@keyframes scalein { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

.modal-content {
  background: #fff;
  border-radius: 14px;
  width: 500px;
  overflow: hidden;
  animation: scalein 200ms ease;
  position: relative;
  align-self: flex-start;
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}
.modal-content.large { width: 800px; }

.modal-header-bar {
  background: var(--navy-mid);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.modal-title { color: #fff; font-size: 14px; font-weight: 500; }

/* Legacy close btn positioning */
.close-btn {
  color: rgba(255,255,255,0.6);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
  transition: color 150ms ease;
}
.close-btn:hover { color: #fff; }

.modal-body-area {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.modal-footer-bar {
  padding: 12px 20px;
  border-top: 0.5px solid #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

/* Modal tabs */
.modal-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border-bottom: 0.5px solid var(--border);
}
.tab-btn {
  padding: 8px 16px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease, border-color 150ms ease;
}
.tab-btn.active { color: var(--navy-mid); border-bottom-color: var(--navy-mid); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.modal-scroll-area {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* ── FORMS ─────────────────────────────────────── */
.form-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-grid .full-width { grid-column: span 2; }

.field-textarea { resize: vertical; min-height: 70px; }
.field-select   { appearance: none; cursor: pointer; }
.field-input-file {
  font-size: 12px;
  font-family: inherit;
  color: var(--text-main);
  padding: 8px 0;
  border: none;
  background: none;
  cursor: pointer;
  width: 100%;
}

textarea {
  width: 100%;
  min-height: 70px;
  padding: 10px 12px;
  border: 0.5px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  background: var(--bg-input);
  outline: none;
  color: var(--text-main);
}
textarea:focus { border-color: var(--navy-mid); }

select {
  padding: 10px 12px;
  border: 0.5px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  background: var(--bg-input);
  color: var(--text-main);
  outline: none;
  width: 100%;
}
select:focus { border-color: var(--navy-mid); }

/* Fallback for form inputs without .field-input class */
.form-group input:not([type="file"]):not([type="checkbox"]):not([type="range"]),
.form-group select {
  padding: 10px 12px;
  border: 0.5px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  background: var(--bg-input);
  color: var(--text-main);
  outline: none;
  width: 100%;
}
.form-group input:focus, .form-group select:focus { border-color: var(--navy-mid); }

/* ── UPLOAD ZONE ───────────────────────────────── */
.upload-zone {
  border: 1.5px dashed #ddd;
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-input);
  transition: border-color 150ms ease;
}
.upload-zone:hover { border-color: var(--navy-mid); }
.upload-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--navy-mid);
  margin: 8px 0 3px;
}
.upload-sub { font-size: 11px; color: #aaa; }

/* ── EVAL MODAL ────────────────────────────────── */
.eval-card { margin-top: 4px; }
.eval-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 0.5px solid var(--border);
}
.score-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 70%, var(--bg-dark) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 500;
  color: var(--navy-mid);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1.5px var(--border);
  flex-shrink: 0;
}
.decision-badge {
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
}
.candidate-info-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-hover);
  border-radius: 8px;
  margin: 14px 0;
  font-size: 12px;
}
.candidate-info-summary div {
  display: flex;
  align-items: center;
  gap: 5px;
}
.eval-reason { margin-bottom: 14px; }
.eval-reason h3 {
  font-size: 12px;
  font-weight: 500;
  color: var(--navy-mid);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.eval-reason p {
  color: var(--text-main);
  font-size: 12px;
  line-height: 1.6;
  background: var(--bg-hover);
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 3px solid var(--navy-mid);
  margin-top: 0;
  margin-bottom: 0;
}
.eval-strengths-weaknesses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.strengths h3 {
  color: var(--navy-mid);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}
.weaknesses h3 {
  color: var(--red-alert);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}
.strengths p, .weaknesses p {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.5;
}
.eval-questions h3 {
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}
.eval-questions ul { list-style: none; padding: 0; }
.eval-questions li {
  background: #fdfaf5;
  border: 0.5px solid #f2e3c6;
  border-left: 3px solid var(--gold);
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 6px;
  line-height: 1.5;
  list-style: none;
}

/* ── EMPTY STATE ───────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 8px;
  text-align: center;
}
.empty-title { font-size: 13px; font-weight: 500; color: var(--navy-mid); }
.empty-sub   { font-size: 11px; color: #aaa; margin-bottom: 4px; }

/* ── SKELETON ──────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #E8EAED 25%, #F4F5F7 50%, #E8EAED 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
}
.skeleton-text  { height: 12px; width: 120px; display: inline-block; }
.skeleton-badge { height: 20px; width: 48px; border-radius: 20px; display: inline-block; }
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── SCROLLBAR ─────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .kanban-board { grid-template-columns: repeat(4, minmax(200px, 1fr)); }
}

@media (max-width: 768px) {
  .page-body { padding: 14px 16px; }
  .global-nav { padding: 0 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .stat-value { font-size: 22px; }
  .view-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .header-actions { flex-wrap: wrap; width: 100%; }
  .pipeline-toolbar { flex-wrap: wrap; }
  .modal-content { width: calc(100vw - 32px) !important; max-width: 100% !important; }
  .modal-content.large { width: calc(100vw - 32px) !important; }
  .form-grid { grid-template-columns: 1fr !important; }
  .form-grid .full-width { grid-column: span 1 !important; }
  .nav-brand-sub { display: none; }
  .jobs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-value { font-size: 20px; }
  .stat-label { font-size: 10px; }
  .stat-trend { font-size: 10px; }
  .login-card { padding: 28px 20px; }
  .nav-username { display: none; }
}

/* ── STAT TREND ────────────────────────────────── */
.stat-trend {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
}
.stat-trend.green { color: #0F6E56; }
.stat-trend.amber { color: #854F0B; }
.stat-trend svg   { flex-shrink: 0; }

/* ── STAGE PILLS ───────────────────────────────── */
.stage-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
  border: 0.5px solid;
}
.stage-new       { color: #185FA5; border-color: #B5D4F4; background: #E6F1FB; }
.stage-screening { color: #854F0B; border-color: #FAC775; background: #FAEEDA; }
.stage-interview { color: #0F6E56; border-color: #9FE1CB; background: #E1F5EE; }
.stage-offer     { color: #854F0B; border-color: #C9A84C; background: #FFF8E7; }
.stage-rejected  { color: #A32D2D; border-color: #F5B8B8; background: #FCEBEB; }

/* ── KANBAN BOARD ──────────────────────────────── */
.kanban-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 10px;
  align-items: start;
  min-width: 900px;
}
.kanban-col {
  background: #fff;
  border: 0.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  overflow: hidden;
}
.kanban-col-header {
  padding: 10px 12px;
  border-bottom: 0.5px solid #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kanban-col-title {
  font-size: 12px;
  font-weight: 500;
  color: #1B2A4A;
}
.kanban-col-count {
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 20px;
  background: #F5F6F8;
  color: #9CA3AF;
}
.kanban-col-body {
  padding: 8px;
  min-height: 60px;
}
.kanban-card {
  background: #F5F6F8;
  border-radius: 7px;
  padding: 9px 10px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: box-shadow 150ms ease;
}
.kanban-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.kanban-card-name {
  font-size: 12px;
  font-weight: 500;
  color: #1B2A4A;
  margin-bottom: 2px;
}
.kanban-card-role  { font-size: 11px; color: #9CA3AF; }
.kanban-card-score {
  font-size: 11px;
  font-weight: 500;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.score-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.kanban-add-card {
  border: 0.5px dashed #E5E7EB;
  border-radius: 7px;
  padding: 8px 10px;
  text-align: center;
  font-size: 11px;
  color: #D1D5DB;
  cursor: pointer;
  background: transparent;
  width: 100%;
  font-family: inherit;
  transition: border-color 150ms ease, color 150ms ease;
}
.kanban-add-card:hover { border-color: #1B2A4A; color: #1B2A4A; }

/* ── PIPELINE TOOLBAR ──────────────────────────── */
.pipeline-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}
.pipeline-search-wrap {
  position: relative;
  flex: 1;
}
.pipeline-search-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  stroke: #9CA3AF;
  fill: none;
}
.pipeline-search {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border: 0.5px solid #E5E7EB;
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  background: #fff;
  color: #1B2A4A;
  outline: none;
  transition: border-color 150ms ease;
}
.pipeline-search:focus { border-color: #1B2A4A; }
.btn-toggle {
  background: #fff;
  border: 0.5px solid #E5E7EB;
  border-radius: 7px;
  padding: 7px 12px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6B7280;
  transition: all 150ms ease;
}
.btn-toggle:hover { opacity: 0.85; }
.btn-toggle.active { background: #1B2A4A; color: #fff; border-color: #1B2A4A; }
.btn-toggle svg { stroke: currentColor; fill: none; width: 12px; height: 12px; }

/* ── STEP WIZARD ───────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 0.5px solid #F3F4F6;
  flex-shrink: 0;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 500;
  flex-shrink: 0;
  line-height: 1;
}
.step-circle.idle   { background: #F5F6F8; color: #D1D5DB; border: 0.5px solid #E5E7EB; }
.step-circle.active { background: #1B2A4A; color: #fff; }
.step-circle.done   { background: #C9A84C; color: #fff; }
.step-label { font-size: 11px; }
.step-label.idle   { color: #D1D5DB; }
.step-label.active { color: #1B2A4A; font-weight: 500; }
.step-label.done   { color: #C9A84C; font-weight: 500; }
.step-line { flex: 1; height: 0.5px; background: #E5E7EB; margin: 0 8px; }

/* ── WEIGHT SLIDERS ────────────────────────────── */
.weight-row { margin-bottom: 14px; }
.weight-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.weight-label { font-size: 11px; font-weight: 500; color: #6B7280; }
.weight-value { font-size: 11px; font-weight: 500; color: #1B2A4A; }
.weight-slider { width: 100%; accent-color: #C9A84C; cursor: pointer; }
.weight-total {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 7px;
  text-align: right;
  margin-bottom: 12px;
}
.weight-total.ok  { background: #E1F5EE; color: #0F6E56; }
.weight-total.bad { background: #FCEBEB; color: #A32D2D; }
