/* ==========================================================================
   HireFlow AI - Modern Job Portal & Dual-Agent Recruitment Ecosystem
   The Complete Stylesheet (style.css)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Color System */
  --bg-primary: #070a13;
  --bg-secondary: #0d1222;
  --bg-tertiary: #131a30;
  --bg-card: rgba(16, 23, 42, 0.78);
  --bg-card-hover: rgba(22, 32, 58, 0.92);
  --bg-surface: rgba(30, 41, 59, 0.5);
  
  /* Borders & Glass */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(99, 102, 241, 0.35);
  --border-focus: #6366f1;
  --glass-blur: blur(16px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  
  /* Primary & Accents */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.4);
  
  --secondary: #ec4899;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-violet: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Agent Colors */
  --career-agent: #8b5cf6;
  --career-agent-glow: rgba(139, 92, 246, 0.4);
  --talent-agent: #06b6d4;
  --talent-agent-glow: rgba(6, 182, 212, 0.4);
  --bridge-agent: #10b981;
  --bridge-agent-glow: rgba(16, 185, 129, 0.4);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverted: #0f172a;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 35px -5px rgba(99, 102, 241, 0.45);

  /* Dimensions */
  --header-height: 72px;
  --max-width: 1400px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-primary);
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 10% 12%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 16%, rgba(139, 92, 246, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

p {
  color: var(--text-muted);
}

code, pre {
  font-family: var(--font-mono);
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
.app-header {
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 19, 0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: pointer;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.45);
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(30deg);
  animation: shine 4s infinite;
}

.logo-text h1 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 30%, #a5b4fc 75%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text .badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 6px;
  color: #a5b4fc;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* Nav Switcher */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(19, 26, 48, 0.75);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  white-space: nowrap;
}

.nav-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab-btn.active[data-tab="jobs"] {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.45);
}

.nav-tab-btn.active[data-tab="career"] {
  background: linear-gradient(135deg, #7c3aed, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.45);
}

.nav-tab-btn.active[data-tab="talent"] {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.45);
}

.nav-tab-btn.active[data-tab="bridge"] {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.45);
}

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

/* ==========================================================================
   Hero Section - Search & Stats Banner
   ========================================================================== */

.hero-search-section {
  padding: 3rem 0 2rem;
  text-align: center;
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 40%, #c4b5fd 75%, #67e8f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Job Search Bar (Wellfound / Indeed style) */
.job-search-bar {
  background: rgba(19, 26, 48, 0.85);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 980px;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.15);
  flex-wrap: wrap;
}

.search-field {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.9rem;
  background: rgba(13, 18, 34, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.search-field input, .search-field select {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.search-field select option {
  background: var(--bg-secondary);
  color: #fff;
}

/* Quick Filter Chips */
.quick-chips-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.quick-chip {
  font-size: 0.82rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-chip:hover, .quick-chip.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

/* Stats Ticker */
.platform-stats-ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.stat-item .val {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #ffffff;
}

.stat-item .lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* ==========================================================================
   Job Board Layout: Left Filters + Job Cards Feed + Right Inspector
   ========================================================================== */

.job-portal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 1024px) {
  .job-portal-layout {
    grid-template-columns: 1fr;
  }
}

/* Filter Sidebar */
.filters-sidebar {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.filter-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.filter-option input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
}

/* Active Candidate Match Profile Card in Sidebar */
.candidate-profile-widget {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(13, 18, 34, 0.8));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.candidate-profile-widget .head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.candidate-profile-widget .avatar {
  font-size: 2rem;
}

/* ==========================================================================
   Job Cards (Modern Job Platform Standard)
   ========================================================================== */

.jobs-feed-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.jobs-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.job-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: transparent;
  transition: background var(--transition-fast);
}

.job-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.job-card.active, .job-card:hover::before {
  background: linear-gradient(to bottom, #6366f1, #06b6d4);
}

.job-card-inner {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.company-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(19, 26, 48, 0.9);
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.job-details {
  flex: 1;
}

.job-details-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.job-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  transition: color var(--transition-fast);
}

.job-card:hover .job-title {
  color: #c7d2fe;
}

.fit-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: var(--font-heading);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.fit-score-badge.high {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.company-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.company-meta strong {
  color: #ffffff;
}

.job-tags-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.job-tag {
  font-size: 0.78rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.job-tag.tag-salary {
  background: rgba(16, 185, 129, 0.12);
  color: #a7f3d0;
  border-color: rgba(16, 185, 129, 0.25);
  font-weight: 600;
}

.job-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* ==========================================================================
   Job Inspection Drawer / Modal
   ========================================================================== */

.job-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 19, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.job-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.job-modal-dialog {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 88vh;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.3);
  transform: scale(0.96) translateY(12px);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.job-modal-backdrop.open .job-modal-dialog {
  transform: scale(1) translateY(0);
}

.job-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(13, 18, 34, 0.95);
}

.job-modal-body {
  padding: 2rem;
  overflow-y: auto;
  line-height: 1.7;
}

.job-modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 10, 19, 0.6);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Agent Views & General Components (Buttons, Panels, Inputs)
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4338ca);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #3730a3);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
  transform: translateY(-1px);
}

.btn-career {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}
.btn-career:hover {
  background: linear-gradient(135deg, #9333ea, #7e22ce);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
  transform: translateY(-1px);
}

.btn-talent {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}
.btn-talent:hover {
  background: linear-gradient(135deg, #0891b2, #0369a1);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
  transform: translateY(-1px);
}

.btn-bridge {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}
.btn-bridge:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

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

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  cursor: pointer;
}
.btn-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* Tab Switching between Views */
.tab-content {
  display: none;
  animation: fadeIn 0.35s ease;
  padding-bottom: 3rem;
}

.tab-content.active {
  display: block;
}

/* Sub-tabs inside Career and Talent */
.sub-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
  padding-bottom: 0.25rem;
  overflow-x: auto;
}

.sub-tab-btn {
  background: transparent;
  border: none;
  padding: 0.65rem 1.15rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.sub-tab-btn:hover {
  color: var(--text-main);
}

.sub-tab-btn.active {
  color: #ffffff;
}

.sub-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.sub-tab-btn.career-active.active::after {
  background: var(--career-agent);
  box-shadow: 0 0 10px var(--career-agent);
}

.sub-tab-btn.talent-active.active::after {
  background: var(--talent-agent);
  box-shadow: 0 0 10px var(--talent-agent);
}

.sub-content {
  display: none;
  animation: fadeIn 0.3s ease;
}
.sub-content.active {
  display: block;
}

/* Form inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(13, 18, 34, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  background: rgba(13, 18, 34, 1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* Presets Bar */
.presets-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.preset-pill {
  font-size: 0.78rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.preset-pill:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-violet {
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Diff View */
.diff-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .diff-view { grid-template-columns: 1fr; }
}

.diff-box {
  background: rgba(13, 18, 34, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

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

.diff-content {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  white-space: pre-wrap;
  flex: 1;
}

.diff-content .highlight {
  background: rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-weight: 600;
}

.diff-content .metric {
  background: rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Roadmap */
.roadmap-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.roadmap-card {
  background: rgba(13, 18, 34, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all var(--transition-normal);
}

.roadmap-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateX(4px);
}

.roadmap-card.completed {
  border-color: rgba(16, 185, 129, 0.4);
}

.roadmap-step-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.15);
  color: var(--career-agent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-heading);
  flex-shrink: 0;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.roadmap-content { flex: 1; }
.roadmap-title {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.roadmap-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* Interview Stage */
.interview-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.12) 0%, rgba(13, 18, 34, 0.9) 70%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(139, 92, 246, 0.3);
  margin-bottom: 1.5rem;
}

.avatar-halo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  padding: 4px;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 35px rgba(139, 92, 246, 0.5);
}

.avatar-halo.speaking {
  animation: pulse-ring 1.8s infinite;
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.interview-question-box {
  background: rgba(19, 26, 48, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  max-width: 720px;
  margin-bottom: 1.5rem;
  font-size: 1.15rem;
  font-family: var(--font-heading);
  color: #fff;
}

#waveformCanvas {
  width: 100%;
  max-width: 500px;
  height: 50px;
  margin-bottom: 1.5rem;
}

.interview-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.mic-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
  transition: all var(--transition-normal);
}
.mic-btn:hover {
  transform: scale(1.08);
}
.mic-btn.listening {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  animation: pulse-ring 1.5s infinite;
  box-shadow: 0 0 35px rgba(244, 63, 94, 0.7);
}

.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.score-metric {
  background: rgba(13, 18, 34, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.score-metric .num {
  font-size: 2.25rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent-emerald);
}

/* Candidate Storyteller */
.storyteller-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08), rgba(13, 18, 34, 0.9));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.story-sentences {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #f1f5f9;
  font-family: var(--font-heading);
  margin-bottom: 1.5rem;
}

.story-sentence-item {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.75rem;
}

.story-sentence-item::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--talent-agent);
  font-weight: 800;
}

/* Matrix Table */
.matrix-table-container {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(13, 18, 34, 0.7);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.matrix-table th {
  padding: 1rem 1.25rem;
  background: rgba(19, 26, 48, 0.8);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.matrix-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* The Bridge */
.bridge-hero {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(13, 18, 34, 0.9));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2rem;
}

.match-reason-card {
  background: rgba(13, 18, 34, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.transparency-meter {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0.5rem 0;
}

.transparency-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  border-radius: var(--radius-full);
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(99, 102, 241, 0.25);
  transform: scale(0.95) translateY(10px);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.modal-backdrop.open .modal-dialog {
  transform: scale(1) translateY(0);
}

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

.modal-body {
  padding: 1.75rem;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: rgba(7, 10, 19, 0.4);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(19, 26, 48, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  animation: slideInToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 380px;
}

.toast.toast-success { border-left: 4px solid var(--accent-emerald); }
.toast.toast-info { border-left: 4px solid var(--primary); }
.toast.toast-career { border-left: 4px solid var(--career-agent); }
.toast.toast-talent { border-left: 4px solid var(--talent-agent); }
.toast.toast-bridge { border-left: 4px solid var(--bridge-agent); }

/* Keyframe Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInToast {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes shine {
  0% { transform: rotate(30deg) translate(-100%, -100%); }
  20%, 100% { transform: rotate(30deg) translate(100%, 100%); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
  70% { transform: scale(1.03); box-shadow: 0 0 0 20px rgba(139, 92, 246, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

/* Footer */
.app-footer {
  margin-top: auto;
  border-top: var(--glass-border);
  background: rgba(13, 18, 34, 0.85);
  backdrop-filter: var(--glass-blur);
  padding: 2.5rem 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
