/**
 * Design language inspired by the SaaS-dashboard reference the user
 * shared (sidebar + topbar shell, rounded card KPIs, soft shadows, a
 * donut gauge with a legend, a polished data table) -- not a pixel
 * clone of that specific (licensed) template, and intentionally missing
 * a couple of its decorative elements that would have no real data
 * behind them here: no "+10.2% vs last month" deltas (no historical
 * time-series in this data model to compute a real one from) and no
 * notification bell badge count (nothing generates notifications yet).
 * Everything else shown is driven by real data, same discipline as the
 * rest of this app.
 */
:root {
  --bg: #f1eff9;
  --surface: #ffffff;
  --surface-soft: #f7f6fc;
  --border: #e8e5f5;
  --fg: #211f36;
  --fg-muted: #8c89a6;
  --primary: #2c2a5e;
  --primary-soft: #edebfb;
  --accent: #6c63f0;
  --accent-blue: #4f8af7;
  --accent-orange: #f0974f;
  --good: #27ad76;
  --bad: #e2583f;
  --neutral: #f0974f;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(33, 31, 54, 0.04), 0 10px 28px rgba(33, 31, 54, 0.05);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Source Sans 3', Arial, sans-serif;
}

/* ---------------------------------------------------------------------
   App shell: sidebar + topbar, same shell for every role (the sidebar
   just has fewer items for roles with only one view).
--------------------------------------------------------------------- */
/* Fixed-height "window": the shell itself never scrolls, only
   .app-main does -- so the sidebar (and its Sign out button) stays put
   regardless of how long the current view's content is. */
.app-shell { height: 100vh; display: flex; overflow: hidden; }

.sidebar {
  width: 240px;
  flex-shrink: 0;
  height: 100%;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  gap: 24px;
  overflow-y: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.sidebar-close { display: none; margin-left: auto; border: none; background: transparent; color: var(--fg-muted); cursor: pointer; padding: 4px; }
.sidebar-backdrop { display: none; }
.sidebar-brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--primary);
  color: white; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.sidebar-brand-name { font-weight: 700; font-size: 1.05rem; color: var(--primary); }

.sidebar-section { margin-bottom: 18px; }
.sidebar-section-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--fg-muted); padding: 0 10px; margin-bottom: 8px;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--fg-muted); font-size: 0.9rem; font-weight: 600;
  border: none; background: transparent; cursor: pointer; text-align: left; width: 100%;
}
.sidebar-link:hover { background: var(--surface-soft); color: var(--fg); }
.sidebar-link-active { background: var(--primary-soft); color: var(--primary); }
.sidebar-link svg { flex-shrink: 0; }

.sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.sidebar-user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: var(--radius-md); background: var(--surface-soft);
}
.sidebar-user-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent);
  color: white; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}
.sidebar-user-meta { overflow: hidden; }
.sidebar-user-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 0.75rem; color: var(--fg-muted); }
.sidebar-signout {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--fg); font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.sidebar-signout:hover { background: var(--surface-soft); }

.app-body { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; }

.topbar {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 28px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.topbar-title { font-weight: 700; font-size: 1.1rem; }
.topbar-menu-btn {
  display: none; border: none; background: transparent; color: var(--fg);
  cursor: pointer; padding: 4px; flex-shrink: 0;
}
.topbar-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 7px 12px; color: var(--fg-muted); min-width: 220px;
}
.topbar-search input { border: none; background: transparent; outline: none; font-size: 0.88rem; color: var(--fg); width: 100%; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topbar-mode { font-size: 0.78rem; color: var(--fg-muted); }
.topbar-version { font-size: 0.72rem; color: var(--fg-muted); opacity: 0.7; }

.app-main { flex: 1; overflow-y: auto; padding: 28px; max-width: 1180px; margin: 0 auto; width: 100%; }

.view h2 { margin-top: 0; }

.muted { color: var(--fg-muted); }

.banner { padding: 10px 14px; border-radius: var(--radius-sm); margin: 10px 0; font-size: 0.9rem; }
.banner-error { background: #fdeceb; color: var(--bad); border: 1px solid #f6c9c2; }
.banner-error-inline { color: var(--bad); font-size: 0.8rem; }
.banner-success { background: #e7f7f0; color: var(--good); border: 1px solid #bfe9d6; }

/* ---------------------------------------------------------------------
   Login (unchanged structure, same card centered on the page)
--------------------------------------------------------------------- */
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 34px;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--fg-muted); }
.login-field input, .login-field select {
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--fg);
  width: 100%;
  box-sizing: border-box;
}
.login-demo-hint { font-size: 0.75rem; margin-top: 4px; }
.login-version { font-size: 0.7rem; margin-top: 8px; text-align: center; opacity: 0.6; }

/* ---------------------------------------------------------------------
   KPI stat cards
--------------------------------------------------------------------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 20px 0; }
.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}
.stat-tile-label { font-size: 0.78rem; color: var(--fg-muted); font-weight: 600; margin-bottom: 8px; }
.stat-tile-value { font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-tile-good .stat-tile-value { color: var(--good); }
.stat-tile-bad .stat-tile-value { color: var(--bad); }
.stat-tile-warn .stat-tile-value { color: var(--accent-orange); }

.toolbar { display: flex; align-items: center; gap: 10px; margin: 20px 0 12px; }
.toolbar label { font-size: 0.85rem; color: var(--fg-muted); }
.toolbar select, .toolbar input, .status-form input {
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------------
   Candidate table
--------------------------------------------------------------------- */
/* Every .table-card in the app (every report/list/history table, on
   every page) gets a fixed-height scroll window instead of pushing the
   rest of the page down indefinitely once its row count grows -- the
   header row stays pinned via position:sticky so it's still readable
   while scrolled. A table-card with few rows is simply shorter than
   the max-height and never shows a scrollbar, so this is a no-op for
   small tables. One global rule, not a per-page opt-in. */
.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); max-height: 420px; overflow-y: auto; overflow-x: hidden; }
.table-card thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-soft); }
.table-scroll-area { max-height: 420px; overflow-y: auto; }
.table-scroll-area table { width: 100%; }
.table-scroll-area thead th { position: sticky; top: 0; background: var(--surface-soft); z-index: 1; }
.candidate-table { width: 100%; border-collapse: collapse; }
.candidate-table th, .candidate-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.candidate-table th { background: var(--surface-soft); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-muted); font-weight: 700; }
.candidate-table th button {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: inherit; font: inherit;
  text-transform: inherit; letter-spacing: inherit; font-weight: inherit;
}
.candidate-table tbody tr:last-child td { border-bottom: none; }
.candidate-row-clickable { cursor: pointer; }
.candidate-row-clickable:hover { background: var(--surface-soft); }

.name-cell { display: flex; align-items: center; gap: 10px; }
.avatar-circle {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem;
}

.detail-panel { background: var(--surface-soft); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.detail-section h4 { margin: 0 0 8px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-muted); }
.detail-section p { margin: 4px 0; font-size: 0.88rem; }
.detail-section-risk { border-left: 3px solid var(--bad); padding-left: 12px; }
.detail-row { display: flex; gap: 8px; font-size: 0.85rem; margin: 4px 0; align-items: baseline; flex-wrap: wrap; }
.detail-label { color: var(--fg-muted); min-width: 160px; }
.detail-value { flex: 1; }
.detail-project { margin-bottom: 10px; font-size: 0.88rem; }
.detail-project:last-child { margin-bottom: 0; }

.chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chip { background: var(--surface-soft); border: 1px solid var(--border); color: var(--fg); border-radius: 999px; padding: 2px 10px; font-size: 0.78rem; }

.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.badge-good { background: #e7f7f0; color: var(--good); }
.badge-bad { background: #fdeceb; color: var(--bad); }
.badge-neutral { background: #fdf1e5; color: var(--neutral); }

/* ---------------------------------------------------------------------
   Patch Notes
---------------------------------------------------------------------- */
.patch-note-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; margin-bottom: 24px; }
.patch-note-row { padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.patch-note-row-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.patch-note-id { font-family: monospace; font-size: 0.78rem; color: var(--fg-muted); min-width: 70px; }
.patch-note-title { font-weight: 600; flex: 1; }
.patch-note-text { margin: 6px 0 0; font-size: 0.85rem; }

/* ---------------------------------------------------------------------
   Review queue
--------------------------------------------------------------------- */
.review-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.review-summary { margin: 6px 0 0; color: var(--fg-muted); font-size: 0.85rem; }
.review-card-actions { display: flex; align-items: center; gap: 8px; }
.review-card-checkbox { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--primary); cursor: pointer; }

.bulk-toolbar {
  display: flex; align-items: center; gap: 10px;
  background: var(--primary-soft); border-radius: var(--radius-sm);
  padding: 10px 14px; margin: 10px 0; font-size: 0.85rem; font-weight: 600; color: var(--primary);
}

/* ---------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------- */
.btn {
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg);
}
.btn:hover { background: var(--surface-soft); }
.btn-approve { background: var(--good); color: white; border-color: var(--good); }
.btn-reject { background: var(--bad); color: white; border-color: var(--bad); }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: #221f52; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------------------------------------------------------------------
   Candidate portal
--------------------------------------------------------------------- */
.portal-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.portal-section h3 { margin-top: 0; }

.status-form { display: flex; gap: 8px; }
.status-result { margin-top: 14px; }
.status-stage-timeline { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.status-stage-timeline h4 { margin: 0 0 4px; font-size: 0.85rem; color: var(--fg-muted); }

.application-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; max-width: 640px; }
.application-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.application-form textarea { padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; font-family: inherit; resize: vertical; width: 100%; box-sizing: border-box; }
.application-form .btn { align-self: flex-start; }
.application-form input[type="file"] { font-size: 0.85rem; color: var(--fg-muted); }
.application-form input[type="file"]::file-selector-button {
  padding: 8px 16px;
  margin-right: 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.application-form input[type="file"]::file-selector-button:hover { background: #221f52; }

/* ---------------------------------------------------------------------
   Reports: chart grid + the donut-gauge "source" style card
--------------------------------------------------------------------- */
.chart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}
.chart-card-wide { grid-column: span 2; }
.chart-card h4 { margin: 0 0 14px; font-size: 0.85rem; color: var(--fg-muted); font-weight: 700; }
.chart-card-canvas { position: relative; height: 260px; }

.gauge-card { display: flex; flex-direction: column; align-items: center; }
.gauge-wrap { position: relative; width: 100%; max-width: 240px; height: 150px; }
.gauge-wrap canvas { width: 100% !important; height: 100% !important; }
.gauge-center { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; pointer-events: none; }
.gauge-center-label { font-size: 0.7rem; color: var(--fg-muted); }
.gauge-center-value { font-size: 1.5rem; font-weight: 700; }
.gauge-legend { width: 100%; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.gauge-legend-row { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.gauge-legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.gauge-legend-label { flex: 1; color: var(--fg); }
.gauge-legend-count { font-weight: 700; }
.gauge-legend-pct { color: var(--fg-muted); min-width: 38px; text-align: right; }

/* ---------------------------------------------------------------------
   Applicant Pipeline (Kanban board)
--------------------------------------------------------------------- */
.bulk-approvals-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bulk-approvals-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.bulk-approvals-header h4 { margin: 0; }
.bulk-approvals-reviewer { flex-direction: row; align-items: center; gap: 8px; font-size: 0.82rem; }
.bulk-approvals-reviewer input { width: 180px; }
.bulk-approval-card {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 10px 14px;
}

.pipeline-board { display: flex; gap: 16px; margin-top: 18px; overflow-x: auto; padding-bottom: 8px; }
.pipeline-column {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  max-height: 560px;
}
.pipeline-column-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; font-weight: 700; font-size: 0.88rem; border-bottom: 1px solid var(--border);
}
.pipeline-column-count {
  background: var(--primary-soft); color: var(--primary); border-radius: 999px;
  padding: 2px 9px; font-size: 0.75rem; font-weight: 700;
}
.pipeline-column-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.pipeline-empty { text-align: center; font-size: 0.82rem; margin: 12px 0; }
.pipeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pipeline-card-name { font-size: 0.85rem; font-weight: 600; }
.pipeline-card-detail { font-size: 0.75rem; color: var(--fg-muted); margin-top: 1px; }
.pipeline-card-clickable { cursor: pointer; }
.pipeline-card-clickable:hover { border-color: var(--accent); }

@media (max-width: 900px) {
  /* The sidebar becomes a slide-in drawer (off-canvas by default) instead
     of disappearing outright, so mobile users still have a way to
     navigate -- opened via .topbar-menu-btn, closed via .sidebar-close,
     the backdrop, or picking a nav link (see App.jsx's sidebarOpen state). */
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 30;
    width: 260px; max-width: 82vw;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-card);
  }
  .sidebar-open { transform: translateX(0); }
  .sidebar-close { display: inline-flex; align-items: center; justify-content: center; }
  .sidebar-backdrop {
    display: block; position: fixed; inset: 0; z-index: 29;
    background: rgba(15, 23, 42, 0.45);
  }
  .topbar-menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .chart-card-wide { grid-column: span 1; }
}

@media (max-width: 600px) {
  .app-main { padding: 16px; }
  .topbar { padding: 12px 16px; }
  .topbar-search { display: none; }
  .review-card { flex-direction: column; align-items: flex-start; }
  .application-form-grid { grid-template-columns: 1fr; }
  .chart-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------
   Modals (StageTimelineModal, PipelineConfigModal)
--------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(33, 31, 54, 0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; z-index: 100;
}
.modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 22px 24px;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.modal-header h3 { margin: 0; }
.modal-close-btn {
  border: none; background: transparent; font-size: 1.4rem; line-height: 1; cursor: pointer;
  color: var(--fg-muted); padding: 2px 6px; border-radius: var(--radius-sm);
}
.modal-close-btn:hover { background: var(--surface-soft); color: var(--fg); }

.stepper { display: flex; flex-direction: column; margin-top: 16px; }
.stepper-item { display: flex; gap: 12px; position: relative; padding-bottom: 20px; }
.stepper-item:last-child { padding-bottom: 0; }
.stepper-item:not(:last-child)::before {
  content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: var(--border);
}
.stepper-item-reached:not(:last-child)::before { background: var(--good); }
.stepper-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--border);
  margin-top: 3px; flex-shrink: 0; z-index: 1;
}
.stepper-item-reached .stepper-dot { background: var(--good); }
.stepper-item-current .stepper-dot { box-shadow: 0 0 0 3px var(--primary-soft); background: var(--primary); }
.stepper-label { font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stepper-item-reached .stepper-label { color: var(--fg); }
.stepper-item:not(.stepper-item-reached) .stepper-label { color: var(--fg-muted); font-weight: 500; }
.stepper-meta { font-size: 0.78rem; color: var(--fg-muted); margin-top: 2px; }
.stepper-notes { margin-top: 2px; font-style: italic; }

.perf-badge { font-size: 0.68rem; padding: 2px 8px; }
.perf-excellent { background: #e7f7f0; color: var(--good); }
.perf-good { background: #eaf1fd; color: var(--accent-blue); }
.perf-average { background: #fdf1e5; color: var(--neutral); }
.perf-poor { background: #fdeceb; color: var(--bad); }

.stage-advance-form { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.stage-advance-form h4 { margin: 0; font-size: 0.9rem; }
.stage-advance-form p.muted { margin: 0; font-size: 0.8rem; }
.stage-advance-form textarea {
  padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-family: inherit; resize: vertical; width: 100%; box-sizing: border-box;
}
.stage-advance-blocked { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }

.interview-questions-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.interview-questions-section h4 { margin: 0; font-size: 0.9rem; }
.interview-questions-section p.muted { margin: 0; font-size: 0.8rem; }
.interview-questions-list { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; }

.candidate-chat-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.candidate-chat-section h4 { margin: 0; font-size: 0.9rem; }
.candidate-chat-section p.muted { margin: 0; font-size: 0.8rem; }
.candidate-chat-history { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; }
.candidate-chat-message { padding: 8px 12px; border-radius: var(--radius-sm); font-size: 0.88rem; max-width: 85%; }
.candidate-chat-question { align-self: flex-end; background: var(--primary-soft); color: var(--primary); }
.candidate-chat-answer { align-self: flex-start; background: var(--surface-soft); border: 1px solid var(--border); }
.candidate-chat-form { display: flex; gap: 8px; }
.candidate-chat-form input { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.88rem; }

.stage-config-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.stage-config-row { display: flex; gap: 6px; align-items: center; }
.stage-config-row input { flex: 1; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.88rem; }
.stage-config-btn { padding: 6px 9px; font-size: 0.78rem; }
.stage-config-actions { margin-top: 16px; }

/* Admin Panel: User/Role Management (UserManagement.jsx, RoleManagement.jsx) */
.review-card-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; cursor: pointer; }
.review-card-checkbox-label input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.role-permission-editor { padding: 16px 4px; display: flex; flex-direction: column; gap: 16px; }
.permission-module-group { display: flex; flex-direction: column; gap: 6px; }
.permission-module-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-muted); font-weight: 700; margin-bottom: 2px; }

/* AI Observability Center / Azure Service Hub (AIObservabilityCenter.jsx, AzureServiceHub.jsx) */
.subsection-heading { font-size: 1rem; font-weight: 700; margin: 24px 0 10px; }
.integration-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.integration-card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.integration-card-name { font-weight: 700; }
.integration-card-category { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fg-muted); font-weight: 700; }
.integration-card-secrets { display: flex; flex-wrap: wrap; gap: 6px; }
.integration-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 14px; }
