/* ===================================================================
   AI-Powered Intelligent Video Interview Assessment System
   Design System & Styling - Dark & Light Modern Themes
   Full Multi-Device Responsiveness (Mobile, Tablet, Laptop, Desktop)
   =================================================================== */

:root {
  /* Dark Theme (Default) */
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-card: rgba(22, 30, 49, 0.75);
  --bg-card-hover: rgba(30, 41, 67, 0.85);
  --bg-elevated: rgba(17, 24, 39, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.25);
  
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px var(--primary-glow);
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --theme-transition: background-color 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ===================================================================
   Light Theme Token Overrides
   =================================================================== */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --bg-elevated: #ffffff;
  --border-color: rgba(0, 0, 0, 0.09);
  --border-focus: rgba(99, 102, 241, 0.7);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-glow: rgba(79, 70, 229, 0.2);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 25px rgba(79, 70, 229, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
  transition: var(--theme-transition);
}

[data-theme="light"] body {
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(6, 182, 212, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
}

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

/* Global Theme Transition Smoothing */
body, .navbar, .glass-card, .form-control, .btn, .portal-tabs, .footer, .feature-card {
  transition: var(--theme-transition);
}

/* ===================================================================
   Typography & Utilities
   =================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
}

.gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #6366f1 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 60%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-accent {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ===================================================================
   Navigation Bar & Responsive Header
   =================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(11, 15, 25, 0.85);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.90);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 0 20px var(--primary-glow);
  flex-shrink: 0;
}

/* Navigation Links & User Controls */
.nav-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.nav-link {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 6px 0;
}

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

[data-theme="light"] .nav-link:hover, [data-theme="light"] .nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.badge-role {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

[data-theme="light"] .badge-role {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  border-color: rgba(79, 70, 229, 0.25);
}

/* Header Action Buttons (Theme Toggle & Mobile Menu) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  flex-shrink: 0;
  user-select: none;
}

.theme-toggle-btn:hover {
  transform: scale(1.08);
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

[data-theme="light"] .theme-toggle-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.nav-toggle-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition);
  outline: none;
  flex-shrink: 0;
  user-select: none;
}

.nav-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary);
}

[data-theme="light"] .nav-toggle-btn {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* ===================================================================
   Buttons & Form Controls
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  outline: none;
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4338ca);
  color: #ffffff !important;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border-color);
}

[data-theme="light"] .btn-secondary {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary:hover {
  background: #f1f5f9;
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.btn-danger {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.25);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

[data-theme="light"] .btn-outline {
  color: var(--text-secondary);
  border-color: #cbd5e1;
}

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

[data-theme="light"] .btn-outline:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.02rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  width: 100%;
}

.input-group label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

[data-theme="light"] .form-control {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* ===================================================================
   Glassmorphic Cards & Layout
   =================================================================== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="light"] .glass-card:hover {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: var(--shadow-lg);
}

.glass-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===================================================================
   Hero Section
   =================================================================== */
.hero {
  padding: 70px 0 50px;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 0.85rem;
  color: #a5b4fc;
  margin-bottom: 24px;
}

[data-theme="light"] .hero-tag {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.2);
  color: #4f46e5;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.18;
  margin-bottom: 22px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(0.98rem, 2vw, 1.18rem);
  color: var(--text-secondary);
  max-width: 750px;
  margin: 0 auto 34px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* ===================================================================
   Feature Grid & Cards
   =================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .feature-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 18px;
}

.icon-blue { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

/* ===================================================================
   Progress Bars & Skill Badges
   =================================================================== */
.progress-container {
  margin-bottom: 16px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

[data-theme="light"] .progress-bar-bg {
  background: #e2e8f0;
}

.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s ease-in-out;
}

.fill-primary { background: linear-gradient(90deg, #6366f1, #818cf8); }
.fill-emerald { background: linear-gradient(90deg, #10b981, #34d399); }
.fill-cyan { background: linear-gradient(90deg, #06b6d4, #38bdf8); }
.fill-amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.badge-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 4px;
}

[data-theme="light"] .badge-tag {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

.badge-tag.tech {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #c7d2fe;
}

[data-theme="light"] .badge-tag.tech {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.25);
  color: #4338ca;
}

.badge-tag.soft {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

[data-theme="light"] .badge-tag.soft {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
  color: #047857;
}

/* ===================================================================
   Circular Radial Score Gauge
   =================================================================== */
.radial-gauge-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto;
}

.radial-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.radial-gauge-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 12;
}

[data-theme="light"] .radial-gauge-bg {
  stroke: rgba(0, 0, 0, 0.08);
}

.radial-gauge-progress {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s ease-out;
}

.radial-gauge-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.radial-gauge-val {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1;
}

.radial-gauge-label {
  font-size: 0.85rem;
  color: var(--accent-emerald);
  font-weight: 600;
  margin-top: 4px;
}

/* ===================================================================
   Interview Room & Video Preview
   =================================================================== */
.interview-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.video-container {
  position: relative;
  width: 100%;
  height: 480px;
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.video-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.canvas-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: scaleX(-1);
}

.video-status-bar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.rec-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.rec-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-rose);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

.timer-badge {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.video-metrics-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  font-size: 0.82rem;
  gap: 8px;
  flex-wrap: wrap;
}

[data-theme="light"] .video-metrics-overlay {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

.metric-pill {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

/* Audio Waveform Simulator */
.waveform-bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
}

.waveform-bar {
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite alternate;
}

@keyframes wave {
  0% { height: 4px; }
  100% { height: 22px; }
}

/* Question Banner */
.question-banner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.question-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
}

[data-theme="light"] .question-badge {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
}

.question-title {
  font-size: 1.25rem;
  line-height: 1.4;
  margin-bottom: 12px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
  width: calc(100vw - 48px);
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.toast:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  word-break: break-word;
}

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.toast-message {
  line-height: 1.4;
  font-weight: 500;
}

.toast-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  line-height: 1;
  transition: var(--transition);
  flex-shrink: 0;
}

.toast-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.toast.success {
  border-left: 4px solid var(--accent-emerald);
}
.toast.success .toast-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.toast.error {
  border-left: 4px solid var(--accent-rose);
}
.toast.error .toast-icon {
  background: rgba(244, 63, 94, 0.2);
  color: #f87171;
}

.toast.warning {
  border-left: 4px solid var(--accent-amber);
}
.toast.warning .toast-icon {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.toast.info {
  border-left: 4px solid var(--primary);
}
.toast.info .toast-icon {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
}

@keyframes toastSlideIn {
  from {
    transform: translateY(24px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  to {
    transform: translateY(24px) scale(0.95);
    opacity: 0;
  }
}

/* ===================================================================
   Table Styling (Admin & Recruiter)
   =================================================================== */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.custom-table th {
  padding: 14px 18px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .custom-table th {
  background: rgba(241, 245, 249, 0.7);
  color: #475569;
  border-bottom: 1px solid #e2e8f0;
}

.custom-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.92rem;
  color: var(--text-primary);
}

[data-theme="light"] .custom-table td {
  border-bottom: 1px solid #f1f5f9;
}

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

[data-theme="light"] .custom-table tr:hover td {
  background: rgba(79, 70, 229, 0.04);
}

.footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

[data-theme="light"] .footer {
  border-top-color: #e2e8f0;
}

/* ===================================================================
   Portal Selector & Access Components
   =================================================================== */
.portal-tabs {
  display: flex;
  background: rgba(11, 15, 25, 0.6);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  gap: 4px;
}

[data-theme="light"] .portal-tabs {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.portal-tab {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.portal-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .portal-tab:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.8);
}

.portal-tab.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.portal-badge-notice {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}

/* Dropzone styling */
.dropzone {
  border: 2px dashed rgba(99, 102, 241, 0.4);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  background: rgba(17, 24, 39, 0.4);
  cursor: pointer;
  transition: var(--transition);
}

[data-theme="light"] .dropzone {
  background: #f8fafc;
  border-color: rgba(79, 70, 229, 0.4);
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  transform: scale(1.01);
}

/* ===================================================================
   Responsive Design & Breakpoint Media Queries
   =================================================================== */

/* Tablet & Smaller Laptop (max-width: 1024px) */
@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }

  .grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .interview-wrapper {
    grid-template-columns: 1fr;
  }

  .score-card-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile & Tablet Portrait (max-width: 860px) */
@media (max-width: 860px) {
  .nav-toggle-btn {
    display: inline-flex;
  }

  .nav-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    display: none;
    z-index: 1500;
  }

  .nav-menu-wrapper.open {
    display: flex;
    animation: slideDown 0.25s ease-out;
  }

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

  .nav-links {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 12px;
  }

  .nav-link {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
  }

  .nav-link.active {
    background: rgba(99, 102, 241, 0.1);
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-user {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    gap: 12px;
  }

  .nav-user .btn {
    width: 100%;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Mobile Devices (max-width: 640px) */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .navbar {
    padding: 10px 0;
  }

  .brand-logo span {
    font-size: 1.05rem;
  }

  .brand-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .glass-card {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  .hero {
    padding: 40px 0 30px;
  }

  .hero-tag {
    font-size: 0.78rem;
    padding: 4px 12px;
    margin-bottom: 18px;
    text-align: left;
  }

  .hero h1 {
    font-size: 1.95rem;
    line-height: 1.22;
    margin-bottom: 16px;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 24px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portal-tabs {
    flex-direction: column;
    gap: 6px;
  }

  .video-container {
    height: 300px;
  }

  .video-metrics-overlay {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .custom-table th, .custom-table td {
    padding: 12px 10px;
    font-size: 0.84rem;
  }

  .toast-container {
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-width: none;
  }

  .footer {
    margin-top: 40px;
    padding: 24px 0;
  }
}

/* Extra Small Phones (max-width: 380px) */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 1.7rem;
  }

  .brand-logo span span.gradient-text {
    display: none; /* keep clean on tiny screens */
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.88rem;
  }
}

/* ===================================================================
   Candidate Profile Photo & Candidate ID System Styles
   =================================================================== */

/* Photo Capture & Upload Widget */
.photo-capture-box {
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.photo-capture-box:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.photo-preview-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
}

.photo-preview-img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  background: var(--bg-elevated);
  display: block;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  border: 2px dashed rgba(99, 102, 241, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2.2rem;
  transition: var(--transition);
}

.photo-badge-indicator {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: var(--accent-emerald);
  color: #fff;
  border-radius: var(--radius-full);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--bg-card);
}

.photo-btn-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Candidate ID Badges & Chips */
.candidate-id-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}

[data-theme="light"] .candidate-id-badge {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.3);
  color: #4338ca;
}

.candidate-id-badge .copy-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  color: inherit;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: var(--transition);
}

.candidate-id-badge .copy-icon-btn:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.08);
}

/* Header Profile Card */
.candidate-profile-header-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.candidate-profile-header-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--accent-cyan));
}

.candidate-avatar-large {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: 0 0 25px var(--primary-glow);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.candidate-avatar-nav {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--primary);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

.candidate-avatar-table {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid rgba(99, 102, 241, 0.4);
  background: var(--bg-secondary);
  flex-shrink: 0;
}

/* Webcam Modal */
.webcam-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 16px;
}

.webcam-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.webcam-modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.webcam-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--border-color);
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.webcam-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* Mirror view for natural webcam experience */
}

.webcam-viewport canvas {
  display: none;
}

.webcam-flash {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.webcam-flash.flash {
  opacity: 0.9;
}

.webcam-guide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}

.webcam-guide-oval {
  width: 52%;
  height: 72%;
  border: 2px dashed rgba(129, 140, 248, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: var(--transition);
}

.webcam-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.shutter-btn {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 4px solid var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--primary);
  font-size: 1.4rem;
}

.shutter-btn:hover {
  transform: scale(1.08);
  background: #f1f5f9;
}

.shutter-btn:active {
  transform: scale(0.95);
}

/* Success Modal with Candidate ID */
.candidate-id-success-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin: 20px 0;
}

/* ===================================================================
   Personal Student Project Presentation Styles (Rahul Kumar Pandit)
   Final Year Computer Engineering Major Project - Mid-West University
   =================================================================== */

/* Academic Project Tag */
.project-academic-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

[data-theme="light"] .project-academic-tag {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.25);
  color: #4f46e5;
}

.hero-author-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-author-credit strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Project Quick Specs Grid */
.project-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(12px);
}

.spec-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}

.spec-card .spec-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: inline-block;
}

.spec-card .spec-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.spec-card .spec-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Section Header Personalization */
.section-badge {
  display: inline-block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

/* Architecture Flow Presentation */
.arch-diagram-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 24px;
  box-shadow: var(--shadow-md);
}

.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.arch-layer {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
}

.arch-layer:hover {
  border-color: var(--border-focus);
}

.arch-layer-badge {
  min-width: 140px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.badge-layer-client {
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-layer-api {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-layer-ai {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

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

.arch-layer-content {
  flex: 1;
}

.arch-layer-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.arch-layer-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.arch-connector {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.2rem;
  margin: -6px 0;
}

/* Multimodal 10D Vector Grid */
.vector-10d-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.vector-feature-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.vector-num {
  font-size: 0.78rem;
  font-weight: 800;
  background: var(--primary);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vector-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.vector-info span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Screenshot Figure Presentation */
.project-figure-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 24px 0;
  transition: var(--transition);
}

.project-figure-card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-lg);
}

.project-figure-img-wrap {
  width: 100%;
  background: #060911;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.project-figure-img-wrap img {
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.project-figure-caption {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-elevated);
}

.project-figure-caption-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.project-figure-caption-text strong {
  color: var(--text-primary);
}

.project-figure-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Developer Showcase Card */
.developer-showcase-card {
  background: linear-gradient(135deg, rgba(22, 30, 49, 0.85) 0%, rgba(17, 24, 39, 0.95) 100%);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .developer-showcase-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(79, 70, 229, 0.08);
}

/* Adaptive Difficulty Bands */
.adaptive-bands-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.adaptive-band-card {
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: center;
  border: 1px solid transparent;
}

.band-poor {
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.3);
  color: #fb7185;
}

.band-average {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.band-good {
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.3);
  color: #38bdf8;
}

.band-excellent {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.adaptive-band-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.adaptive-band-card span {
  font-size: 0.78rem;
  display: block;
  opacity: 0.9;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
  .project-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .adaptive-bands-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .arch-layer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .project-specs-grid {
    grid-template-columns: 1fr;
  }
  .adaptive-bands-row {
    grid-template-columns: 1fr;
  }
  .developer-header {
    flex-direction: column;
    text-align: center;
  }
  .developer-showcase-card {
    padding: 24px 18px;
  }
}

/* ==========================================================================
   Candidate Search & Comprehensive Candidate Report Styles
   ========================================================================== */

.candidate-search-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.candidate-search-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366f1, #06b6d4, #10b981);
}

.search-input-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.search-input-field {
  flex: 1;
  min-width: 280px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-main);
  transition: var(--transition-normal);
}

.search-input-field:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.candidate-quick-chips {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.candidate-chip {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-display);
}

.candidate-chip:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: #6366f1;
  transform: translateY(-1px);
}

/* Side-by-Side Photos Comparison Grid */
.photo-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}

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

.photo-compare-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-compare-img-wrap {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 2px solid var(--border-color);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.photo-compare-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-compare-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.photo-compare-time {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Question & Answer Cards */
.qa-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  page-break-inside: avoid;
}

.qa-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.qa-answer-box {
  background: var(--bg-secondary);
  border-left: 3px solid #6366f1;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

.qa-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.qa-metric-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.qa-metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.qa-metric-val {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-display);
  margin-top: 4px;
}

/* Adaptive Flow Progression */
.adaptive-flow-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.adaptive-step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  page-break-inside: avoid;
}

.adaptive-step-number {
  background: #6366f1;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Timeline Component */
.timeline-container {
  position: relative;
  padding-left: 32px;
  margin-top: 20px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border-color);
}

.timeline-node {
  position: relative;
  margin-bottom: 24px;
}

.timeline-node:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  z-index: 2;
}

.timeline-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

/* A4 Print Layout Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11pt !important;
    line-height: 1.4 !important;
  }

  .navbar,
  .no-print,
  #admin-search-section,
  .btn,
  .brand-logo,
  button,
  .nav-user {
    display: none !important;
  }

  .container {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .glass-card,
  .qa-card,
  .candidate-search-card,
  .photo-compare-card,
  .adaptive-step-card,
  .timeline-content {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    color: #0f172a !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin-bottom: 14pt !important;
  }

  .qa-answer-box {
    background: #f8fafc !important;
    border-left: 3px solid #3b82f6 !important;
    color: #0f172a !important;
  }

  .qa-metric-item,
  .photo-compare-img-wrap {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
  }

  .badge-role,
  .badge-tag {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
  }

  .print-header-official {
    display: block !important;
    text-align: center;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 12pt;
    margin-bottom: 16pt;
  }

  .print-footer-official {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 8pt;
    color: #64748b;
    border-top: 1px solid #cbd5e1;
    padding-top: 4pt;
  }

  .gradient-text {
    background: none !important;
    -webkit-text-fill-color: #0f172a !important;
    color: #0f172a !important;
  }

  /* Table styling in print */
  .custom-table {
    border: 1px solid #cbd5e1 !important;
  }
  .custom-table th,
  .custom-table td {
    border-bottom: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    padding: 6pt 8pt !important;
  }
  .custom-table th {
    background: #f1f5f9 !important;
  }

  /* Optimize photo sizes for print */
  .photo-compare-img-wrap {
    width: 140px !important;
    height: 140px !important;
  }
}

.print-header-official,
.print-footer-official {
  display: none;
}

/* ===================================================================
   EMAIL OTP VERIFICATION SYSTEM - PROFESSIONAL ANIMATIONS & UI
   Step transitions, 6-digit inputs, countdown timer, theme support
   =================================================================== */

/* Multi-step Container Transitions */
.reg-step-container {
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.reg-step-hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
}

.reg-step-active {
  display: block !important;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* OTP Verification Card Entrance */
.otp-verification-card {
  animation: otpCardEntrance 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  text-align: center;
}

@keyframes otpCardEntrance {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Email Verification Icon with Floating Motion */
.otp-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.otp-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  border: 2px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
  animation: emailIconFloat 3.2s ease-in-out infinite, emailIconEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: var(--theme-transition);
}

[data-theme="light"] .otp-icon-circle {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.25);
  color: #4f46e5;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.15);
}

@keyframes emailIconFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.03);
  }
}

@keyframes emailIconEntrance {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.otp-envelope-svg {
  width: 36px;
  height: 36px;
  stroke: currentColor;
}

/* Headings and Email Badge */
.otp-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.otp-subtext {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 22px;
}

.otp-highlight-email {
  color: #818cf8;
  font-weight: 700;
  word-break: break-all;
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-sm);
}

[data-theme="light"] .otp-highlight-email {
  color: #4f46e5;
  background: rgba(79, 70, 229, 0.08);
}

/* 6-Digit OTP Input Boxes */
.otp-inputs-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 20px 0 16px;
  transition: transform 0.2s ease;
}

.otp-box {
  width: 50px;
  height: 58px;
  text-align: center;
  font-size: 1.65rem;
  font-weight: 800;
  font-family: var(--font-display);
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
  caret-color: var(--primary);
  -moz-appearance: textfield;
}

.otp-box::-webkit-outer-spin-button,
.otp-box::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.otp-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
  transform: scale(1.05);
  background: var(--bg-card);
}

/* Digit Pop Animation on Entry */
.otp-box.pop {
  animation: otpPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes otpPop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.16);
    border-color: var(--accent-cyan);
  }
  100% {
    transform: scale(1.05);
  }
}

/* Subtle Shake on Invalid OTP */
.otp-inputs-row.shake {
  animation: subtleShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes subtleShake {
  0%, 100% {
    transform: translateX(0);
  }
  15%, 45%, 75% {
    transform: translateX(-6px);
  }
  30%, 60%, 90% {
    transform: translateX(6px);
  }
}

.otp-box.error {
  border-color: var(--accent-rose) !important;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.25) !important;
}

/* Countdown Timer */
.otp-timer-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.otp-timer-text strong {
  font-weight: 700;
  color: #34d399;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.otp-timer-text strong.warning {
  color: var(--accent-amber);
}

.otp-timer-text strong.expired {
  color: var(--accent-rose);
}

.otp-expired-msg {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 18px;
  animation: otpCardEntrance 0.3s ease forwards;
}

/* Resend Section */
.otp-resend-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.otp-resend-btn {
  background: none;
  border: none;
  color: #818cf8;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, opacity 0.2s ease;
  font-family: inherit;
}

[data-theme="light"] .otp-resend-btn {
  color: #4f46e5;
}

.otp-resend-btn:hover:not(:disabled) {
  text-decoration: underline;
  color: var(--accent-cyan);
}

.otp-resend-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: none;
}

.btn-text-link {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-text-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

/* Circular Checkmark Success Animation */
.otp-success-card {
  text-align: center;
  padding: 24px 12px;
  animation: otpCardEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.otp-success-check-circle {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.25);
}

.checkmark-svg {
  width: 48px;
  height: 48px;
  stroke: #34d399;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkmark-circle {
  stroke: #34d399;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
  stroke: #34d399;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeCheck 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.45s forwards;
}

@keyframes strokeCircle {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes strokeCheck {
  100% {
    stroke-dashoffset: 0;
  }
}

/* Spinner inside button */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

/* Error banner */
.otp-error-banner {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-sm);
  color: #fca5a5;
  font-size: 0.88rem;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: none;
  animation: otpCardEntrance 0.25s ease forwards;
}

/* Responsive Styles for OTP Inputs */
@media (max-width: 480px) {
  .otp-inputs-row {
    gap: 6px;
  }
  .otp-box {
    width: 44px;
    height: 52px;
    font-size: 1.4rem;
  }
}

@media (max-width: 380px) {
  .otp-inputs-row {
    gap: 4px;
  }
  .otp-box {
    width: 38px;
    height: 48px;
    font-size: 1.25rem;
  }
}

/* ===================================================================
   Enhanced Password Input & Visibility Toggle
   =================================================================== */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrap .form-control {
  padding-right: 44px;
  width: 100%;
}

.password-eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 1.15rem;
  line-height: 1;
  user-select: none;
}

.password-eye-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .password-eye-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* ===================================================================
   Password Strength Meter
   =================================================================== */
.password-strength-container {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
}

.password-strength-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

[data-theme="light"] .password-strength-track {
  background: rgba(0, 0, 0, 0.08);
}

.password-strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.password-strength-bar.weak {
  width: 25%;
  background-color: var(--accent-rose);
}

.password-strength-bar.fair {
  width: 50%;
  background-color: var(--accent-amber);
}

.password-strength-bar.good {
  width: 75%;
  background-color: #38bdf8;
}

.password-strength-bar.strong {
  width: 100%;
  background-color: var(--accent-emerald);
}

.password-strength-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.password-strength-label {
  font-weight: 600;
  transition: color 0.2s ease;
}

/* ===================================================================
   Modern File Upload Dropzone
   =================================================================== */
.dropzone {
  border: 2px dashed rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  background: rgba(22, 30, 49, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .dropzone {
  background: rgba(241, 245, 249, 0.6);
  border-color: rgba(99, 102, 241, 0.3);
}

.dropzone:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.12);
}

.dropzone.dragover {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  transform: scale(1.01);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
}

.dropzone-file-selected {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  margin-top: 14px;
  color: #a5b4fc;
  font-weight: 600;
  font-size: 0.9rem;
  animation: toastSlideIn 0.3s ease;
}

[data-theme="light"] .dropzone-file-selected {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
}

/* ===================================================================
   Live Audio Waveform Animation Enhancements
   =================================================================== */
.waveform-bars {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 4px;
}

.waveform-bar {
  width: 3px;
  height: 4px;
  min-height: 4px;
  background: linear-gradient(180deg, #818cf8 0%, #4f46e5 100%);
  border-radius: 2px;
  transition: height 0.08s ease, background 0.2s ease;
}

.waveform-bars.active .waveform-bar {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%);
}

/* ===================================================================
   Modal Dialog Component
   =================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

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

.modal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-body {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ===================================================================
   Export & Utility Buttons
   =================================================================== */
.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-export:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

[data-theme="light"] .btn-export {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.35);
}

/* ===================================================================
   Skeleton Loader Components
   =================================================================== */
.skeleton-box {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

[data-theme="light"] .skeleton-box {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.04) 25%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.04) 75%);
  background-size: 200% 100%;
}

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

/* ===================================================================
   Candidate Portal - Professional Sidebar Navigation & App Layout
   =================================================================== */

.candidate-app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 12% 15%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 88% 85%, rgba(6, 182, 212, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 0%, transparent 60%);
  background-attachment: fixed;
}

[data-theme="light"] .candidate-app-layout {
  background-image: 
    radial-gradient(circle at 12% 15%, rgba(99, 102, 241, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 88% 85%, rgba(6, 182, 212, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.03) 0%, transparent 60%);
}

/* Candidate Sidebar */
.candidate-sidebar {
  width: 250px;
  min-width: 250px;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  background: #0d1527;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  z-index: 100;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overflow-x: hidden;
  user-select: none;
}

[data-theme="light"] .candidate-sidebar {
  background: #0d1527;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.candidate-sidebar::-webkit-scrollbar {
  width: 4px;
}
.candidate-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
}

/* Collapsed Sidebar on Desktop */
.candidate-sidebar.collapsed {
  width: 80px;
  min-width: 80px;
}

.candidate-sidebar.collapsed .sidebar-brand-text,
.candidate-sidebar.collapsed .nav-label,
.candidate-sidebar.collapsed .nav-badge,
.candidate-sidebar.collapsed .candidate-mini-text,
.candidate-sidebar.collapsed .sidebar-footer-text,
.candidate-sidebar.collapsed .sidebar-collapse-btn span:not(.collapse-icon) {
  display: none !important;
}

.candidate-sidebar.collapsed .sidebar-nav-item {
  justify-content: center;
  padding: 12px 0;
  position: relative;
}

.candidate-sidebar.collapsed .sidebar-nav-item .nav-icon {
  margin-right: 0;
}

.candidate-sidebar.collapsed .candidate-mini-profile {
  justify-content: center;
  padding: 14px 8px;
}

.candidate-sidebar.collapsed .sidebar-brand-header {
  justify-content: center;
  padding: 18px 0;
}

/* Tooltip on hover for collapsed sidebar */
.candidate-sidebar.collapsed .sidebar-nav-item:hover::after {
  content: attr(data-title);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  z-index: 1000;
  pointer-events: none;
  animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
  from { opacity: 0; transform: translateY(-50%) translateX(-4px); }
  to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* Sidebar Brand Header */
.sidebar-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.sidebar-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}

.sidebar-brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.sidebar-brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* Candidate Mini Profile Card in Sidebar */
.candidate-mini-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

[data-theme="light"] .candidate-mini-profile {
  background: rgba(0, 0, 0, 0.02);
}

.candidate-mini-profile:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
}

.candidate-mini-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.candidate-mini-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  background: var(--bg-secondary);
}

.candidate-mini-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: var(--accent-emerald);
  border: 2px solid var(--bg-primary);
  border-radius: 50%;
}

.candidate-mini-text {
  flex: 1;
  min-width: 0;
}

.candidate-mini-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-mini-id {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Navigation Section */
.sidebar-nav-container {
  flex: 1;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
  padding: 10px 12px 4px 12px;
}

.candidate-sidebar.collapsed .sidebar-nav-section-title {
  display: none;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  position: relative;
  background: transparent;
  width: 100%;
  text-align: left;
}

.sidebar-nav-item:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
  border-color: transparent;
  transform: translateX(2px);
}

.sidebar-nav-item.active,
[data-theme="light"] .sidebar-nav-item.active {
  color: #ffffff !important;
  background: #2563eb !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

.sidebar-nav-item.active .nav-icon {
  color: #ffffff !important;
}

.sidebar-nav-item.active .nav-icon svg {
  stroke: #ffffff !important;
}

.sidebar-nav-item.active .nav-label {
  color: #ffffff !important;
  font-weight: 600;
}

.sidebar-nav-item .nav-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sidebar-nav-item:hover .nav-icon {
  transform: scale(1.1);
}

.sidebar-nav-item .nav-label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav-item .nav-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 700;
  line-height: 1.2;
}

.nav-badge.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.nav-badge.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.nav-badge.badge-danger {
  background: rgba(244, 63, 94, 0.2);
  color: #f87171;
}

.nav-badge.badge-count {
  background: var(--primary);
  color: #fff;
  min-width: 18px;
  text-align: center;
}

/* Logout Item */
.sidebar-nav-item.nav-logout {
  color: #f87171;
  margin-top: 8px;
}

.sidebar-nav-item.nav-logout:hover {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.25);
  color: #f43f5e;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: var(--radius-sm);
}

.sidebar-system-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.sidebar-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-collapse-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  transition: var(--transition);
}

.sidebar-collapse-btn:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--text-primary);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Main Content Area */
.candidate-main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Candidate Top Bar */
.candidate-topbar {
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 16px;
}

[data-theme="light"] .candidate-topbar {
  background: rgba(248, 250, 252, 0.88);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: var(--transition);
}

.sidebar-mobile-toggle:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary);
}

.topbar-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.topbar-breadcrumbs span.active-crumb {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.05rem;
  font-family: var(--font-display);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-readiness-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.topbar-readiness-pill.pill-warning {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.topbar-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  position: relative;
  transition: var(--transition);
}

.topbar-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
}

.topbar-btn-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-rose);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}

/* View Pane Container */
.candidate-views-container {
  flex: 1;
  padding: 32px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.view-pane {
  display: none;
  animation: paneFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.view-pane.active {
  display: block;
}

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

/* Section Header in Panes */
.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.pane-title {
  font-size: 1.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pane-subtitle {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 4px;
}

/* Profile Completion Widget */
.profile-progress-card {
  background: linear-gradient(135deg, rgba(30, 41, 67, 0.7) 0%, rgba(17, 24, 39, 0.8) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

[data-theme="light"] .profile-progress-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
}

.profile-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 10px;
}

.profile-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent-emerald) 100%);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Condition Checklist Cards for Start Interview */
.condition-checklist-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.condition-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
  transition: var(--transition);
}

.condition-item:last-child {
  margin-bottom: 0;
}

.condition-item.condition-passed {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}

.condition-item.condition-failed {
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.04);
}

.condition-status-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.condition-passed .condition-status-icon {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.condition-failed .condition-status-icon {
  background: rgba(244, 63, 94, 0.2);
  color: #f87171;
}

.condition-pending .condition-status-icon {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

/* Start Interview Launch Card */
.launch-gate-card {
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  margin-top: 24px;
}

.btn-launch-interview {
  font-size: 1.25rem;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-display);
  box-shadow: 0 0 28px rgba(99, 102, 241, 0.4);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  cursor: pointer;
}

.btn-launch-interview:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(99, 102, 241, 0.6);
}

.btn-launch-interview:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

/* Notification Items */
.notification-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  margin-bottom: 12px;
  transition: var(--transition);
}

.notification-card.unread {
  border-left: 4px solid var(--primary);
  background: rgba(99, 102, 241, 0.04);
}

.notification-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  background: var(--bg-card);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  user-select: none;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-chevron {
  transition: transform 0.25s ease;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 14px;
}

.faq-item.open .faq-answer {
  display: block;
  animation: paneFadeIn 0.2s ease;
}

/* Backdrop for Mobile Drawer */
.sidebar-backdrop {
  display: none;
}

/* ===================================================================
   Responsive Breakpoints for Sidebar & App Layout
   =================================================================== */

/* Tablet & Mobile (< 1024px) */
@media (max-width: 1024px) {
  .candidate-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1100;
    width: 280px;
    min-width: 280px;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }

  .candidate-sidebar.drawer-open {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1090;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-mobile-toggle {
    display: flex;
  }

  .candidate-main-content {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin: 0 !important;
    flex: 1 1 100% !important;
  }

  .candidate-topbar {
    padding: 0 16px;
  }

  .candidate-views-container {
    padding: 20px 16px;
  }

  .sidebar-collapse-btn {
    display: none;
  }
}

/* Mobile Small (< 640px) */
@media (max-width: 640px) {
  .candidate-app-layout {
    overflow-x: hidden;
  }

  .candidate-main-content {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow-x: hidden;
  }

  .candidate-topbar {
    height: 56px !important;
    padding: 0 12px !important;
    gap: 8px !important;
  }

  .topbar-left {
    gap: 8px !important;
    flex: 1;
    min-width: 0;
  }

  .topbar-section-title {
    font-size: 0.95rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 165px !important;
  }

  .topbar-right {
    gap: 6px !important;
    flex-shrink: 0;
  }

  .topbar-candidate-name,
  .topbar-chevron {
    display: none !important;
  }

  .topbar-candidate-chip {
    padding: 2px !important;
    border: none !important;
    background: transparent !important;
  }

  .topbar-btn {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
  }

  .topbar-readiness-pill {
    display: none;
  }

  .pane-title {
    font-size: 1.35rem;
  }

  .dash-welcome-title {
    font-size: 1.35rem !important;
  }

  .dash-welcome-subtitle {
    font-size: 0.84rem !important;
  }

  .dash-kpi-grid-6 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .dash-kpi-card {
    padding: 12px 14px !important;
    min-height: auto !important;
  }

  .dash-kpi-main-val {
    font-size: 1.12rem !important;
  }

  .candidate-views-container {
    padding: 14px 10px !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden;
  }
}

/* ===================================================================
   Live Camera Change Photo Button & Modal Enhancements
   =================================================================== */

.change-photo-badge-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  border: 2px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  padding: 0;
  outline: none;
}

[data-theme="light"] .change-photo-badge-btn {
  border-color: #ffffff;
  background: var(--primary);
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.3);
}

.change-photo-badge-btn:hover {
  transform: scale(1.14);
  background: var(--primary-hover);
  box-shadow: 0 0 20px var(--primary-glow);
}

.change-photo-badge-btn:active {
  transform: scale(0.95);
}

.btn-change-photo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

.btn-change-photo-link:hover {
  background: rgba(99, 102, 241, 0.22);
  border-color: var(--primary);
  color: #ffffff;
  transform: translateY(-1px);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===================================================================
   CANDIDATE PROFILE VIEW & TOPBAR (EXACT MATCH REFERENCE DESIGN)
   =================================================================== */

.topbar-system-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

[data-theme="dark"] .topbar-system-title {
  color: #f8fafc;
}

.topbar-candidate-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

[data-theme="dark"] .topbar-candidate-chip {
  background: rgba(255, 255, 255, 0.05);
}

.topbar-candidate-chip:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
}

.topbar-candidate-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.topbar-candidate-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #2563eb;
  background: var(--bg-secondary);
}

/* Candidate Profile Page Header */
.candidate-profile-page-header {
  margin-bottom: 24px;
}

.candidate-profile-page-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

[data-theme="dark"] .candidate-profile-page-title {
  color: #f8fafc;
}

.candidate-profile-page-subtitle {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0;
}

[data-theme="dark"] .candidate-profile-page-subtitle {
  color: #94a3b8;
}

/* 2-Column Layout Grid */
.candidate-profile-layout-grid {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 992px) {
  .candidate-profile-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* Left Card: Profile Overview */
.profile-card-left {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .profile-card-left {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

.profile-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
}

[data-theme="dark"] .profile-card-title {
  color: #f8fafc;
}

.profile-avatar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-avatar-container {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 16px auto;
}

.profile-avatar-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background: #f1f5f9;
}

[data-theme="dark"] .profile-avatar-img {
  border-color: #1e293b;
  background: #161e31;
}

.profile-badge-btn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  border: 2.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
  transition: transform 0.2s, background 0.2s;
  z-index: 5;
  padding: 0;
  outline: none;
}

[data-theme="dark"] .profile-badge-btn {
  border-color: #111827;
}

.profile-badge-btn:hover {
  background: #1d4ed8;
  transform: scale(1.08);
}

.profile-card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin-bottom: 2px;
}

[data-theme="dark"] .profile-card-name {
  color: #f8fafc;
}

.profile-card-role {
  font-size: 0.88rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 22px;
}

[data-theme="dark"] .profile-card-role {
  color: #94a3b8;
}

.profile-contact-meta-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.profile-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #334155;
  word-break: break-all;
}

[data-theme="dark"] .profile-contact-item {
  color: #cbd5e1;
}

.profile-meta-icon {
  width: 16px;
  height: 16px;
  color: #64748b;
  flex-shrink: 0;
}

[data-theme="dark"] .profile-meta-icon {
  color: #94a3b8;
}

.profile-social-links-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 14px;
  width: 100%;
  border-top: 1px solid #f1f5f9;
}

[data-theme="dark"] .profile-social-links-row {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.profile-social-links-row a {
  color: #2563eb;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.profile-social-links-row a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Right Column: Form Cards */
.profile-cards-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-info-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .profile-info-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

.profile-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

@media (max-width: 640px) {
  .profile-form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.profile-form-group {
  display: flex;
  flex-direction: column;
}

.profile-form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
  display: block;
}

[data-theme="dark"] .profile-form-label {
  color: #cbd5e1;
}

.profile-input-field {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.92rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}

[data-theme="dark"] .profile-input-field {
  background: #161e31;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.profile-input-field:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

[data-theme="dark"] .profile-input-field:focus {
  background: #1a233a;
}

.profile-input-field.readonly-field {
  background: #f1f5f9;
  color: #64748b;
  cursor: not-allowed;
}

[data-theme="dark"] .profile-input-field.readonly-field {
  background: #0f172a;
  color: #94a3b8;
}

.profile-textarea-field {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-family: inherit;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

[data-theme="dark"] .profile-textarea-field {
  background: #161e31;
  border-color: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
}

.profile-textarea-field:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

[data-theme="dark"] .profile-textarea-field:focus {
  background: #1a233a;
}

.btn-save-profile-action {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: all 0.2s ease;
}

.btn-save-profile-action:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.btn-save-profile-action:active {
  transform: translateY(0);
}

/* ===================================================================
   PROFESSIONAL CANDIDATE DASHBOARD STYLING
   =================================================================== */

/* Page Header */
.dash-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.dash-header-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 4px;
}

[data-theme="dark"] .dash-header-eyebrow {
  color: #60a5fa;
}

.dash-page-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0;
}

[data-theme="dark"] .dash-page-title {
  color: #f8fafc;
}

.dash-page-subtitle {
  font-size: 0.92rem;
  color: #64748b;
  margin-top: 4px;
}

[data-theme="dark"] .dash-page-subtitle {
  color: #94a3b8;
}

.dash-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .dash-btn-secondary {
  background: #1e293b;
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, 0.1);
}

.dash-btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="dark"] .dash-btn-secondary:hover {
  background: #27354f;
  color: #ffffff;
}

.dash-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  background: #2563eb;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.dash-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Executive Welcome Hero Card */
.dash-hero-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .dash-hero-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

.dash-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #2563eb 0%, #06b6d4 100%);
}

.dash-hero-main {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  min-width: 300px;
}

.dash-hero-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.dash-avatar-wrapper {
  position: relative;
  width: 88px;
  height: 88px;
}

.dash-avatar-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  background: #f1f5f9;
}

[data-theme="dark"] .dash-avatar-img {
  border-color: #1f293d;
  background: #161e31;
}

.dash-hero-info {
  flex: 1;
  min-width: 220px;
}

.dash-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.dash-role-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.dash-hero-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  margin: 0 0 6px 0;
}

[data-theme="dark"] .dash-hero-name {
  color: #f8fafc;
}

.dash-hero-subtext {
  font-size: 0.9rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

[data-theme="dark"] .dash-hero-subtext {
  color: #94a3b8;
}

.dash-hero-subtext strong {
  color: #0f172a;
}

[data-theme="dark"] .dash-hero-subtext strong {
  color: #f8fafc;
}

.dash-hero-quick-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 220px;
}

[data-theme="dark"] .dash-hero-quick-card {
  background: #161e31;
  border-color: rgba(255, 255, 255, 0.08);
}

.dash-quick-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
}

[data-theme="dark"] .dash-quick-title {
  color: #94a3b8;
}

.dash-quick-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #10b981;
}

/* Progress / Onboarding Checklist Card */
.dash-progress-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .dash-progress-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

.dash-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.dash-progress-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

[data-theme="dark"] .dash-progress-title {
  color: #f8fafc;
}

.dash-progress-pct {
  font-size: 1.05rem;
  font-weight: 800;
  color: #10b981;
  font-family: var(--font-display);
}

.dash-progress-bar-bg {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 14px;
}

[data-theme="dark"] .dash-progress-bar-bg {
  background: #1e293b;
}

.dash-progress-milestones {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.dash-milestone-pill {
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

[data-theme="dark"] .dash-milestone-pill {
  background: #161e31;
  border-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.dash-milestone-pill.completed {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-weight: 600;
}

/* 4-Column Metrics Grid */
.dash-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 1180px) {
  .dash-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .dash-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.dash-metric-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

[data-theme="dark"] .dash-metric-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

.dash-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

[data-theme="dark"] .dash-metric-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.dash-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dash-metric-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[data-theme="dark"] .dash-metric-label {
  color: #94a3b8;
}

.dash-metric-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.dash-metric-icon-box.blue {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.dash-metric-icon-box.indigo {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.dash-metric-icon-box.emerald {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.dash-metric-icon-box.purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.dash-metric-icon-box.cyan {
  background: rgba(6, 182, 212, 0.1);
  color: #06b6d4;
}

.dash-metric-body {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}

.dash-metric-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

[data-theme="dark"] .dash-metric-value {
  color: #f8fafc;
}

.dash-status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.dash-status-pill.verified {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.dash-metric-subtext {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

[data-theme="dark"] .dash-metric-subtext {
  color: #94a3b8;
}

/* 2-Column Analytics Section */
.dash-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

@media (max-width: 992px) {
  .dash-grid-2 {
    grid-template-columns: 1fr;
  }
}

.dash-content-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .dash-content-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

.dash-content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.dash-content-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

[data-theme="dark"] .dash-content-title {
  color: #f8fafc;
}

.dash-content-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 2px;
}

[data-theme="dark"] .dash-content-subtitle {
  color: #94a3b8;
}

.dash-card-header-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dash-card-header-btn:hover {
  background: #2563eb;
  color: #ffffff;
}

.dash-skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  min-height: 80px;
}

.dash-skills-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="dark"] .dash-skills-footer {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.dash-history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Quick Launch AI Interview Banner */
.dash-launch-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #172554 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.dash-launch-content {
  flex: 1;
  min-width: 280px;
}

.dash-launch-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #ffffff;
}

.dash-launch-desc {
  font-size: 0.9rem;
  color: #cbd5e1;
  max-width: 600px;
  line-height: 1.5;
}

.dash-btn-launch {
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  background: #2563eb;
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dash-btn-launch:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.5);
}

/* ===================================================================
   CANDIDATE TOPBAR DROPDOWN & WELCOME
   =================================================================== */
.topbar-welcome-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.topbar-welcome-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.25;
}

.topbar-welcome-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 2px 0 0 0;
  line-height: 1.2;
}

.topbar-profile-menu-container {
  position: relative;
}

.topbar-candidate-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

[data-theme="light"] .topbar-candidate-chip {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.topbar-chevron {
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.topbar-profile-menu-container.open .topbar-chevron {
  transform: rotate(180deg);
}

.topbar-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 230px;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  padding: 8px;
  display: none;
  flex-direction: column;
  z-index: 1200;
  animation: dropdownFadeIn 0.18s ease-out;
}

[data-theme="light"] .topbar-dropdown-menu {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.topbar-profile-menu-container.open .topbar-dropdown-menu {
  display: flex;
}

.topbar-dropdown-header {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-user-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-cid-badge {
  font-size: 0.72rem;
  font-family: monospace;
  background: rgba(37, 99, 235, 0.12);
  color: #3b82f6;
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
  font-weight: 600;
}

.topbar-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

[data-theme="light"] .topbar-dropdown-divider {
  background: #f1f5f9;
}

.topbar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.topbar-dropdown-item:hover {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

[data-theme="dark"] .topbar-dropdown-item:hover {
  background: rgba(37, 99, 235, 0.18);
  color: #60a5fa;
}

.topbar-dropdown-item.text-danger {
  color: #f87171;
}

.topbar-dropdown-item.text-danger:hover {
  background: rgba(244, 63, 94, 0.12);
  color: #f43f5e;
}

/* ===================================================================
   7 KEY METRICS RESPONSIVE GRID
   =================================================================== */
.dash-metrics-7-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

@media (min-width: 1440px) {
  .dash-metrics-7-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

@media (max-width: 1439px) and (min-width: 900px) {
  .dash-metrics-7-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 899px) and (min-width: 580px) {
  .dash-metrics-7-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 579px) {
  .dash-metrics-7-grid {
    grid-template-columns: 1fr;
  }
}

.dash-metric-card.compact {
  padding: 16px;
}

.dash-metric-card.compact .dash-metric-value {
  font-size: 1.45rem;
}

.dash-metric-card.compact .dash-metric-label {
  font-size: 0.74rem;
}

/* ===================================================================
   DEDICATED "START AI INTERVIEW" CARD (LAUNCHPAD)
   =================================================================== */
.dash-launchpad-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  margin-bottom: 28px;
}

[data-theme="dark"] .dash-launchpad-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

.dash-launchpad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.dash-launchpad-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-launchpad-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.dash-launchpad-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

[data-theme="dark"] .dash-launchpad-specs {
  background: #161e31;
  border-color: rgba(255, 255, 255, 0.06);
}

.dash-spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-spec-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 700;
}

[data-theme="dark"] .dash-spec-label {
  color: #94a3b8;
}

.dash-spec-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.dash-launchpad-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

[data-theme="dark"] .dash-launchpad-footer {
  border-top-color: rgba(255, 255, 255, 0.06);
}

.dash-launchpad-warning {
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f59e0b;
  font-weight: 600;
}

.dash-launchpad-warning.cleared {
  color: #10b981;
}

.btn-dash-primary-gate {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-dash-primary-gate:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.btn-dash-primary-gate:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
  transform: none;
}

/* ===================================================================
   DEDICATED RESUME DOSSIER CARD
   =================================================================== */
.dash-resume-dossier-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  margin-bottom: 28px;
}

[data-theme="dark"] .dash-resume-dossier-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

.dash-resume-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.dash-resume-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-resume-label {
  font-size: 0.74rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

[data-theme="dark"] .dash-resume-label {
  color: #94a3b8;
}

.dash-resume-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===================================================================
   DEDICATED INTERVIEW PROGRESS & PERFORMANCE BREAKDOWN
   =================================================================== */
.dash-performance-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  margin-bottom: 28px;
}

[data-theme="dark"] .dash-performance-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

.dash-perf-bars {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 16px;
}

.dash-perf-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dash-perf-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dash-perf-track {
  height: 10px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}

[data-theme="dark"] .dash-perf-track {
  background: rgba(255, 255, 255, 0.08);
}

.dash-perf-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-perf-fill.tech {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.dash-perf-fill.comm {
  background: linear-gradient(90deg, #6366f1, #a855f7);
}

.dash-perf-fill.overall {
  background: linear-gradient(90deg, #10b981, #34d399);
}

/* ===================================================================
   RECENT INTERVIEW HISTORY RESPONSIVE TABLE
   =================================================================== */
.dash-history-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.dash-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  text-align: left;
}

.dash-history-table th {
  padding: 10px 14px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

[data-theme="dark"] .dash-history-table th {
  color: #94a3b8;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dash-history-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-primary);
  vertical-align: middle;
}

[data-theme="dark"] .dash-history-table td {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.dash-history-table tr:hover td {
  background: rgba(37, 99, 235, 0.03);
}

[data-theme="dark"] .dash-history-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.dash-btn-table-action {
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.dash-btn-table-action:hover {
  background: #2563eb;
  color: #ffffff;
}

.dash-btn-table-action.continue {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.3);
}

.dash-btn-table-action.continue:hover {
  background: #10b981;
  color: #ffffff;
}

/* ===================================================================
   SIDEBAR ARCHITECTURE & GROUPING STYLES
   =================================================================== */
.sidebar-brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.sidebar-brand-subtitle {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 1px;
}

.sidebar-nav-group {
  margin-bottom: 14px;
}

.sidebar-group-title {
  padding: 6px 14px 4px 14px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  user-select: none;
}

[data-theme="dark"] .sidebar-group-title {
  color: #64748b;
}

.candidate-sidebar.collapsed .sidebar-group-title {
  opacity: 0;
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.sidebar-bottom-container {
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .sidebar-bottom-container {
  border-top-color: #e2e8f0;
  background: #f8fafc;
}

.candidate-sidebar.collapsed .sidebar-bottom-container .candidate-mini-text,
.candidate-sidebar.collapsed .sidebar-bottom-container .collapse-label,
.candidate-sidebar.collapsed .sidebar-bottom-container .nav-label {
  display: none !important;
}

.candidate-sidebar.collapsed .sidebar-bottom-container .candidate-mini-profile {
  padding: 6px;
  justify-content: center;
}

/* ===================================================================
   TOPBAR HEADER STYLES
   =================================================================== */
.topbar-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}

/* ===================================================================
   DASHBOARD OVERVIEW: WELCOME HEADER & READINESS BANNER
   =================================================================== */
.dash-welcome-header {
  margin-bottom: 20px;
}

.dash-welcome-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.dash-welcome-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0;
}

.dash-readiness-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 18px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

[data-theme="dark"] .dash-readiness-banner {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

.dash-readiness-left {
  flex: 1;
  min-width: 280px;
}

.dash-readiness-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  margin-bottom: 6px;
}

.dash-readiness-badge.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.dash-readiness-badge .readiness-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.dash-readiness-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.dash-readiness-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
}

.dash-readiness-right {
  min-width: 200px;
  text-align: right;
}

.dash-readiness-progress-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 6px;
}

.dash-readiness-pct-value {
  font-size: 1.7rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: #2563eb;
}

.dash-readiness-pct-total {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dash-readiness-progress-track {
  width: 100%;
  min-width: 220px;
  height: 8px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}

[data-theme="dark"] .dash-readiness-progress-track {
  background: rgba(255, 255, 255, 0.08);
}

.dash-readiness-progress-bar {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  transition: width 0.5s ease;
}

.dash-readiness-sublabel {
  display: block;
  font-size: 0.75rem;
  color: #f59e0b;
  font-weight: 600;
  margin-top: 5px;
}

.dash-readiness-sublabel.cleared {
  color: #10b981;
}

/* ===================================================================
   6 COMPACT KPI / SUMMARY CARDS GRID
   =================================================================== */
.dash-kpi-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 1400px) {
  .dash-kpi-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .dash-kpi-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .dash-kpi-grid-6 {
    grid-template-columns: 1fr;
  }
}

.dash-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 104px;
  transition: all 0.2s ease;
}

[data-theme="dark"] .dash-kpi-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

.dash-kpi-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.dash-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.dash-kpi-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

[data-theme="dark"] .dash-kpi-title {
  color: #94a3b8;
}

.dash-kpi-icon {
  font-size: 1.05rem;
  opacity: 0.85;
}

.dash-kpi-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.dash-kpi-main-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-display);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.copy-icon-btn {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #2563eb;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.18s ease;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.copy-icon-btn:hover {
  background: #2563eb;
  color: #ffffff;
}

[data-theme="dark"] .copy-icon-btn {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.35);
  color: #93c5fd;
}

[data-theme="dark"] .copy-icon-btn:hover {
  background: #2563eb;
  color: #ffffff;
}

.dash-kpi-card .dash-status-pill {
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.dash-kpi-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===================================================================
   2-COLUMN MAIN DASHBOARD GRID: READINESS CHECKLIST & NEXT ACTION
   =================================================================== */
.dash-main-2col-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .dash-main-2col-grid {
    grid-template-columns: 1fr;
  }
}

.dash-readiness-checklist-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .dash-readiness-checklist-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

[data-theme="dark"] .dash-card-header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.dash-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.dash-card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.readiness-checklist-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.readiness-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

[data-theme="dark"] .readiness-check-item {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

.readiness-check-item.passed .check-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.readiness-check-item.pending .check-icon {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.readiness-check-item.failed .check-icon {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
}

.check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.check-info {
  flex: 1;
  min-width: 0;
}

.check-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.check-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-check-action {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

[data-theme="dark"] .btn-check-action {
  background: #1f2937;
  border-color: rgba(255, 255, 255, 0.15);
  color: #f8fafc;
}

.btn-check-action.btn-test-action {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.btn-check-action.btn-test-action:hover {
  background: #1d4ed8;
}

/* Launchpad specs grid */
.dash-launchpad-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.dash-launch-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0 20px 0;
  background: #f8fafc;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

[data-theme="dark"] .dash-launch-specs-grid {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

.launch-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.launch-spec-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
}

[data-theme="dark"] .launch-spec-label {
  color: #94a3b8;
}

.launch-spec-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ===================================================================
   RECENT INTERVIEWS SECTION
   =================================================================== */
.dash-recent-interviews-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

[data-theme="dark"] .dash-recent-interviews-section {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

.dash-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.dash-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.dash-section-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.dash-btn-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: #2563eb;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.dash-btn-link:hover {
  text-decoration: underline;
}

.dash-status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
}

.dash-status-badge.completed,
.dash-status-badge.verified {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.dash-status-badge.in-progress {
  background: rgba(59, 130, 246, 0.15);
  color: #2563eb;
}

.dash-status-badge.failed {
  background: rgba(244, 63, 94, 0.15);
  color: #f43f5e;
}

.dash-status-badge.cancelled {
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
}

/* ===================================================================
   PERFORMANCE OVERVIEW SECTION
   =================================================================== */
.dash-performance-overview-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
}

[data-theme="dark"] .dash-performance-overview-section {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

.dash-perf-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 992px) {
  .dash-perf-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .dash-perf-metrics-row {
    grid-template-columns: 1fr;
  }
}

.dash-perf-card {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

[data-theme="dark"] .dash-perf-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
}

.dash-perf-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.dash-perf-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
}

[data-theme="dark"] .dash-perf-label {
  color: #94a3b8;
}

.dash-perf-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.dash-perf-subtext {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.dash-proctor-status-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 4px 0;
}

/* ===================================================================
   RESUME PAGE: SEPARATED IDENTITY & MATCH SCORE
   =================================================================== */
.resume-verif-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
  padding: 16px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .resume-verif-compare-grid {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
}

.resume-compare-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.resume-compare-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

[data-theme="dark"] .resume-compare-title {
  color: #94a3b8;
}

.resume-compare-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ===================================================================
   REPORT EMPTY STATE CARD
   =================================================================== */
.report-empty-state-card {
  text-align: center;
  padding: 56px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  max-width: 580px;
  margin: 0 auto;
}

[data-theme="dark"] .report-empty-state-card {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

.report-empty-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.report-empty-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.report-empty-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 20px auto;
  line-height: 1.5;
}

.report-empty-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ===================================================================
   SKILLS BADGES FORMATTING
   =================================================================== */
.dash-skills-cloud,
.profile-skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0;
  transition: all 0.15s ease;
}

.badge-tag.tech {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

[data-theme="dark"] .badge-tag.tech {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.3);
}

.badge-tag.tech .btn-remove-skill {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #2563eb;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0 2px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  opacity: 0.7;
}

.badge-tag.tech .btn-remove-skill:hover {
  opacity: 1;
  color: #ef4444;
  transform: scale(1.2);
}

.btn-add-skill-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.05);
  border: 1px dashed rgba(37, 99, 235, 0.4);
  color: #2563eb;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-skill-trigger:hover {
  background: rgba(37, 99, 235, 0.12);
  border-style: solid;
  transform: translateY(-1px);
}

.inline-skill-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.inline-skill-input {
  width: 130px;
  padding: 4px 8px;
  font-size: 0.8rem;
  border: 1px solid #2563eb;
  border-radius: 6px;
  outline: none;
  background: #ffffff;
  color: #0f172a;
}

[data-theme="dark"] .inline-skill-input {
  background: #0f172a;
  color: #f8fafc;
  border-color: #3b82f6;
}

.badge-tag.soft {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .badge-tag.soft {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.3);
}

/* ===================================================================
   DASHBOARD UI/UX PROFESSIONAL POLISH — ADDITIONS
   =================================================================== */

/* -------------------------------------------------------
   View Pane Fade Transition (smooth page changes)
   ------------------------------------------------------- */
.view-pane {
  animation: none;
}
.view-pane.active {
  animation: viewFadeIn 0.22s ease forwards;
}
@keyframes viewFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------
   Toggle Switch (Settings Page)
   ------------------------------------------------------- */
.toggle-switch-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

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

.toggle-track {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.25s ease;
}

[data-theme="dark"] .toggle-track {
  background: #334155;
}

.toggle-track::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-track {
  background: #2563eb;
}

.toggle-switch input:checked + .toggle-track::before {
  transform: translateX(20px);
}

.toggle-switch input:focus-visible + .toggle-track {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.toggle-label-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

/* -------------------------------------------------------
   Skeleton Loading State
   ------------------------------------------------------- */
@keyframes skeletonShimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.skeleton {
  border-radius: 6px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f8fafc 50%, #e2e8f0 75%);
  background-size: 1200px 100%;
  animation: skeletonShimmer 1.4s infinite linear;
}

[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 1200px 100%;
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 22px;
  width: 60%;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* -------------------------------------------------------
   Pane Header responsive gap fix
   ------------------------------------------------------- */
.pane-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.pane-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px 0;
  color: var(--text-primary);
}

.pane-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 640px) {
  .pane-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .pane-title {
    font-size: 1.35rem;
  }
}

/* -------------------------------------------------------
   Mobile History Table — Horizontal Scroll
   ------------------------------------------------------- */
.dash-history-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.dash-history-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.dash-history-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="dark"] .dash-history-table th {
  background: rgba(255,255,255,0.03);
  border-bottom-color: rgba(255,255,255,0.06);
  color: #94a3b8;
}

.dash-history-table td {
  padding: 12px 16px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

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

.dash-history-table tbody tr:hover td {
  background: rgba(37,99,235,0.03);
}

.dash-btn-table-action {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(37,99,235,0.1);
  color: #2563eb;
  border: 1px solid rgba(37,99,235,0.2);
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.dash-btn-table-action:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.dash-btn-table-action.continue {
  background: rgba(245,158,11,0.1);
  color: #d97706;
  border-color: rgba(245,158,11,0.25);
}

.dash-btn-table-action.continue:hover {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}

/* -------------------------------------------------------
   Notification Cards — Light Mode Fix
   ------------------------------------------------------- */
.notification-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  background: #ffffff;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

[data-theme="dark"] .notification-card {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.07);
}

.notification-card:hover {
  border-color: rgba(37,99,235,0.3);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.notification-card.unread {
  border-left: 3px solid #2563eb;
  background: rgba(37,99,235,0.03);
}

[data-theme="dark"] .notification-card.unread {
  background: rgba(37,99,235,0.06);
  border-left-color: #3b82f6;
}

.notification-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(37,99,235,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* -------------------------------------------------------
   FAQ Accordion — Light Mode Fix
   ------------------------------------------------------- */
.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
}

[data-theme="dark"] .faq-item {
  border-color: rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.01);
}

.faq-item:hover {
  border-color: rgba(37,99,235,0.3);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-primary);
  background: #f8fafc;
  user-select: none;
  transition: background 0.2s ease;
  gap: 12px;
}

[data-theme="dark"] .faq-question {
  background: rgba(255,255,255,0.03);
}

.faq-question:hover {
  background: rgba(37,99,235,0.05);
}

.faq-item.open .faq-question {
  background: rgba(37,99,235,0.06);
  color: #2563eb;
}

[data-theme="dark"] .faq-item.open .faq-question {
  background: rgba(59,130,246,0.12);
  color: #93c5fd;
}

.faq-chevron {
  font-size: 0.8rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  color: #94a3b8;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: #2563eb;
}

.faq-answer {
  display: none;
  padding: 14px 18px;
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px solid #e2e8f0;
}

[data-theme="dark"] .faq-answer {
  border-top-color: rgba(255,255,255,0.06);
}

.faq-item.open .faq-answer {
  display: block;
}

/* -------------------------------------------------------
   Profile form grid responsive — tablet fix
   ------------------------------------------------------- */
@media (max-width: 900px) {
  .candidate-profile-layout-grid {
    grid-template-columns: 1fr !important;
  }
  .profile-card-left {
    max-width: 100% !important;
  }
}

@media (max-width: 640px) {
  .profile-form-grid-2 {
    grid-template-columns: 1fr !important;
  }
}

/* -------------------------------------------------------
   Readiness checklist items — mobile overflow fix
   ------------------------------------------------------- */
.readiness-check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
  background: #f8fafc;
  transition: all 0.2s ease;
  flex-wrap: wrap;
}

[data-theme="dark"] .readiness-check-item {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.07);
}

.readiness-check-item.passed {
  background: rgba(16,185,129,0.04);
  border-color: rgba(16,185,129,0.2);
}

[data-theme="dark"] .readiness-check-item.passed {
  background: rgba(16,185,129,0.06);
  border-color: rgba(16,185,129,0.25);
}

.readiness-check-item.pending {
  background: rgba(245,158,11,0.04);
  border-color: rgba(245,158,11,0.2);
}

[data-theme="dark"] .readiness-check-item.pending {
  background: rgba(245,158,11,0.06);
}

.check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(16,185,129,0.12);
  color: #10b981;
}

.readiness-check-item.pending .check-icon {
  background: rgba(245,158,11,0.12);
  color: #f59e0b;
}

.check-info {
  flex: 1;
  min-width: 0;
}

.check-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.check-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-check-action {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(37,99,235,0.1);
  color: #2563eb;
  border: 1px solid rgba(37,99,235,0.2);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-check-action:hover {
  background: #2563eb;
  color: #fff;
}

.btn-check-action.btn-test-action {
  background: rgba(245,158,11,0.1);
  color: #d97706;
  border-color: rgba(245,158,11,0.25);
}

.btn-check-action.btn-test-action:hover {
  background: #f59e0b;
  color: #fff;
}

/* -------------------------------------------------------
   Condition Checklist Items (Start Interview page)
   ------------------------------------------------------- */
.condition-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  margin-bottom: 8px;
  background: #f8fafc;
  transition: all 0.2s ease;
  flex-wrap: wrap;
}

[data-theme="dark"] .condition-item {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.07);
}

.condition-item.condition-passed {
  background: rgba(16,185,129,0.04);
  border-color: rgba(16,185,129,0.2);
}

[data-theme="dark"] .condition-item.condition-passed {
  background: rgba(16,185,129,0.06);
  border-color: rgba(16,185,129,0.2);
}

.condition-item.condition-failed {
  background: rgba(244,63,94,0.04);
  border-color: rgba(244,63,94,0.2);
}

[data-theme="dark"] .condition-item.condition-failed {
  background: rgba(244,63,94,0.06);
  border-color: rgba(244,63,94,0.25);
}

.condition-status-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(16,185,129,0.12);
  color: #10b981;
}

.condition-item.condition-failed .condition-status-icon {
  background: rgba(244,63,94,0.12);
  color: #f43f5e;
}

/* -------------------------------------------------------
   Topbar SVG Button Styles
   ------------------------------------------------------- */
.topbar-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.topbar-btn:hover {
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.3);
  color: var(--text-primary);
}

.topbar-btn:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.topbar-btn-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-primary);
  line-height: 1;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* -------------------------------------------------------
   Dash Section / Card Title Consistency
   ------------------------------------------------------- */
.dash-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.dash-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.dash-card-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 3px 0 0 0;
}

/* -------------------------------------------------------
   Launchpad Card Improvements
   ------------------------------------------------------- */
.dash-launchpad-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

[data-theme="dark"] .dash-launchpad-card {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
}

.dash-launchpad-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(99,102,241,0.12);
  color: #6366f1;
  margin-bottom: 8px;
}

[data-theme="dark"] .dash-launchpad-badge {
  background: rgba(99,102,241,0.18);
  color: #a5b4fc;
}

.dash-launch-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}

.launch-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

[data-theme="dark"] .launch-spec-item {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}

.launch-spec-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.launch-spec-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.dash-launchpad-warning {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.84rem;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  color: var(--text-secondary);
  line-height: 1.5;
}

.dash-launchpad-warning.cleared {
  background: rgba(16,185,129,0.08);
  border-color: rgba(16,185,129,0.25);
}

.btn-dash-primary-gate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  background: #2563eb;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
  width: 100%;
  letter-spacing: -0.01em;
}

.btn-dash-primary-gate:hover:not(:disabled) {
  background: #1d4ed8;
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
  transform: translateY(-1px);
}

.btn-dash-primary-gate:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #64748b;
}

.btn-dash-primary-gate.ready {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}

/* -------------------------------------------------------
   Main Dashboard 2-col grid
   ------------------------------------------------------- */
.dash-main-2col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

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

.dash-readiness-checklist-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

[data-theme="dark"] .dash-readiness-checklist-card {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
}

.condition-checklist-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

[data-theme="dark"] .condition-checklist-card {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
}

/* -------------------------------------------------------
   Status Pills
   ------------------------------------------------------- */
.dash-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(100,116,139,0.1);
  color: #64748b;
  white-space: nowrap;
}

.dash-status-pill.verified {
  background: rgba(16,185,129,0.12);
  color: #10b981;
}

[data-theme="dark"] .dash-status-pill.verified {
  background: rgba(16,185,129,0.15);
  color: #34d399;
}

/* -------------------------------------------------------
   Recent Interviews Section
   ------------------------------------------------------- */
.dash-recent-interviews-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  margin-bottom: 24px;
}

[data-theme="dark"] .dash-recent-interviews-section {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
}

.dash-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}

/* -------------------------------------------------------
   Performance Overview
   ------------------------------------------------------- */
.dash-perf-track {
  width: 100%;
  height: 6px;
  background: #f1f5f9;
  border-radius: 9999px;
  overflow: hidden;
}

[data-theme="dark"] .dash-perf-track {
  background: rgba(255,255,255,0.07);
}

.dash-perf-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
}

.dash-perf-fill.tech   { background: linear-gradient(90deg, #6366f1, #818cf8); }
.dash-perf-fill.comm   { background: linear-gradient(90deg, #06b6d4, #38bdf8); }
.dash-perf-fill.overall { background: linear-gradient(90deg, #10b981, #34d399); }

/* -------------------------------------------------------
   Glass Card standardization
   ------------------------------------------------------- */
.glass-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

[data-theme="dark"] .glass-card {
  background: rgba(17,24,39,0.85);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* -------------------------------------------------------
   Grid utilities
   ------------------------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

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

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

/* -------------------------------------------------------
   Candidate Views Container
   ------------------------------------------------------- */
.candidate-views-container {
  flex: 1;
  padding: 28px 32px;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 1024px) {
  .candidate-views-container {
    padding: 20px 16px;
  }
}

@media (max-width: 640px) {
  .candidate-views-container {
    padding: 16px 12px;
  }
}

/* -------------------------------------------------------
   Profile page layout
   ------------------------------------------------------- */
.candidate-profile-page-header {
  margin-bottom: 24px;
}

.candidate-profile-page-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.candidate-profile-page-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.candidate-profile-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

.profile-card-left {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: 84px;
}

[data-theme="dark"] .profile-card-left {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
}

.profile-cards-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-info-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

[data-theme="dark"] .profile-info-card {
  background: #111827;
  border-color: rgba(255,255,255,0.08);
}

.profile-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 14px;
}

[data-theme="dark"] .profile-card-title {
  color: #94a3b8;
}

.profile-avatar-block {
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

[data-theme="dark"] .profile-avatar-block {
  border-bottom-color: rgba(255,255,255,0.07);
}

.profile-avatar-container {
  position: relative;
  display: inline-block;
  margin-bottom: 12px;
}

.profile-avatar-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2563eb;
}

.profile-badge-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.2s ease;
}

.profile-badge-btn:hover {
  transform: scale(1.1);
  background: #1d4ed8;
}

.profile-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.profile-card-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.profile-contact-meta-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  text-align: left;
}

.profile-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.profile-meta-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #94a3b8;
}

.profile-social-links-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.profile-social-links-row a {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(37,99,235,0.08);
  color: #2563eb;
  border: 1px solid rgba(37,99,235,0.2);
  transition: all 0.18s ease;
}

.profile-social-links-row a:hover {
  background: #2563eb;
  color: #fff;
}

.profile-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.profile-form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[data-theme="dark"] .profile-form-label {
  color: #94a3b8;
}

.profile-input-field {
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-primary);
  background: #ffffff;
  transition: all 0.2s ease;
  outline: none;
  font-family: var(--font-sans);
}

[data-theme="dark"] .profile-input-field {
  background: #0f172a;
  border-color: rgba(255,255,255,0.1);
  color: #f8fafc;
}

.profile-input-field:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.profile-input-field.readonly-field {
  opacity: 0.65;
  cursor: not-allowed;
  background: #f8fafc;
}

[data-theme="dark"] .profile-input-field.readonly-field {
  background: #111827;
}

.profile-textarea-field {
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-primary);
  background: #ffffff;
  resize: vertical;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

[data-theme="dark"] .profile-textarea-field {
  background: #0f172a;
  border-color: rgba(255,255,255,0.1);
  color: #f8fafc;
}

.profile-textarea-field:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.btn-save-profile-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 9px;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.22s ease;
}

.btn-save-profile-action:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
  transform: translateY(-1px);
}

/* -------------------------------------------------------
   Form controls standardization
   ------------------------------------------------------- */
.form-control {
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-primary);
  background: #ffffff;
  width: 100%;
  transition: all 0.2s ease;
  outline: none;
  font-family: var(--font-sans);
}

[data-theme="dark"] .form-control {
  background: #0f172a;
  border-color: rgba(255,255,255,0.1);
  color: #f8fafc;
}

.form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[data-theme="dark"] .form-label {
  color: #94a3b8;
}

/* -------------------------------------------------------
   Buttons standardization
   ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-sm {
  padding: 6px 13px;
  font-size: 0.82rem;
  border-radius: 7px;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
  border-color: transparent;
}
.btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(37,99,235,0.1);
  color: #2563eb;
  border-color: rgba(37,99,235,0.2);
}
.btn-secondary:hover {
  background: rgba(37,99,235,0.18);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-secondary);
}
.btn-outline:hover {
  background: rgba(37,99,235,0.06);
  border-color: rgba(37,99,235,0.3);
  color: var(--text-primary);
}

/* Topbar dropdown */
.topbar-profile-menu-container {
  position: relative;
}

.topbar-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  z-index: 500;
  overflow: hidden;
  animation: viewFadeIn 0.18s ease;
}

[data-theme="dark"] .topbar-dropdown-menu {
  background: #1e293b;
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.topbar-profile-menu-container.open .topbar-dropdown-menu {
  display: block;
}

.topbar-dropdown-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f1f5f9;
}

[data-theme="dark"] .topbar-dropdown-header {
  border-bottom-color: rgba(255,255,255,0.07);
}

.dropdown-user-name {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.dropdown-cid-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-family: monospace;
  color: #94a3b8;
  margin-top: 2px;
}

.topbar-dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 2px 0;
}

[data-theme="dark"] .topbar-dropdown-divider {
  background: rgba(255,255,255,0.07);
}

.topbar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s ease;
}

.topbar-dropdown-item:hover {
  background: #f8fafc;
  color: var(--text-primary);
}

[data-theme="dark"] .topbar-dropdown-item:hover {
  background: rgba(255,255,255,0.05);
}

.topbar-dropdown-item.text-danger {
  color: #ef4444;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

