/* ============================================
   css/components/rh.css — Design V2 overhaul
   ============================================ */

/* Page wrapper */
#view-rh {
  padding: 22px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: var(--font-ui, Manrope, sans-serif);
}

/* Page header row */
.rh-page-header {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.rh-page-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rh-page-title {
  margin: 0;
  font: 800 23px var(--font-ui, Manrope);
  letter-spacing: -0.025em;
  color: var(--text);
}

.rh-page-subtitle {
  margin: 0;
  font: 500 13px var(--font-ui, Manrope);
  color: var(--muted);
}

/* "Novo candidato" button */
.rh-btn-new {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 16px;
  background: var(--brand);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font: 700 13px var(--font-ui, Manrope);
  cursor: pointer;
  box-shadow: 0 6px 16px -8px var(--brand);
  transition: filter 0.12s;
}
.rh-btn-new:hover { filter: brightness(1.08); }

/* Pipeline board */
#rh-pipeline {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 10px;
}

/* Column */
.rh-col {
  flex: none;
  width: 286px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  background: transparent;
  border-radius: 0;
  min-height: 0;
}

/* Column header — bottom border colored, NOT top border */
.rh-col-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 10px;
  border-top: none;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
}

.rh-col-title {
  font: 800 12.5px var(--font-ui, Manrope);
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Count badge: filled pill with stage color */
.rh-col-count {
  margin-left: auto;
  font: 800 11px var(--font-ui, Manrope);
  min-width: 22px;
  text-align: center;
  padding: 2px 8px;
  border-radius: 20px;
  background: currentColor;
  color: #fff;
  opacity: 1;
  /* Note: JS sets style.background and style.color on .rh-col-count to the stage color */
}

/* Column body */
.rh-col-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  min-height: 100px;
}

/* Drag-over highlight */
.rh-col-over { background: rgba(0,61,165,0.05); border-radius: var(--radius-sm); }

/* Empty state */
.rh-col-empty {
  border: 1.5px dashed var(--border-strong, #D4DAE3);
  border-radius: var(--radius-sm);
  padding: 24px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2, #98A2B3);
  font: 600 12px var(--font-ui, Manrope);
  opacity: 1;
  font-style: normal;
}

/* Candidate card */
.rh-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
  user-select: none;
}
.rh-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-strong, #D4DAE3);
  transform: translateY(-1px);
}
.rh-card-dragging { opacity: 0.4; transform: none; }
.rh-card-locked { border-left: 3px solid var(--accent); }

/* Card content */
.rh-card-nome {
  font: 700 13.5px var(--font-ui, Manrope);
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

.rh-card-tel {
  font: 600 12px 'JetBrains Mono', monospace;
  color: var(--muted);
  opacity: 1;
}

/* Role + tempo row */
.rh-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.rh-card-vaga {
  font: 600 11px var(--font-ui, Manrope);
  color: var(--text-2, #33425A);
  background: var(--surface-2, #F3F6FA);
  padding: 2px 9px;
  border-radius: 20px;
  border: 1px solid var(--border);
  opacity: 1;
  font-size: 11px;
}

.rh-card-tempo {
  font: 600 11px var(--font-ui, Manrope);
  color: var(--accent);
  opacity: 1;
  font-size: 11px;
}

.rh-card-lock {
  font: 600 11px var(--font-ui, Manrope);
  color: var(--accent);
  margin-top: 2px;
  opacity: 1;
}

/* ============================================
   Modal styles (preserved from legacy rh.css)
   ============================================ */

/* Modal overlay */
#rh-modal-overlay.hidden { display: none; }
#rh-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.rh-modal {
  background: var(--surface, #fff);
  border-radius: 8px;
  max-width: 720px; width: 90vw; max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.rh-modal .modal-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.rh-modal .modal-body {
  overflow-y: auto;
  padding: 1rem;
  flex: 1;
}
.rh-modal-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.rh-tab {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.rh-tab.active {
  border-bottom-color: var(--brand);
  font-weight: 600;
}
.rh-chat { display: flex; flex-direction: column; gap: 0.5rem; }
.rh-msg {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  max-width: 75%;
  font-size: 0.9rem;
}
.rh-msg-user { background: #E3F2FD; align-self: flex-end; }
.rh-msg-assistant { background: var(--surface-2, #F1F3F5); align-self: flex-start; }
.rh-msg-time { font-size: 0.7rem; opacity: 0.6; margin-top: 0.25rem; }
.rh-dados dt { font-weight: 600; margin-top: 0.5rem; }
.rh-dados dd { margin-left: 0; }
.rh-btn-override {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent, #E17055); color: #fff;
  border: none; border-radius: 4px;
  cursor: pointer;
}
.rh-confs { list-style: none; padding: 0; }
.rh-confs li {
  border-left: 3px solid var(--brand, #74B9FF);
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--surface-2, #F8F9FA);
  border-radius: 0 4px 4px 0;
}
.rh-conf-tipo { font-weight: 600; }
.rh-conf-msg, .rh-conf-time, .rh-conf-resposta {
  font-size: 0.85rem;
  opacity: 0.8;
}
.rh-loading, .rh-empty, .rh-error {
  padding: 2rem;
  text-align: center;
  opacity: 0.6;
}
