:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #8b5cf6;
  --accent-light: #f5f3ff;
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --warning-light: #fffbeb;
  --danger: #ef4444;
  --danger-light: #fef2f2;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-secondary: #f1f5f9;
  --border: #e2e8f0;
  --border-focus: #94a3b8;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-main: #0b0f19;
  --bg-card: #111827;
  --bg-card-hover: #1f2937;
  --bg-secondary: #1f2937;
  --border: #374151;
  --border-focus: #4b5563;
  
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-light: #6b7280;
  
  --primary-light: #1e293b;
  --accent-light: #2e1065;
  --success-light: #064e3b;
  --warning-light: #78350f;
  --danger-light: #7f1d1d;
  
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Header & Nav */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

[data-theme="dark"] .navbar {
  background: rgba(17, 24, 39, 0.88);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
  background-color: var(--bg-secondary);
  color: var(--text-main);
  border-color: var(--border);
}
.btn-secondary:hover {
  background-color: var(--border);
}

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

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-icon {
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
}
.btn-icon:hover {
  color: var(--text-main);
  background: var(--bg-secondary);
}

/* Hero & Natural Language Search Section */
.hero-section {
  padding: 3rem 1.5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--text-main) 60%, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2rem;
}

.search-box-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.search-box-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.search-field-icon {
  font-size: 1.15rem;
  margin-left: 0.5rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-divider {
  width: 1px;
  height: 32px;
  background-color: var(--border);
  margin: 0 0.25rem;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 0.98rem;
  color: var(--text-main);
  outline: none;
  padding: 0.5rem 0.25rem;
  min-width: 140px;
}

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

@media (max-width: 768px) {
  .search-box-container {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.75rem;
  }
  .search-divider {
    width: 100%;
    height: 1px;
    margin: 0.1rem 0;
  }
  .search-field {
    width: 100%;
  }
}

/* Quick Tags Section */
.quick-tags-container {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.quick-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.quick-tag-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.query-chip {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.82rem;
}

.query-chip:hover, .query-chip.active {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

.query-chip-loc:hover, .query-chip-loc.active {
  color: #059669;
  border-color: #10b981;
  background: #ecfdf5;
}

/* AI Interpreted Criteria Banner */
.interpreted-banner {
  margin-top: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 0.9rem 1.25rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
  display: none;
}

.interpreted-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.interpreted-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.filter-pill .remove-pill {
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 700;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}
.filter-pill .remove-pill:hover {
  color: var(--danger);
  background: var(--danger-light);
}

/* Main Layout */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
  width: 100%;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  flex: 1;
}

@media (max-width: 900px) {
  .main-container {
    grid-template-columns: 1fr;
  }
}

/* Sidebar Filters */
.filters-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  height: fit-content;
  position: sticky;
  top: 5rem;
  box-shadow: var(--shadow-sm);
}

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

.filters-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.filter-group {
  margin-bottom: 1.5rem;
}

.filter-group-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.filter-select, .filter-input {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
}
.filter-select:focus, .filter-input:focus {
  border-color: var(--primary);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.radio-label, .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Results Content Area */
.results-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 0.5rem;
}

.results-stats {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.results-stats strong {
  color: var(--text-main);
}

.sort-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Job Cards */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.job-card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.company-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
  overflow: hidden;
}
.company-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-title-group {
  flex: 1;
}

.job-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
}
.job-title:hover {
  color: var(--primary);
}

.job-company {
  font-size: 0.92rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.job-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.badge-remote {
  background: var(--success-light);
  color: var(--success);
}
.badge-hybrid {
  background: var(--accent-light);
  color: var(--accent);
}
.badge-onsite {
  background: var(--bg-secondary);
  color: var(--text-muted);
}
.badge-salary {
  background: var(--warning-light);
  color: var(--warning);
}
.badge-dedup {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px dashed var(--primary);
}
.badge-match {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}
.badge-local-sme {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.badge-startup {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.badge-enterprise {
  background: #fdf4ff;
  color: #86198f;
  border: 1px solid #f5d0fe;
}
.badge-source-apna {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
  border: 1px solid #34d399;
}
.badge-source-naukri {
  background: #f0f9ff;
  color: #0369a1;
  font-weight: 700;
  border: 1px solid #7dd3fc;
}
.badge-source-indeed {
  background: #eef2ff;
  color: #3730a3;
  font-weight: 700;
  border: 1px solid #a5b4fc;
}
.badge-source-linkedin {
  background: #faf5ff;
  color: #6b21a8;
  font-weight: 700;
  border: 1px solid #d8b4fe;
}
.badge-source-foundit {
  background: #faf5ff;
  color: #7c2d12;
  font-weight: 700;
  border: 1px solid #fdba74;
}
.badge-source-timesjobs {
  background: #fef2f2;
  color: #991b1b;
  font-weight: 700;
  border: 1px solid #fca5a5;
}
.badge-source-shine {
  background: #fffbeb;
  color: #92400e;
  font-weight: 700;
  border: 1px solid #fcd34d;
}
.badge-source-internshala {
  background: #ecfeff;
  color: #0e7490;
  font-weight: 700;
  border: 1px solid #67e8f9;
}
.badge-source-wellfound {
  background: #fff1f2;
  color: #be123c;
  font-weight: 700;
  border: 1px solid #fda4af;
}
.badge-source-cutshort {
  background: #eef2ff;
  color: #4338ca;
  font-weight: 700;
  border: 1px solid #a5b4fc;
}
.badge-source-hirist {
  background: #f0fdfa;
  color: #0f766e;
  font-weight: 700;
  border: 1px solid #5eead4;
}
.badge-source-iimjobs {
  background: #f8fafc;
  color: #1e293b;
  font-weight: 700;
  border: 1px solid #94a3b8;
}
.badge-source-workindia {
  background: #f0fdf4;
  color: #15803d;
  font-weight: 700;
  border: 1px solid #86efac;
}
.badge-source-freshersworld {
  background: #f7fee7;
  color: #3f6212;
  font-weight: 700;
  border: 1px solid #bef264;
}

[data-theme="dark"] .badge-local-sme {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}
[data-theme="dark"] .badge-startup {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.3);
}
[data-theme="dark"] .badge-enterprise {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.3);
}
[data-theme="dark"] .badge-source-apna {
  background: rgba(5, 150, 105, 0.2);
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.3);
}
[data-theme="dark"] .badge-source-naukri {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.3);
}
[data-theme="dark"] .badge-source-indeed {
  background: rgba(79, 70, 229, 0.2);
  color: #818cf8;
  border-color: rgba(129, 140, 248, 0.3);
}
[data-theme="dark"] .badge-source-linkedin {
  background: rgba(147, 51, 234, 0.2);
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.3);
}
[data-theme="dark"] .badge-source-foundit {
  background: rgba(194, 65, 12, 0.2);
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.3);
}
[data-theme="dark"] .badge-source-timesjobs {
  background: rgba(220, 38, 38, 0.2);
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.3);
}
[data-theme="dark"] .badge-source-shine {
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.3);
}
[data-theme="dark"] .badge-source-internshala {
  background: rgba(14, 116, 144, 0.2);
  color: #22d3ee;
  border-color: rgba(34, 211, 238, 0.3);
}
[data-theme="dark"] .badge-source-wellfound {
  background: rgba(225, 29, 72, 0.2);
  color: #fb7185;
  border-color: rgba(251, 113, 133, 0.3);
}
[data-theme="dark"] .badge-source-cutshort {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border-color: rgba(165, 180, 252, 0.3);
}
[data-theme="dark"] .badge-source-hirist {
  background: rgba(13, 148, 136, 0.2);
  color: #2dd4bf;
  border-color: rgba(45, 212, 191, 0.3);
}
[data-theme="dark"] .badge-source-iimjobs {
  background: rgba(100, 116, 139, 0.2);
  color: #cbd5e1;
  border-color: rgba(203, 213, 225, 0.3);
}
[data-theme="dark"] .badge-source-workindia {
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
}
[data-theme="dark"] .badge-source-freshersworld {
  background: rgba(101, 163, 13, 0.2);
  color: #a3e635;
  border-color: rgba(163, 230, 53, 0.3);
}


.job-snippet {
  font-size: 0.92rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.source-attribution {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.job-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Slide-Over Drawer Modal */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 650px;
  background: var(--bg-card);
  box-shadow: var(--shadow-xl);
  z-index: 55;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.drawer-panel.active {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* User Dashboard & Kanban */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.tab-button {
  padding: 0.65rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.tab-button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.kanban-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1000px) {
  .kanban-grid {
    grid-template-columns: 1fr;
  }
}

.kanban-column {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 400px;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.kanban-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Admin Dashboard Elements */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
}

.data-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.data-table th {
  background: var(--bg-secondary);
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}

.data-table tr:hover {
  background: var(--bg-card-hover);
}

/* Status Indicator Dots */
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.status-healthy { background-color: var(--success); box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
.status-degraded { background-color: var(--warning); }
.status-error { background-color: var(--danger); }
.status-disabled { background-color: var(--text-light); }

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--border);
  transition: .25s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .25s;
  border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(20px); }

/* Toasts */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  animation: slideIn 0.3s ease;
}
.toast-success { border-left-color: var(--success); }
.toast-danger { border-left-color: var(--danger); }

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

/* --- Direct Recruiter Contact & Freshness Styling --- */
.contact-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-top: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.contact-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--border);
}

.contact-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.86rem;
}

.contact-field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.contact-field-value {
  font-weight: 600;
  color: var(--text-main);
  word-break: break-all;
}

.contact-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.95rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.contact-action-btn {
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.job-contact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  margin-top: 0.5rem;
}

.job-contact-bar a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.job-contact-bar a:hover {
  text-decoration: underline;
}

.badge-today {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 700;
}

.badge-recent {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
  border: 1px solid rgba(2, 132, 199, 0.25);
  font-weight: 600;
}

