/* =========================================
   COMPONENTS CSS — Buttons, Cards, Tables,
   Forms, Modals, Badges, Toast, Auth
   ========================================= */

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4375rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
  text-decoration: none;
  outline: none;
  user-select: none;
}

.btn:focus-visible { box-shadow: 0 0 0 3px rgba(79,70,229,0.3); }
.btn svg { flex-shrink: 0; }

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 1px 3px rgba(79,70,229,0.3);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 4px 10px rgba(79,70,229,0.35); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 3px rgba(79,70,229,0.3); }

.btn-secondary {
  background: white;
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: var(--bg); border-color: #CBD5E1; color: var(--text); }
.btn-secondary:active { transform: translateY(0); }

.btn-danger {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}
.btn-danger:hover { background: #B91C1C; border-color: #B91C1C; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover { background: var(--primary-light); }

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}
.btn-lg {
  padding: 0.6875rem 1.375rem;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
}
.btn-xl {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}
.btn-icon {
  padding: 0.5rem;
  width: 36px; height: 36px;
}
.btn-icon-sm {
  padding: 0.3125rem;
  width: 30px; height: 30px;
}
.btn-full { width: 100%; }

.btn[disabled], .btn.loading {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ══════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  gap: 0.75rem;
  flex-wrap: wrap;
}

.card-header-left { display: flex; align-items: center; gap: 0.625rem; }

.card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.card-count {
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.card-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}
.card-link:hover { color: var(--primary-dark); text-decoration: underline; }

.card-body { padding: 1.25rem; }
.card-footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--border);
  background: #FAFBFC;
}

/* ── Stat Cards ── */
.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.stat-card.stat-indigo .stat-icon { background: var(--primary-light); color: var(--primary); }
.stat-card.stat-green .stat-icon  { background: var(--success-bg); color: var(--success); }
.stat-card.stat-blue .stat-icon   { background: var(--info-bg); color: var(--info); }
.stat-card.stat-amber .stat-icon  { background: var(--warning-bg); color: var(--warning); }

.stat-body { flex: 1; min-width: 0; }

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-card.stat-indigo .stat-value { color: var(--primary); }
.stat-card.stat-green .stat-value  { color: var(--success); }
.stat-card.stat-blue .stat-value   { color: var(--info); }
.stat-card.stat-amber .stat-value  { color: var(--warning); }

.stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.1rem;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   TABLES
   ══════════════════════════════════════════ */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.table thead { background: #FAFBFC; }

.table th {
  padding: 0.625rem 1rem;
  text-align: left;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
  color: var(--text);
}

.table tbody tr:last-child td { border-bottom: none; }

.table tbody tr {
  transition: background var(--dur-fast) var(--ease);
}
.table tbody tr:hover { background: #FAFBFF; }

.cell-primary {
  font-weight: 600;
  color: var(--text);
}

.cell-truncate {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}

.cell-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Table Toolbar ── */
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.table-search {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 320px;
}
.table-search-icon {
  position: absolute;
  left: 0.625rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}
.table-search input {
  width: 100%;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0.75rem 0 2.125rem;
  font-size: 0.8125rem;
  color: var(--text);
  outline: none;
  background: var(--bg);
  transition: all var(--dur) var(--ease);
}
.table-search input:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

/* ══════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════ */
.form-group { margin-bottom: 1.125rem; }
.form-group:last-child { margin-bottom: 0; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.required {
  color: var(--danger);
  margin-left: 0.1rem;
}

.input, .select, .textarea {
  width: 100%;
  height: 38px;
  padding: 0 0.875rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  color: var(--text);
  outline: none;
  transition: all var(--dur) var(--ease);
  appearance: none;
}

.input::placeholder, .textarea::placeholder { color: var(--text-light); }

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

.input.error, .select.error, .textarea.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.textarea {
  height: auto;
  padding: 0.625rem 0.875rem;
  resize: vertical;
  line-height: 1.6;
}

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748B' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.625rem center;
  background-size: 16px;
  padding-right: 2.25rem;
  cursor: pointer;
}

.input-sm, .select-sm {
  height: 32px;
  font-size: 0.75rem;
  padding: 0 0.625rem;
}

.select-sm {
  background-size: 14px;
  padding-right: 1.875rem;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.form-error {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ── File Input ── */
.file-drop-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  background: #FAFBFC;
  position: relative;
}

.file-drop-area:hover, .file-drop-area.drag-over {
  border-color: var(--primary);
  background: var(--primary-light);
}

.file-drop-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-drop-icon { color: var(--text-light); margin: 0 auto 0.5rem; }
.file-drop-text { font-size: 0.8125rem; color: var(--text-muted); }
.file-drop-text strong { color: var(--primary); }
.file-drop-hint { font-size: 0.75rem; color: var(--text-light); margin-top: 0.25rem; }
.file-drop-name {
  display: inline-flex; align-items: center; gap: 0.375rem;
  background: var(--primary-light); color: var(--primary);
  padding: 0.25rem 0.625rem; border-radius: var(--radius);
  font-size: 0.75rem; font-weight: 500; margin-top: 0.5rem;
}

/* ── Input with icon ── */
.input-group { position: relative; }
.input-group .input { padding-left: 2.375rem; }
.input-group .input-icon {
  position: absolute;
  left: 0.75rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}
.input-group .input-suffix {
  position: absolute;
  right: 0.75rem; top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-light);
}
.input-group .input-suffix:hover { color: var(--text); }
.input-group .input-has-suffix { padding-right: 2.375rem; }

/* ══════════════════════════════════════════
   MODALS
   ══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--dur-md) var(--ease);
  backdrop-filter: blur(3px);
}
.modal-overlay.open { opacity: 1; }

.modal {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  transform: scale(0.94) translateY(12px);
  transition: transform var(--dur-md) var(--ease);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-sm  { max-width: 400px; }
.modal-md  { max-width: 540px; }
.modal-lg  { max-width: 680px; }
.modal-xl  { max-width: 840px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.375rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.modal-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  background: none; border: none;
  flex-shrink: 0;
}
.modal-close:hover { background: var(--bg); color: var(--text); }

.modal-body {
  padding: 1.25rem 1.375rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.625rem;
  padding: 1rem 1.375rem;
  border-top: 1px solid var(--border);
  background: #FAFBFC;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  flex-shrink: 0;
}

/* Confirm dialog */
.confirm-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--danger-bg);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  color: var(--danger);
}

.confirm-message {
  text-align: center;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1875rem 0.5625rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge-success  { background: var(--success-bg);  color: var(--success); }
.badge-warning  { background: var(--warning-bg);  color: var(--warning); }
.badge-danger   { background: var(--danger-bg);   color: var(--danger);  }
.badge-info     { background: var(--info-bg);     color: var(--info);    }
.badge-primary  { background: var(--primary-light); color: var(--primary); }
.badge-secondary { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }

/* ══════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.8125rem;
  font-weight: 500;
  max-width: 380px;
  min-width: 240px;
  transform: translateY(120%);
  transition: transform var(--dur-md) var(--ease), opacity var(--dur-md) var(--ease);
  opacity: 0;
}
.toast.show { transform: translateY(0); opacity: 1; }

.toast-icon { flex-shrink: 0; width: 18px; height: 18px; }
.toast-message { flex: 1; line-height: 1.4; }
.toast-close {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-xs);
  opacity: 0.6;
  cursor: pointer;
  background: none; border: none; color: white;
  flex-shrink: 0;
  transition: opacity var(--dur) var(--ease);
}
.toast-close:hover { opacity: 1; }

.toast-success { background: #064E3B; border-left: 3px solid var(--success); }
.toast-error   { background: #7F1D1D; border-left: 3px solid var(--danger); }
.toast-warning { background: #78350F; border-left: 3px solid var(--warning); }
.toast-info    { background: #1E3A5F; border-left: 3px solid var(--info); }

/* ══════════════════════════════════════════
   ACTION BUTTONS (Table inline)
   ══════════════════════════════════════════ */
.action-group {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.act-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  background: none; border: 1px solid transparent;
  color: var(--text-muted);
}

.act-btn-edit:hover  { background: var(--info-bg); border-color: #BFDBFE; color: var(--info); }
.act-btn-delete:hover { background: var(--danger-bg); border-color: #FECACA; color: var(--danger); }
.act-btn-view:hover  { background: var(--primary-light); border-color: #C7D2FE; color: var(--primary); }

/* ══════════════════════════════════════════
   FILE TAGS
   ══════════════════════════════════════════ */
.file-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.6875rem;
  font-weight: 500;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
}

.file-tag svg { flex-shrink: 0; }

/* ── File List (Documents page) ── */
.file-list { padding: 0.5rem 0; }

.file-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid #F8FAFC;
  transition: background var(--dur-fast) var(--ease);
}
.file-item:last-child { border-bottom: none; }
.file-item:hover { background: #FAFBFF; }

.file-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.file-icon.cv-icon { background: var(--info-bg); color: var(--info); }

.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 0.8125rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.1rem; }

/* ══════════════════════════════════════════
   RECENT LIST (Dashboard)
   ══════════════════════════════════════════ */
.recent-list { padding: 0.25rem 0; }

.recent-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #F8FAFC;
  transition: background var(--dur-fast) var(--ease);
}
.recent-item:last-child { border-bottom: none; }
.recent-item:hover { background: #FAFBFF; }

.recent-icon {
  width: 34px; height: 34px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.recent-icon.job-icon { background: var(--success-bg); color: var(--success); }

.recent-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: white;
  flex-shrink: 0;
}

.recent-content { flex: 1; min-width: 0; }
.recent-title { font-size: 0.8125rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-meta { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ══════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.empty-icon { color: var(--text-light); margin-bottom: 1rem; opacity: 0.5; }
.empty-title { font-size: 0.9375rem; font-weight: 700; color: var(--text); margin-bottom: 0.375rem; }
.empty-subtitle { font-size: 0.8125rem; color: var(--text-muted); max-width: 280px; line-height: 1.6; }

/* ══════════════════════════════════════════
   AUTH CARDS
   ══════════════════════════════════════════ */
.auth-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  animation: authSlideIn 0.4s var(--ease);
}

@keyframes authSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.auth-logo-icon {
  width: 44px; height: 44px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(79,70,229,0.4);
}

.auth-logo-icon svg { color: white; }

.auth-logo-text {}
.auth-logo-name { font-size: 1.0625rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.auth-logo-sub  { font-size: 0.6875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

.auth-heading { font-size: 1.375rem; font-weight: 800; color: var(--text); letter-spacing: -0.025em; margin-bottom: 0.375rem; }
.auth-sub     { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.75rem; }

.auth-form { display: flex; flex-direction: column; gap: 1rem; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
  color: var(--text-light);
  font-size: 0.75rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.auth-footer a { font-weight: 600; }

.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-alert-error { background: var(--danger-bg); color: var(--danger); }
.auth-alert-success { background: var(--success-bg); color: var(--success); }

/* ══════════════════════════════════════════
   STATUS SELECT (Applications inline)
   ══════════════════════════════════════════ */
.status-select {
  height: 28px;
  font-size: 0.75rem;
  padding: 0 1.75rem 0 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background-size: 12px;
  background-position: right 0.375rem center;
  cursor: pointer;
  font-weight: 500;
  transition: all var(--dur) var(--ease);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748B' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

.status-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
  border-color: var(--primary);
}

.status-select.s-applied     { background-color: var(--info-bg); color: var(--info); border-color: #BFDBFE; }
.status-select.s-shortlisted { background-color: var(--primary-light); color: var(--primary); border-color: #C7D2FE; }
.status-select.s-interview   { background-color: var(--warning-bg); color: var(--warning); border-color: #FDE68A; }
.status-select.s-offered     { background-color: var(--success-bg); color: var(--success); border-color: #A7F3D0; }
.status-select.s-rejected    { background-color: var(--danger-bg); color: var(--danger); border-color: #FECACA; }

/* ══════════════════════════════════════════
   MISC HELPERS
   ══════════════════════════════════════════ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 1.25rem 0;
}

.avatar-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: white;
  flex-shrink: 0;
}

.avatar-circle.sm { width: 26px; height: 26px; font-size: 0.6875rem; }

.inline-candidate {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.inline-candidate-name { font-weight: 600; color: var(--text); }
.inline-candidate-email { font-size: 0.75rem; color: var(--text-muted); }

/* Loading Spinner */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* Skeleton loader */
@keyframes shimmer {
  from { background-position: -400px 0; }
  to   { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}
