/* ──────────────────────────────────────────────────────────────────────────
   Legaya — Design System
   Brand: teal #1a7070  |  brown #7a3308  |  cream #ede9e0
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --teal:        #1a7070;
  --teal-dark:   #155858;
  --teal-light:  #e0efef;
  --gold:        #7a3308;
  --gold-dark:   #612808;
  --black:       #1a1a1a;
  --cream:       #ede9e0;
  --cream-dark:  #e0dbd0;
  --gray-900:    #111827;
  --gray-800:    #1f2937;
  --gray-700:    #374151;
  --gray-600:    #4b5563;
  --gray-500:    #6b7280;
  --gray-400:    #9ca3af;
  --gray-300:    #d1d5db;
  --gray-200:    #e5e7eb;
  --gray-100:    #f3f4f6;
  --gray-50:     #f9fafb;
  --white:       #ffffff;
  --danger:      #ef4444;
  --success:     #10b981;
  --warning:     #f59e0b;
  --sidebar-w:   240px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Nunito', 'Inter', sans-serif;
  font-size: 14px;
  color: var(--gray-900);
  background: var(--white);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Visibility ── */
.hidden { display: none !important; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ══════════════════════════════════════════════════════════════════════════
   TOPBAR
   ══════════════════════════════════════════════════════════════════════════ */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 60px;
  background: #ffffff; color: var(--gray-900);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; z-index: 100;
}
.topbar-brand {
  display: flex; align-items: center; gap: 10px;
  user-select: none; text-decoration: none;
}
.topbar-logo-img {
  height: 38px; width: auto; flex-shrink: 0;
}
.topbar-brand-name {
  height: 22px; width: auto;
}
.topbar-right { display: flex; align-items: center; gap: 4px; }
.topbar-user { font-size: 13px; font-weight: 500; color: var(--gray-700); }
.topbar-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; cursor: pointer; flex-shrink: 0;
  user-select: none; overflow: hidden;
}
.topbar-icon-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: none; background: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); transition: background 0.15s, color 0.15s;
}
.topbar-icon-btn:hover { background: var(--gray-100); color: var(--gray-700); }

/* ── User menu dropdown ── */
.user-menu { position: relative; display: flex; align-items: center; }
.user-menu-trigger {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 10px;
  transition: background 0.15s;
}
.user-menu-trigger:hover { background: var(--gray-100); }
.user-menu-caret { color: var(--gray-400); flex-shrink: 0; transition: transform 0.2s; }
.user-menu-trigger.open .user-menu-caret { transform: rotate(180deg); }
.user-menu-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: white; border: 1px solid var(--gray-200); border-radius: 12px;
  min-width: 210px; box-shadow: 0 8px 28px rgba(0,0,0,.15);
  z-index: 1000; display: none; overflow: hidden;
}
.user-menu-dropdown.open { display: block; }
.user-menu-info {
  padding: 12px 16px; border-bottom: 1px solid var(--gray-100);
  font-size: 12px; color: var(--gray-500); line-height: 1.4;
}
.user-menu-info strong { display: block; font-size: 13px; color: var(--gray-700); margin-bottom: 2px; }
.user-menu-item {
  padding: 10px 16px; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  color: var(--gray-700); transition: background 0.1s;
}
.user-menu-item:hover { background: var(--gray-50); }
.user-menu-item svg { flex-shrink: 0; }
.user-menu-item.danger { color: #dc2626; }
.user-menu-item.danger:hover { background: #fef2f2; }
.user-menu-divider { height: 1px; background: var(--gray-100); margin: 4px 0; }

/* Notification bell */
.notif-menu { position: relative; }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--danger); color: white;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  padding: 0 3px; pointer-events: none; border: 2px solid white;
}
.notif-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 340px; background: white; border: 1px solid var(--gray-200);
  border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.12);
  z-index: 1001; overflow: hidden;
}
.notif-dropdown-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--gray-200);
}
.notif-dropdown-footer {
  padding: 8px; border-top: 1px solid var(--gray-200);
}
.notif-item {
  padding: 12px 16px; border-bottom: 1px solid var(--gray-100);
  cursor: pointer; transition: background .15s;
}
.notif-item:hover { background: var(--gray-50); }
.notif-item.unread { background: var(--teal-light); }
.notif-item-title { font-size: 13px; font-weight: 600; color: var(--gray-900); margin-bottom: 2px; }
.notif-item-body { font-size: 12px; color: var(--gray-500); }
.notif-item-time { font-size: 11px; color: var(--gray-400); margin-top: 3px; }
.msg-inbox-item { display:flex; align-items:flex-start; gap:12px; padding:14px 18px; border-bottom:1px solid var(--gray-100); cursor:pointer; transition:background .12s; }
.msg-inbox-item:hover { background:var(--gray-50); }
.msg-inbox-item:last-child { border-bottom:none; }
.msg-inbox-avatar { width:40px; height:40px; border-radius:50%; background:var(--teal-light); color:var(--teal); font-weight:700; font-size:16px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* ══════════════════════════════════════════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════════════════════════════════════════ */
#sidebar {
  position: fixed; top: 60px; left: 0; bottom: 0;
  width: var(--sidebar-w); background: var(--gray-50);
  border-right: 1px solid var(--gray-200);
  overflow-y: auto; z-index: 50; padding: 12px 0;
}
.nav-section {
  padding: 12px 16px 4px;
  font-size: 11px; font-weight: 600;
  color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px; margin: 1px 8px; border-radius: 8px;
  cursor: pointer; color: var(--gray-700); font-size: 14px;
  transition: background 0.12s, color 0.12s; user-select: none;
}
.nav-item:hover { background: var(--gray-200); color: var(--gray-900); }
.nav-item.active { background: var(--teal); color: white; }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════════════════════════════════════ */
#main {
  margin-top: 60px;
  margin-left: var(--sidebar-w);
  padding: 28px;
  min-height: calc(100vh - 60px);
  background: var(--gray-50);
}
.page { display: none; }
.page.active { display: block; }

.page-header { margin-bottom: 24px; }
.page-header-row {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px;
}
.page-title { font-size: 22px; font-weight: 700; color: var(--gray-900); }
.page-subtitle { font-size: 14px; color: var(--gray-500); margin-top: 4px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 8px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  border: none; transition: all 0.15s; white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary  { background: var(--teal); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--teal-dark); }
.btn-gold     { background: #edf7f7; color: var(--teal); border: 1px solid var(--teal-light); }
.btn-gold:hover:not(:disabled) { background: var(--teal-light); }
.btn-outline  { background: white; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-outline:hover:not(:disabled) { background: var(--teal-light); }
.btn-indigo   { background: var(--teal); color: white; }
.btn-indigo:hover:not(:disabled) { background: var(--teal-dark); }
.btn-ghost    { background: transparent; color: var(--gray-600); }
.btn-ghost:hover:not(:disabled) { background: var(--gray-100); color: var(--gray-900); }
.btn-danger   { background: var(--danger); color: white; }
.btn-danger:hover:not(:disabled) { background: #dc2626; }
.btn-sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn-icon { padding: 6px; border-radius: 6px; }

/* ══════════════════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ══════════════════════════════════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }
.form-label { font-size: 13px; font-weight: 500; color: var(--gray-700); }
.ai-label-row { display: flex; align-items: center; justify-content: space-between; }
.btn-ai-inline {
  background: none; border: 1px solid var(--teal); border-radius: 20px;
  color: var(--teal); font-size: 11px; font-weight: 600; padding: 1px 10px;
  cursor: pointer; line-height: 1.6; transition: background .15s, color .15s;
}
.btn-ai-inline:hover { background: var(--teal); color: #fff; }
.form-input, .form-select, .form-textarea {
  padding: 9px 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px; font-size: 14px;
  transition: border-color 0.15s;
  background: white; color: var(--gray-900); width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(4,129,139,0.1);
}
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-error { font-size: 12px; color: var(--danger); }
.form-hint  { font-size: 12px; color: var(--gray-400); }

/* Tags input */
.tags-wrap {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 7px 10px; border: 1.5px solid var(--gray-300);
  border-radius: 8px; min-height: 42px; cursor: text; background: white;
}
.tags-wrap:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(4,129,139,0.1); }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--teal-light); color: var(--teal);
  padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 500;
}
.tag-remove { cursor: pointer; font-size: 14px; line-height: 1; opacity: 0.7; }
.tag-remove:hover { opacity: 1; }
.tag-input {
  border: none; outline: none; font-size: 14px;
  min-width: 80px; flex: 1; background: transparent;
}

/* ══════════════════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════════════════ */
.card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 20px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.card-title { font-size: 16px; font-weight: 600; color: var(--gray-900); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 20px;
}
.stat-icon { font-size: 22px; margin-bottom: 8px; }
.stat-value { font-size: 30px; font-weight: 700; color: var(--gray-900); line-height: 1; }
.stat-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }

/* ══════════════════════════════════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.badge-teal   { background: var(--teal-light); color: var(--teal); }
.badge-gold   { background: #fef9c3; color: #78350f; }
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-red    { background: #fee2e2; color: #991b1b; }
.badge-gray   { background: var(--gray-100); color: var(--gray-600); }
.badge-orange { background: #fed7aa; color: #92400e; }
.badge-blue   { background: #dbeafe; color: #1e40af; }

/* ══════════════════════════════════════════════════════════════════════════
   TABLE
   ══════════════════════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--gray-200); background: white; }
table { width: 100%; border-collapse: collapse; }
th {
  padding: 10px 14px; text-align: left;
  font-size: 12px; font-weight: 600; color: var(--gray-500);
  border-bottom: 1.5px solid var(--gray-200); background: var(--gray-50);
  white-space: nowrap;
}
td { padding: 13px 14px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--gray-50); }

/* ══════════════════════════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal {
  background: white; border-radius: 16px; padding: 28px;
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; position: relative;
}
.modal-lg  { max-width: 760px; }
.modal-xl  { max-width: 960px; }
.modal-sm  { max-width: 400px; }
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close {
  background: none; border: none; cursor: pointer; padding: 4px 6px;
  color: var(--gray-500); border-radius: 6px; font-size: 18px; line-height: 1;
}
.modal-close:hover { background: var(--gray-100); color: var(--gray-900); }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

/* ══════════════════════════════════════════════════════════════════════════
   AUTH PAGE — Legaya Brand
   ══════════════════════════════════════════════════════════════════════════ */
#view-auth {
  min-height: 100vh; display: flex;
  background: var(--teal);
  position: relative; overflow: hidden;
}
/* Círculos decorativos no pai — cruzam os dois painéis sem corte */
#view-auth::before {
  content: '';
  position: absolute; top: -80px; left: -80px;
  width: 340px; height: 340px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}
#view-auth::after {
  content: '';
  position: absolute; bottom: -100px; right: -100px;
  width: 460px; height: 460px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

/* Left panel — brand */
.auth-left {
  width: 45%; background: transparent;
  display: flex; flex-direction: column;
  justify-content: center; padding: 60px 56px;
  position: relative;
}
.auth-brand-logo {
  margin-bottom: 52px;
}
.auth-brand-img {
  width: 140px;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.15));
}
.auth-left-title {
  font-family: 'Nunito', sans-serif;
  font-size: 38px; font-weight: 800; line-height: 1.15;
  color: white; margin-bottom: 20px;
}
.auth-left-subtitle {
  font-size: 15px; color: rgba(255,255,255,0.75);
  line-height: 1.65; max-width: 340px; margin-bottom: 48px;
}
.auth-left-pills {
  display: flex; flex-direction: column; gap: 12px;
}
.auth-left-pill {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.85);
}
.auth-left-pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cream); flex-shrink: 0;
}

/* Right panel */
.auth-right {
  flex: 1; background: transparent;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 24px;
}
.auth-box {
  background: white; border-radius: 20px; padding: 40px;
  width: 100%; max-width: 440px;
  box-shadow: 0 12px 48px rgba(0,0,0,.18);
}
.auth-box-title {
  font-family: 'Nunito', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--gray-900);
  margin-bottom: 4px;
}
.auth-box-sub {
  font-size: 13px; color: var(--gray-500); margin-bottom: 28px;
}
.auth-tabs { display: flex; margin-bottom: 28px; border-bottom: 2px solid var(--gray-200); }
.auth-tab {
  padding: 10px 20px; cursor: pointer; font-weight: 600;
  color: var(--gray-400); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.15s; font-size: 14px;
}
.auth-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.auth-type-row { display: flex; gap: 12px; margin-bottom: 20px; }
.auth-type-btn {
  flex: 1; padding: 12px; border: 2px solid var(--gray-200);
  border-radius: 10px; cursor: pointer; text-align: center;
  font-size: 14px; font-weight: 600; transition: all 0.15s;
  background: white; display: flex; flex-direction: column;
  align-items: center; gap: 4px;
}
.auth-type-btn span { font-size: 22px; }
.auth-type-btn.active { border-color: var(--teal); background: var(--teal-light); color: var(--teal); }

/* Responsive */
@media (max-width: 860px) {
  #view-auth { flex-direction: column; }
  .auth-left { width: 100%; padding: 36px 28px; min-height: auto; }
  .auth-left-title { font-size: 26px; }
  .auth-left-pills { display: none; }
  .auth-right { padding: 28px 16px; }
  .auth-brand-img { width: 110px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   KANBAN PIPELINE
   ══════════════════════════════════════════════════════════════════════════ */
.kanban-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; }
.kanban-col {
  min-width: 210px; max-width: 210px;
  background: var(--gray-100); border-radius: 12px;
  padding: 10px; display: flex; flex-direction: column; gap: 8px;
  flex-shrink: 0;
}
.kanban-col-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 4px; margin-bottom: 2px;
}
.kanban-col-title {
  font-size: 11px; font-weight: 700; color: var(--gray-600);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.kanban-col-count {
  font-size: 11px; background: white; padding: 1px 7px;
  border-radius: 20px; color: var(--gray-600); font-weight: 700;
}
.kanban-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: 10px; padding: 12px; cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}
.kanban-card:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.1); transform: translateY(-1px); }
.kanban-card-name { font-size: 13px; font-weight: 600; color: var(--gray-900); }
.kanban-card-role { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.kanban-card-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.kanban-card-actions { display:flex; margin-top:8px; opacity:0; transition:opacity .15s; }
.kanban-card:hover .kanban-card-actions { opacity:1; }
.score-chip {
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px;
}
.score-high { background: #d1fae5; color: #065f46; }
.score-med  { background: #fef9c3; color: #78350f; }
.score-low  { background: #fee2e2; color: #991b1b; }

/* ══════════════════════════════════════════════════════════════════════════
   CHAT (IA / Entrevista)
   ══════════════════════════════════════════════════════════════════════════ */
.chat-box {
  display: flex; flex-direction: column;
  border: 1.5px solid var(--gray-200); border-radius: 12px;
  background: white; overflow: hidden;
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 320px; max-height: 420px;
}
.chat-msg { display: flex; gap: 8px; max-width: 88%; }
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-bubble {
  padding: 10px 14px; border-radius: 12px;
  font-size: 14px; line-height: 1.55; white-space: pre-wrap;
}
.chat-msg.ai .chat-bubble {
  background: var(--gray-100); color: var(--gray-900);
  border-radius: 2px 12px 12px 12px;
}
.chat-msg.user .chat-bubble {
  background: var(--teal); color: white;
  border-radius: 12px 2px 12px 12px;
}
.chat-input-row {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid var(--gray-200); background: var(--gray-50);
}
.chat-input {
  flex: 1; padding: 9px 12px; border: 1.5px solid var(--gray-300);
  border-radius: 8px; font-size: 14px; resize: none; outline: none;
  background: white; max-height: 120px;
}
.chat-input:focus { border-color: var(--teal); }

/* ══════════════════════════════════════════════════════════════════════════
   INTERVIEW PROGRESS
   ══════════════════════════════════════════════════════════════════════════ */
.iv-progress { display: flex; gap: 4px; margin-bottom: 16px; }
.iv-dot { height: 6px; flex: 1; border-radius: 3px; background: var(--gray-200); transition: background 0.3s; }
.iv-dot.done    { background: var(--teal); }
.iv-dot.current { background: var(--gold); }

/* Typing indicator */
.typing-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gray-400); margin: 0 2px;
  animation: iv-bounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes iv-bounce { 0%,60%,100% { transform:translateY(0); } 30% { transform:translateY(-6px); } }

/* ══════════════════════════════════════════════════════════════════════════
   APPLICATION STEPPER (candidato)
   ══════════════════════════════════════════════════════════════════════════ */
.stepper { display: flex; gap: 0; position: relative; margin: 12px 0; }
.step {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 5px; position: relative;
}
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 13px; left: 50%; right: -50%;
  height: 2px; background: var(--gray-200); z-index: 0;
}
.step.done::after { background: var(--teal); }
.step-circle {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--gray-200); background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--gray-400); z-index: 1;
}
.step.done .step-circle    { border-color: var(--teal); background: var(--teal); color: white; }
.step.current .step-circle { border-color: var(--gold); color: var(--gold-dark); }
.step-name { font-size: 9px; text-align: center; color: var(--gray-400); line-height: 1.2; }
.step.done .step-name    { color: var(--teal); font-weight: 600; }
.step.current .step-name { color: var(--gold-dark); font-weight: 600; }

/* ══════════════════════════════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════════════════════════════ */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 999; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 12px 18px; border-radius: 10px; font-size: 14px; font-weight: 500;
  max-width: 320px; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: toastIn 0.3s ease; pointer-events: all;
}
.toast-success { background: #064e3b; color: white; }
.toast-error   { background: #7f1d1d; color: white; }
.toast-info    { background: var(--gray-900); color: white; }
@keyframes toastIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════════════════
   LOADING / SPINNER
   ══════════════════════════════════════════════════════════════════════════ */
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  animation: spin 0.6s linear infinite; display: inline-block;
}
.spinner-dark {
  border-color: var(--gray-200);
  border-top-color: var(--teal);
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  display: flex; align-items: center; justify-content: center;
  padding: 60px; color: var(--gray-400);
}

/* ══════════════════════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════════════════════ */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  padding: 60px 20px; text-align: center; gap: 12px;
}
.empty-state-icon { font-size: 48px; opacity: 0.25; }
.empty-state-title { font-size: 16px; font-weight: 600; color: var(--gray-700); }
.empty-state-text  { font-size: 14px; color: var(--gray-400); max-width: 280px; }

/* ══════════════════════════════════════════════════════════════════════════
   CANDIDATE CARD (banco de talentos / perfil modal)
   ══════════════════════════════════════════════════════════════════════════ */
.cand-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal-light); border: 2px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--teal);
}
.cand-avatar-lg {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--teal-light); border: 3px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; color: var(--teal);
}
.cand-avatar-lg img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}

/* ══════════════════════════════════════════════════════════════════════════
   JOB CARD (candidato)
   ══════════════════════════════════════════════════════════════════════════ */
.job-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 18px;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.job-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: var(--teal); }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 16px; }

/* ══════════════════════════════════════════════════════════════════════════
   FILTER BAR
   ══════════════════════════════════════════════════════════════════════════ */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 20px; align-items: center;
}
.filter-bar .form-input,
.filter-bar .form-select { width: auto; flex: 1; min-width: 140px; }

/* Painel de filtros — Explorar Vagas */
.vp-filter-panel {
  background: white; border: 1px solid var(--gray-200); border-radius: 12px;
  padding: 16px; margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.vp-filter-row {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin-bottom: 10px;
}
.vp-filter-row:last-of-type { margin-bottom: 0; }
.vp-filter-row .form-input,
.vp-filter-row .form-select { flex: 1; min-width: 130px; }
.vp-search-input { flex: 2; min-width: 220px; }

/* ══════════════════════════════════════════════════════════════════════════
   DIVIDER
   ══════════════════════════════════════════════════════════════════════════ */
.divider { height: 1px; background: var(--gray-200); margin: 16px 0; }

/* ══════════════════════════════════════════════════════════════════════════
   HAMBURGER / MOBILE DRAWER
   ══════════════════════════════════════════════════════════════════════════ */
#btn-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 7px; border-radius: 8px; margin-right: 4px;
  color: var(--gray-700); transition: background 0.15s;
  align-items: center; justify-content: center; flex-shrink: 0;
}
#btn-hamburger:hover { background: var(--gray-100); }

#sidebar-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 49;
}
#sidebar-overlay.visible { display: block; }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  /* Sidebar drawer */
  #sidebar { width: 240px; transform: translateX(-240px); transition: transform 0.25s; z-index: 51; }
  #sidebar.open { transform: translateX(0); box-shadow: 4px 0 20px rgba(0,0,0,0.15); }

  /* Hamburger visível */
  #btn-hamburger { display: flex; }

  /* Topbar compacto */
  #topbar { padding: 0 12px; }
  .topbar-user { display: none; }

  /* Main */
  #main { margin-left: 0; padding: 16px; }

  /* Page header */
  .page-header-row { flex-direction: column; gap: 10px; }
  .page-actions { width: 100%; flex-wrap: wrap; }

  /* Forms */
  .form-row, .form-row-3 { grid-template-columns: 1fr; }

  /* Cards */
  .card { padding: 16px; }
  .stat-card { padding: 16px; }

  /* Modal */
  .modal { padding: 20px 16px; }
  .modal-footer { flex-wrap: wrap; gap: 8px; }
  .modal-footer .btn { flex: 1; min-width: 120px; }

  /* Kanban */
  .kanban-board { gap: 8px; }
  .kanban-col { min-width: 180px; }
  .kanban-card-actions { opacity: 1; }

  /* Notif dropdown — full-width fixo abaixo do topbar */
  .notif-dropdown { position: fixed; left: 12px; right: 12px; top: 68px; width: auto; }

  /* Toast */
  #toast-container { left: 12px; right: 12px; bottom: 16px; align-items: stretch; }
  .toast { max-width: 100%; }
}

@media (max-width: 480px) {
  #main { padding: 12px; }
  .stats-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 18px; }
  .kanban-col { min-width: 160px; }
  .card { padding: 12px; }
  .modal { padding: 16px 12px; }
  .modal-title { font-size: 16px; }
}

/* Notificações - toggle e labels */
.notify-stage-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--gray-700); cursor: pointer;
  background: var(--gray-50); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px;
  transition: border-color .15s, background .15s;
}
.notify-stage-label:hover { border-color: var(--teal); background: var(--teal-light); }
.notify-stage-label input[type=checkbox] { accent-color: var(--teal); width: 15px; height: 15px; }
.toggle-on  { background: var(--teal) !important; }
.toggle-on #toggle-knob { transform: translateX(20px); }

/* ── Talent Profile Modal ─────────────────────────────────────── */
.tp-section-label { font-size:11px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:var(--gray-400); margin-bottom:10px; }
.tp-gauge-wrap { position:relative; display:inline-flex; align-items:center; justify-content:center; }
.tp-gauge-value { position:absolute; font-size:26px; font-weight:800; }
.skill-bar-row { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.skill-bar-label { font-size:12px; color:var(--gray-700); width:100px; flex-shrink:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.skill-bar-track { flex:1; height:8px; background:var(--gray-100); border-radius:4px; overflow:hidden; }
.skill-bar-fill { height:100%; border-radius:4px; background:linear-gradient(90deg,var(--teal),#0ea5a0); transition:width .6s ease; }
.skill-bar-pct { font-size:11px; color:var(--gray-400); width:34px; text-align:right; flex-shrink:0; }
.exp-timeline { position:relative; padding-left:20px; }
.exp-timeline::before { content:''; position:absolute; left:6px; top:6px; bottom:6px; width:2px; background:var(--gray-200); border-radius:2px; }
.exp-timeline-item { position:relative; margin-bottom:16px; }
.exp-timeline-dot { position:absolute; left:-17px; top:4px; width:10px; height:10px; border-radius:50%; background:var(--teal); border:2px solid white; box-shadow:0 0 0 2px var(--teal); }
.exp-timeline-title { font-size:13px; font-weight:600; color:var(--gray-900); }
.exp-timeline-sub { font-size:12px; color:var(--teal); margin-top:1px; }
.exp-timeline-body { font-size:12px; color:var(--gray-500); margin-top:4px; line-height:1.5; }
.tp-ia-chip { display:inline-flex; align-items:center; gap:4px; padding:3px 10px; border-radius:20px; font-size:12px; font-weight:500; margin:3px; }
.tp-completeness-bar { height:6px; border-radius:3px; background:var(--gray-100); overflow:hidden; margin-top:4px; }
.tp-completeness-fill { height:100%; border-radius:3px; background:linear-gradient(90deg,var(--teal),#0ea5a0); transition:width .6s; }
