/* Pipeline tracker — uses Carelynx theme tokens from theme.css */

/* ─── Page Layout ─── */
.pipeline-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Header Bar ─── */
.pipeline-header {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--border);
}
.pipeline-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.pipeline-header h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.75rem;
  color: var(--fg);
}
.pipeline-header p {
  color: var(--fg-muted);
  font-size: 0.875rem;
  margin-top: 2px;
}

/* ─── Filters ─── */
.filters-bar {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}
.filters-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-group label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.filter-group select,
.filter-group input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  color: var(--fg);
  min-width: 160px;
}
.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11, 92, 76, 0.12);
}
.filter-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
}
.btn {
  padding: 9px 18px;
  border-radius: 6px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background 0.15s;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-dark);
}
.btn-ghost {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--fg);
}

/* ─── Pipeline Grid ─── */
.pipeline-content {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
  width: 100%;
}

.pipeline-empty {
  text-align: center;
  padding: 80px 32px;
  color: var(--fg-muted);
}
.pipeline-empty h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--fg);
  margin-bottom: 12px;
}

.pipeline-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(26,23,20,0.06);
}
.pipeline-table th {
  background: var(--bg-alt);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
}
.pipeline-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: 0.9rem;
}
.pipeline-table tr:last-child td {
  border-bottom: none;
}
.pipeline-table tr:hover td {
  background: rgba(247,243,236,0.5);
}

/* Candidate name */
.candidate-name {
  font-weight: 500;
  color: var(--fg);
}

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-new        { background: rgba(11,92,76,0.10); color: var(--teal); }
.status-contacted  { background: rgba(196,99,42,0.10); color: var(--coral); }
.status-interview  { background: rgba(13,122,98,0.10); color: var(--teal-light); }
.status-placed     { background: rgba(8,61,51,0.10); color: var(--teal-dark); }
.status-passed     { background: rgba(107,98,87,0.10); color: var(--fg-muted); }
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Row actions */
.row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.row-actions button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 0.8rem;
  color: var(--fg-muted);
  transition: background 0.12s, color 0.12s;
}
.row-actions button:hover {
  background: var(--bg-alt);
  color: var(--fg);
}
.row-actions button.delete-btn:hover {
  background: rgba(196,99,42,0.10);
  color: var(--coral);
}

/* Status change inline select */
.status-select {
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--white);
  font-size: 0.8rem;
  color: var(--fg);
  cursor: pointer;
}
.status-select:focus {
  outline: none;
  border-color: var(--teal);
}

/* ─── Add Candidate Modal ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,23,20,0.4);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(26,23,20,0.15);
}
.modal h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: var(--fg);
}
.form-field {
  margin-bottom: 16px;
}
.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 6px;
}
.form-field input,
.form-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.9rem;
  color: var(--fg);
  background: var(--bg);
}
.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(11,92,76,0.10);
}
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

/* ─── Stage column layout (optional Kanban) ─── */
/* For now, using a table. Kanban can be added later. */