/* ============================================================
   Azzara Sourcing Platform -- Premium Design System v7
   ============================================================
   Structure:
   1. Fonts & Variables
   2. Reset & Base
   3. Animations & Transitions
   4. Utility Classes
   5. App Layout
   6. Sidebar (Dark Navy)
   7. Main Content & Typography
   8. Cards
   9. Stat Cards (Dashboard)
   10. Tables
   11. Badges
   12. Buttons
   13. Forms
   14. Alerts
   15. Tabs & Filters
   16. Page Headers & Navigation
   17. Job Detail
   18. Candidate Detail
   19. Score Bars & Dimensions
   20. Timeline
   21. Pipeline & Funnel
   22. Activity Feed
   23. Empty States
   24. Miscellaneous Components
   25. Login
   26. Responsive
   ============================================================ */


/* ==========================================================
   1. FONTS & CSS VARIABLES
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  /* Brand colors */
  --accent: #14b8a6;
  --accent-hover: #0d9488;
  --accent-light: rgba(20, 184, 166, 0.08);
  --accent-ring: rgba(20, 184, 166, 0.25);

  /* Gold accent */
  --gold: #b8a47e;
  --gold-light: rgba(184, 164, 126, 0.12);

  /* Backgrounds */
  --bg-page: #f5f6f7;
  --bg-sidebar: #1a2332;
  --bg-sidebar-hover: #243044;
  --bg-sidebar-active: rgba(20, 184, 166, 0.15);
  --bg-card: #ffffff;
  --bg-hover: #f8fafc;
  --bg-subtle: #f8fafc;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --text-sidebar: rgba(255, 255, 255, 0.7);
  --text-sidebar-active: #ffffff;

  /* Semantic */
  --success: #16a34a;
  --success-light: rgba(22, 163, 74, 0.08);
  --danger: #dc2626;
  --danger-light: rgba(220, 38, 38, 0.08);
  --warning: #d97706;
  --warning-light: rgba(217, 119, 6, 0.08);

  /* Structure */
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 8px 30px rgba(0, 0, 0, 0.10);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  --gradient-hero: linear-gradient(135deg, #1a2332 0%, #243044 100%);

  /* Transitions */
  --transition-base: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* ==========================================================
   2. RESET & BASE
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

::selection {
  background: var(--accent);
  color: #fff;
}


/* ==========================================================
   3. ANIMATIONS & TRANSITIONS
   ========================================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.animate-fade-in { animation: fadeIn 0.4s ease-out both; }
.animate-fade-up { animation: fadeUp 0.5s ease-out both; }
.animate-slide-in { animation: slideIn 0.3s ease-out both; }
.animate-scale-in { animation: scaleIn 0.3s ease-out both; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* Stagger children animations */
.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 50ms; }
.stagger-children > *:nth-child(3) { animation-delay: 100ms; }
.stagger-children > *:nth-child(4) { animation-delay: 150ms; }
.stagger-children > *:nth-child(5) { animation-delay: 200ms; }
.stagger-children > *:nth-child(6) { animation-delay: 250ms; }


/* ==========================================================
   4. UTILITY CLASSES
   ========================================================== */

/* Text size utilities */
.text-xs { font-size: 11px; line-height: 1.5; }
.text-sm { font-size: 12px; line-height: 1.5; }
.text-base { font-size: 14px; line-height: 1.65; }
.text-lg { font-size: 16px; line-height: 1.6; }
.text-xl { font-size: 20px; line-height: 1.4; }

/* Spacing utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }

/* Text helpers */
.font-mono { font-family: "SF Mono", "Menlo", "Consolas", monospace; font-size: 0.9em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.muted { color: var(--text-muted); font-size: 13px; }
.text-secondary { color: var(--text-secondary); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.tabular-nums { font-variant-numeric: tabular-nums; }

/* Visibility */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }


/* ==========================================================
   5. APP LAYOUT
   ========================================================== */

.app-layout { display: flex; min-height: 100vh; }


/* ==========================================================
   6. SIDEBAR (Dark Navy)
   ========================================================== */

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: none;
}

/* Subtle brand gradient at top */
.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.06) 0%, transparent 100%);
  pointer-events: none;
}

/* Scrollbar styling for sidebar */
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 2px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }

.sidebar-brand { padding: 0 12px; margin-bottom: 2px; position: relative; }
.sidebar-logo { height: 26px; width: auto; }

.sidebar-subtitle {
  font-size: 10px;
  color: var(--text-sidebar);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
  padding: 0 12px;
  margin-bottom: 24px;
  opacity: 0.5;
}

.nav-section {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  color: var(--text-sidebar);
  margin-top: 28px;
  margin-bottom: 8px;
  padding: 0 12px;
  opacity: 0.4;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-sidebar);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-base);
  margin-bottom: 2px;
  position: relative;
}

.nav-item:hover {
  background: var(--bg-sidebar-hover);
  color: var(--text-sidebar-active);
}

.nav-item.active {
  background: var(--bg-sidebar-active);
  color: var(--accent);
  font-weight: 600;
}

/* Subtle glow on active nav item */
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.nav-icon {
  width: 18px;
  height: 18px;
  opacity: 0.65;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.nav-item:hover .nav-icon { opacity: 0.85; }
.nav-item.active .nav-icon { opacity: 1; }

.sidebar-footer {
  margin-top: auto;
  padding: 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-name { font-size: 13px; color: var(--text-sidebar); font-weight: 500; }
.logout-link { font-size: 12px; color: var(--text-sidebar); opacity: 0.5; transition: var(--transition-base); }
.logout-link:hover { color: var(--danger); opacity: 1; }

/* Mobile sidebar toggle */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  background: var(--bg-sidebar);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  font-size: 18px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-base);
}

.sidebar-toggle:hover { background: var(--bg-sidebar-hover); }

/* Mobile backdrop */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 98;
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.sidebar-backdrop.visible { display: block; opacity: 1; }

/* Nav badge (notification count) */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  margin-left: auto;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--bg-sidebar);
}


/* ==========================================================
   7. MAIN CONTENT & TYPOGRAPHY
   ========================================================== */

.main-content {
  flex: 1;
  padding: 28px 36px;
  max-width: 1280px;
  min-width: 0;
}

h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}


/* ==========================================================
   8. CARDS
   ========================================================== */

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.card-padded { padding: 20px; }

.card-elevated {
  box-shadow: var(--shadow-md);
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Card without hover effect (for static containers) */
.card-static {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-body { padding: 20px; }

.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}


/* ==========================================================
   9. STAT CARDS (Dashboard)
   ========================================================== */

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 8px; }
.stat-cards-5 { grid-template-columns: repeat(5, 1fr); }

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-green { color: var(--success); }
.stat-red { color: var(--danger); }

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Trend indicator */
.stat-trend {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-weight: 600;
}

.stat-trend-up { color: var(--success); }
.stat-trend-down { color: var(--danger); }

/* Key Metrics Mini Cards */
.metrics-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.metric-card:hover { box-shadow: var(--shadow-md); }

.metric-value {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}


/* ==========================================================
   10. TABLES
   ========================================================== */

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
}

table { width: 100%; border-collapse: collapse; }

th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

td {
  padding: 11px 16px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  transition: background 0.15s ease;
}

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

tr:hover td {
  background: var(--bg-hover);
}

/* Clickable row style */
tr.clickable-row {
  cursor: pointer;
}

tr.clickable-row:hover td {
  background: var(--accent-light);
}

/* Left border accent on hover */
tr:hover td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}

.table-link { color: var(--text-primary); text-decoration: none; font-weight: 500; transition: color 0.15s; }
.table-link:hover { color: var(--accent); }

.table-secondary { color: var(--text-secondary); }
.table-rank { color: var(--text-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.table-muted { color: var(--text-muted); font-size: 12px; }

/* Score in tables */
.score-cell { font-weight: 600; font-variant-numeric: tabular-nums; }
.score-high { color: var(--success); }
.score-mid { color: var(--warning); }
.score-low { color: var(--danger); }

/* Stars -- compact 5-star display */
.stars { color: var(--warning); font-size: 13px; letter-spacing: 2px; white-space: nowrap; }


/* ==========================================================
   11. BADGES
   ========================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  gap: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.badge-lg { font-size: 13px; padding: 5px 16px; }

/* Status dot variant */
.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Status badges */
.badge-new { background: var(--accent-light); color: var(--accent); }
.badge-reviewed { background: rgba(6, 182, 212, 0.08); color: #0891b2; }
.badge-in-progress { background: var(--success-light); color: var(--success); }
.badge-on-hold { background: var(--warning-light); color: #b45309; }
.badge-cancelled { background: var(--danger-light); color: #b91c1c; }
.badge-closed { background: rgba(100, 116, 139, 0.08); color: #475569; }
.badge-expired { background: rgba(100, 116, 139, 0.06); color: #64748b; }

/* Event badges */
.badge-ok { background: var(--success-light); color: var(--success); }
.badge-error { background: var(--danger-light); color: var(--danger); }
.badge-skipped { background: rgba(100, 116, 139, 0.08); color: var(--text-muted); }
.badge-retrying { background: var(--warning-light); color: var(--warning); }
.badge-neutral { background: rgba(100, 116, 139, 0.08); color: var(--text-secondary); }

/* Recommendation badges */
.badge-top-pick { background: rgba(22, 163, 74, 0.1); color: #15803d; }
.badge-strong-match { background: rgba(20, 184, 166, 0.1); color: #0d9488; }
.badge-moderate-match { background: var(--warning-light); color: #b45309; }
.badge-weak-match { background: var(--danger-light); color: var(--danger); }
.badge-no-match { background: rgba(100, 116, 139, 0.06); color: #64748b; }
.badge-disqualified { background: rgba(220, 38, 38, 0.1); color: #991b1b; }

/* Application status badges */
.badge-screening { background: rgba(147, 51, 234, 0.08); color: #7c3aed; }
.badge-shortlisted { background: var(--success-light); color: var(--success); }
.badge-contacted { background: rgba(6, 182, 212, 0.08); color: #0891b2; }
.badge-rejected { background: var(--danger-light); color: var(--danger); }
.badge-review { background: var(--warning-light); color: #b45309; }

/* Posting action badges */
.badge-queued { background: var(--warning-light); color: var(--warning); }
.badge-posting { background: var(--accent-light); color: var(--accent); }
.badge-posted { background: var(--success-light); color: var(--success); }

/* Urgency badges */
.urgency-badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 10px; white-space: nowrap; }
.urgency-red { background: var(--danger-light); color: var(--danger); }
.urgency-orange { background: var(--warning-light); color: var(--warning); }
.urgency-gray { background: var(--bg-subtle); color: var(--text-muted); }

/* Platform badges */
.platform-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-light);
  color: var(--accent);
  margin-right: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Waiting badges */
.waiting-badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 10px; }
.waiting-red { background: var(--danger-light); color: var(--danger); }
.waiting-orange { background: var(--warning-light); color: var(--warning); }
.waiting-gray { color: var(--text-muted); }


/* ==========================================================
   12. BUTTONS
   ========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: var(--transition-base);
  gap: 6px;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.btn:active { transform: scale(0.98); }

.btn-full { width: 100%; margin-top: 20px; }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 1px 3px rgba(20, 184, 166, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; transform: translateY(-1px); }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  box-shadow: none;
}
.btn-secondary:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  background: var(--bg-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  box-shadow: none;
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-hover); }

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Button size variants */
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 14px; }

/* Button with icon only */
.btn-icon {
  padding: 8px;
  width: 36px;
  height: 36px;
}


/* ==========================================================
   13. FORMS
   ========================================================== */

label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 6px;
  margin-top: 16px;
  letter-spacing: 0.01em;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="search"],
input[type="number"],
input[type="url"],
input[type="tel"],
textarea,
select {
  display: block;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
  min-height: 40px;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  background: #fff;
}

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

/* Hover state for inputs */
input:hover:not(:focus),
textarea:hover:not(:focus),
select:hover:not(:focus) {
  border-color: var(--border-strong);
}

/* Form group pattern */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  margin-top: 0;
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-error {
  font-size: 11px;
  color: var(--danger);
  margin-top: 4px;
}

/* Toggle switch */
.toggle {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 22px;
  cursor: pointer;
}

.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border-strong);
  border-radius: 11px;
  transition: var(--transition-base);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-slider { box-shadow: 0 0 0 3px var(--accent-ring); }

/* Select dropdown polish */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* Checkbox and radio polish */
input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  min-height: auto;
  accent-color: var(--accent);
  cursor: pointer;
}


/* ==========================================================
   14. ALERTS
   ========================================================== */

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.alert-error { background: var(--danger-light); border: 1px solid rgba(220, 38, 38, 0.15); color: var(--danger); }
.alert-success { background: var(--success-light); border: 1px solid rgba(22, 163, 74, 0.15); color: var(--success); }
.alert-warning { background: var(--warning-light); border: 1px solid rgba(217, 119, 6, 0.15); color: var(--warning); }
.alert-info { background: var(--accent-light); border: 1px solid rgba(20, 184, 166, 0.15); color: var(--accent-hover); }


/* ==========================================================
   15. TABS & FILTERS
   ========================================================== */

/* --- Tab System --- */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.tab {
  padding: 12px 20px;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}

.tab:hover { color: var(--text-primary); }

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* --- Needs Your Action Tabs --- */
.needs-action-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.needs-action-tabs { display: flex; gap: 4px; }

.needs-action-tab {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.needs-action-tab:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.needs-action-tab.active {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 600;
  background: var(--accent);
  color: white;
}

.tab-badge-danger { background: var(--danger); }

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.filter-bar .badge {
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
}
.filter-bar .badge:hover { opacity: 0.8; transform: translateY(-1px); }
.filter-bar .badge.active { outline: 2px solid var(--accent); outline-offset: 1px; }

.filter-badge-all { background: rgba(100, 116, 139, 0.08); color: var(--text-secondary); }

.filter-search {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* --- Activity Filter Pills --- */
.activity-filters { display: flex; gap: 4px; }

.filter-pill {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(100, 116, 139, 0.08);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-base);
}

.filter-pill:hover {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-primary);
}

.filter-pill.active {
  background: var(--accent);
  color: white;
}


/* ==========================================================
   16. PAGE HEADERS & NAVIGATION
   ========================================================== */

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.page-header h1 { margin: 0; }
.page-header .page-count { font-size: 13px; color: var(--text-muted); }
.page-header .page-actions { display: flex; gap: 8px; }

.page-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

/* Back link */
.back-link {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-base);
}
.back-link:hover { color: var(--accent); }

/* Pagination */
.pagination { display: flex; gap: 6px; margin-top: 20px; justify-content: center; }

.pagination a {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition-base);
  font-variant-numeric: tabular-nums;
}
.pagination a.active { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 2px 8px rgba(20, 184, 166, 0.25); }
.pagination a:hover:not(.active) { background: var(--bg-hover); border-color: var(--border-strong); }

/* Action buttons group */
.action-buttons { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }

/* Link styles */
.link-accent { color: var(--accent); transition: color 0.15s; }
.link-accent:hover { text-decoration: underline; }

.link-muted { color: var(--text-muted); transition: color 0.15s; }
.link-muted:hover { color: var(--text-secondary); }


/* ==========================================================
   17. JOB DETAIL
   ========================================================== */

.job-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.job-header h1 { margin: 0; }
.job-header .ref-code { font-size: 12px; color: var(--text-muted); font-family: "SF Mono", "Menlo", monospace; }

.job-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

.job-info-card, .job-timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.job-field { display: flex; margin-bottom: 10px; align-items: baseline; }
.job-field-label { width: 140px; color: var(--text-muted); font-size: 12px; font-weight: 500; flex-shrink: 0; }
.job-field-value { flex: 1; color: var(--text-primary); font-size: 13px; }

.job-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.job-section h3 { margin-top: 0; }
.job-section-content { white-space: pre-wrap; line-height: 1.7; color: var(--text-primary); font-size: 13px; }

/* Skills tags */
.skill-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: 3px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  margin: 2px 4px 2px 0;
  transition: var(--transition-base);
}
.skill-tag:hover { background: rgba(20, 184, 166, 0.15); }

.skill-tag-matched {
  display: inline-block;
  background: var(--success-light);
  color: var(--success);
  padding: 3px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  margin: 2px 4px 2px 0;
}

.skill-tag-missing {
  display: inline-block;
  background: var(--danger-light);
  color: var(--danger);
  padding: 3px 12px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  margin: 2px 4px 2px 0;
}

.skill-category {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Posting status */
.posting-status { font-size: 13px; padding: 7px 16px; font-weight: 600; }

/* Next Action Banner */
.next-action-banner {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
}
.next-action-info { background: var(--accent-light); border-left: 4px solid var(--accent); }
.next-action-warning { background: var(--warning-light); border-left: 4px solid var(--warning); }
.next-action-success { background: var(--success-light); border-left: 4px solid var(--success); }
.next-action-danger { background: var(--danger-light); border-left: 4px solid var(--danger); }

/* Also Matches */
.also-matches { margin-bottom: 16px; }
.match-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.match-item:last-child { border-bottom: none; }
.match-item:hover { background: var(--bg-hover); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: var(--radius-sm); }


/* ==========================================================
   18. CANDIDATE DETAIL
   ========================================================== */

.candidate-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.candidate-header h1 { margin: 0; }

.candidate-score-big {
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.candidate-stars { color: var(--warning); font-size: 14px; letter-spacing: 2px; }
.candidate-section-label { display: block; font-size: 12px; color: var(--text-muted); font-weight: 500; margin-bottom: 6px; }
.candidate-name { text-transform: capitalize; }

/* Candidate Action Buttons */
.candidate-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.candidate-actions .btn {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
}

/* Status banner */
.status-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
}

.status-banner-rejected { background: var(--danger-light); border: 1px solid rgba(220, 38, 38, 0.15); color: var(--danger); }
.status-banner-shortlisted { background: var(--success-light); border: 1px solid rgba(22, 163, 74, 0.15); color: var(--success); }
.status-banner-qualified { background: rgba(20, 184, 166, 0.08); border: 1px solid rgba(20, 184, 166, 0.15); color: var(--accent); }
.status-banner-screening { background: rgba(147, 51, 234, 0.08); border: 1px solid rgba(147, 51, 234, 0.15); color: #7c3aed; }

/* Q&A grid */
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.qa-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: var(--transition-base);
}
.qa-card:hover { box-shadow: var(--shadow-sm); }

.qa-question { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-bottom: 6px; }
.qa-answer { font-size: 13px; color: var(--text-primary); white-space: pre-wrap; line-height: 1.6; }

/* Clarification */
.clarification-section { margin-bottom: 24px; }
.clarification-saved {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.6;
}


/* ==========================================================
   19. SCORE BARS & DIMENSIONS
   ========================================================== */

.score-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.score-label { width: 140px; font-size: 12px; color: var(--text-muted); font-weight: 500; }
.score-bar { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 3px; transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.fill-green { background: var(--success); }
.fill-yellow { background: var(--warning); }
.fill-red { background: var(--danger); }
.score-value { width: 36px; text-align: right; font-size: 12px; color: var(--text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Score bar inline (for table rows) */
.score-bar-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.score-bar-inline .score-bar { width: 100px; height: 4px; }
.score-bar-inline .score-value { width: auto; font-size: 13px; }

/* Full-width Score Dimension Bars */
.score-dimension { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.score-dimension .score-label { min-width: 140px; font-size: 13px; }
.score-dimension .score-bar { flex: 1; height: 8px; border-radius: 4px; }
.score-dimension .score-pct { min-width: 40px; text-align: right; font-size: 13px; font-weight: 600; }


/* ==========================================================
   20. TIMELINE
   ========================================================== */

/* Existing timeline (table-based) */
.timeline { margin-top: 8px; }

.timeline-entry {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  transition: background 0.15s;
}
.timeline-entry:last-child { border-bottom: none; }
.timeline-entry:hover { background: var(--bg-hover); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: var(--radius-sm); }

.timeline-time { font-size: 12px; color: var(--text-muted); min-width: 110px; font-variant-numeric: tabular-nums; }
.timeline-action { font-weight: 500; }
.timeline-details { font-size: 12px; color: var(--text-secondary); }

/* Visual timeline (vertical line + dots) */
.timeline-visual { position: relative; padding-left: 28px; }

.timeline-visual::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
  border-radius: 1px;
}

.timeline-visual-item {
  position: relative;
  padding: 12px 0;
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--border);
}

.timeline-dot-ok { background: var(--success); box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2); }
.timeline-dot-error { background: var(--danger); box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2); }
.timeline-dot-info { background: var(--accent); box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2); }
.timeline-dot-warning { background: var(--warning); box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2); }
.timeline-dot-neutral { background: var(--text-muted); box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.2); }

/* Timeline Summary (horizontal steps) */
.timeline-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  font-size: 13px;
  flex-wrap: wrap;
}
.timeline-step { display: flex; align-items: center; gap: 4px; }
.timeline-arrow { color: var(--text-muted); }
.timeline-current { font-weight: 700; color: var(--accent); }


/* ==========================================================
   21. PIPELINE & FUNNEL
   ========================================================== */

.funnel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.funnel-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 70px;
}

.funnel-count {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.funnel-arrow { color: var(--text-muted); font-size: 18px; margin-top: -16px; }

.funnel-arrow-group { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.funnel-arrow-group .funnel-arrow { margin-top: 0; }

.funnel-conv {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.conv-green { color: #15803d; background: rgba(22, 163, 74, 0.1); }
.conv-orange { color: #b45309; background: rgba(217, 119, 6, 0.1); }
.conv-red { color: #b91c1c; background: rgba(220, 38, 38, 0.1); }

.funnel-divider { color: var(--border-strong); font-size: 24px; font-weight: 300; margin: 0 4px; }

/* Application Funnel Bar */
.funnel-card { display: flex; align-items: center; gap: 0; border-radius: var(--radius-lg); overflow: hidden; height: 36px; }
.funnel-segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: white;
  min-width: 40px;
  padding: 0 8px;
  text-decoration: none;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.funnel-segment:hover { opacity: 0.85; color: white; filter: brightness(1.1); }

/* Pipeline dots */
.pipeline-dots { display: inline-flex; gap: 3px; margin-left: 6px; }
.dot { font-size: 10px; line-height: 1; }
.dot-green { color: var(--success); }
.dot-teal { color: var(--accent); }
.dot-gray { color: var(--text-muted); }
.dot-red { color: var(--danger); }
.app-count { font-weight: 600; font-size: 13px; }

/* Urgent row highlight */
.row-urgent { border-left: 3px solid var(--danger); }


/* ==========================================================
   22. ACTIVITY FEED
   ========================================================== */

.activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  transition: background 0.15s;
}
.activity-row:last-child { border-bottom: none; }
.activity-row:hover { background: var(--bg-hover); }

.activity-time {
  color: var(--text-muted);
  font-size: 12px;
  min-width: 100px;
  font-variant-numeric: tabular-nums;
}
.activity-action { font-weight: 500; color: var(--text-primary); }
.activity-detail {
  color: var(--text-secondary);
  font-size: 12px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Activity date grouping */
.activity-date-header {
  padding: 8px 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1;
}


/* ==========================================================
   23. EMPTY STATES
   ========================================================== */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.35;
  display: block;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.6;
}

.empty-state p { font-size: 13px; }


/* ==========================================================
   24. MISCELLANEOUS COMPONENTS
   ========================================================== */

/* Quick Actions */
.quick-actions { display: flex; gap: 4px; align-items: center; }

.quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: var(--transition-base);
  color: var(--text-secondary);
}

.quick-action:hover { background: var(--bg-hover); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.quick-action-success { color: var(--success); }
.quick-action-success:hover { background: var(--success-light); border-color: var(--success); }
.quick-action-danger { color: var(--danger); }
.quick-action-danger:hover { background: var(--danger-light); border-color: var(--danger); }

/* Tooltip (optional enhancement) */
[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 50;
}

[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* Skeleton loading */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg-hover) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 24px; width: 60%; margin-bottom: 12px; }
.skeleton-card { height: 100px; border-radius: var(--radius-lg); }

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Avatar placeholder */
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.avatar-sm { width: 24px; height: 24px; font-size: 10px; }
.avatar-lg { width: 40px; height: 40px; font-size: 16px; }

/* Kbd (keyboard shortcut) */
kbd {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  font-family: "SF Mono", "Menlo", monospace;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 1px 0 var(--border);
}


/* ==========================================================
   25. LOGIN
   ========================================================== */

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-sidebar);
  background-image: radial-gradient(ellipse at top right, rgba(20, 184, 166, 0.15), transparent 50%);
}

.login-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 44px;
  width: 100%;
  max-width: 400px;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: fadeUp 0.5s ease-out;
}

.login-brand { text-align: center; margin-bottom: 6px; }
.login-logo { height: 32px; width: auto; margin: 0 auto; }

.login-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 32px;
  font-weight: 500;
}

.login-card label { margin-top: 20px; }

.login-card input {
  padding: 12px 16px;
  font-size: 14px;
  min-height: 44px;
}

.login-card .btn {
  padding: 12px 24px;
  font-size: 14px;
  margin-top: 24px;
}


/* ==========================================================
   26. RESPONSIVE
   ========================================================== */

@media (max-width: 1024px) {
  .job-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .stat-cards-5 { grid-template-columns: repeat(3, 1fr); }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .needs-action-header { flex-direction: column; align-items: flex-start; }
  .needs-action-tabs { flex-wrap: wrap; }
  .main-content { padding: 24px 24px; }
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -260px;
    z-index: 99;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
    width: 260px;
  }
  .sidebar.open { left: 0; }

  .sidebar-toggle { display: block; }
  .sidebar-backdrop { display: block; }

  .main-content { padding: 20px 16px; padding-top: 56px; }

  .stat-cards { grid-template-columns: 1fr 1fr; }
  .stat-cards-5 { grid-template-columns: 1fr 1fr; }
  .metrics-row { grid-template-columns: 1fr 1fr; }

  .filter-bar { gap: 6px; }
  .filter-search { margin-left: 0; width: 100%; }
  .filter-search input { width: 100%; }

  .job-header { flex-direction: column; align-items: flex-start; }
  .action-buttons { margin-left: 0; }

  .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-header .page-actions { width: 100%; }

  .qa-grid { grid-template-columns: 1fr; }

  /* Tables become scrollable */
  .table-wrapper { margin: 0 -16px; padding: 0 16px; }

  h1 { font-size: 22px; }
}

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

  .login-card { padding: 32px 24px; margin: 16px; }

  .candidate-score-big { font-size: 36px; }
}

/* Print styles */
@media print {
  .sidebar, .sidebar-toggle, .action-buttons, .filter-bar, .pagination { display: none; }
  .main-content { padding: 0; max-width: 100%; }
  .card, .stat-card, .job-section { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  body { font-size: 12px; }
}
