/* css/app.css */
/* SimpaticoHR - Complete Design System */

:root {
  /* Brand Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-50: #eef2ff;
  --primary-100: #e0e7ff;

  --secondary: #0ea5e9;
  --secondary-dark: #0284c7;

  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #3b82f6;
  --info-light: #dbeafe;

  /* Neutrals */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Layout */
  --sidebar-width: 280px;
  --sidebar-collapsed: 72px;
  --header-height: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

  --transition: all 0.2s ease;
  --transition-slow: all 0.3s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ==========================================
   LANDING PAGE
   ========================================== */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  padding: 0 2rem;
  height: var(--header-height);
  display: flex; align-items: center; justify-content: space-between;
  transition: var(--transition);
}
.landing-nav.scrolled { box-shadow: var(--shadow-md); }
.nav-logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.5rem; }
.nav-logo .logo-icon {
  width: 40px; height: 40px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.2rem;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--gray-600); font-weight: 500; transition: var(--transition); font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Hero Section */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: calc(var(--header-height) + 4rem) 2rem 4rem;
  background: linear-gradient(135deg, var(--primary-50) 0%, #f0f9ff 50%, #faf5ff 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(14,165,233,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: white; border-radius: 100px; font-size: 0.85rem;
  color: var(--primary); font-weight: 600; box-shadow: var(--shadow);
  margin-bottom: 1.5rem; border: 1px solid var(--primary-100);
}
.hero-badge .pulse { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; color: var(--gray-900); margin-bottom: 1.5rem; }
.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.2rem; color: var(--gray-600); max-width: 540px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2rem; margin-top: 3rem; }
.hero-stat { text-align: center; }
.hero-stat .number { font-size: 2rem; font-weight: 800; color: var(--primary); }
.hero-stat .label { font-size: 0.85rem; color: var(--gray-500); }

.hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-dashboard-preview {
  width: 100%; max-width: 600px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); overflow: hidden;
  background: white; border: 1px solid var(--gray-200);
  transform: perspective(1000px) rotateY(-5deg);
  transition: var(--transition-slow);
}
.hero-dashboard-preview:hover { transform: perspective(1000px) rotateY(0deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 0.95rem; transition: var(--transition); border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: white; color: var(--gray-700); border-color: var(--gray-300); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-warning { background: var(--warning); color: white; }
.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-sm); }
.btn:disabled { opacity: 0.5; pointer-events: none; }

/* Feature Cards */
.features-section {
  padding: 6rem 2rem; max-width: 1400px; margin: 0 auto;
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; color: var(--gray-900); margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; color: var(--gray-500); max-width: 600px; margin: 0 auto; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: white; border-radius: var(--radius-lg); padding: 2rem;
  border: 1px solid var(--gray-200); transition: var(--transition);
  position: relative; overflow: hidden;
}
.feature-card:hover { border-color: var(--primary-light); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-card .icon {
  width: 56px; height: 56px; border-radius: var(--radius); display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem;
}
.feature-card .icon.purple { background: var(--primary-50); color: var(--primary); }
.feature-card .icon.blue { background: #dbeafe; color: var(--info); }
.feature-card .icon.green { background: var(--success-light); color: var(--success); }
.feature-card .icon.orange { background: var(--warning-light); color: var(--warning); }
.feature-card .icon.red { background: var(--danger-light); color: var(--danger); }
.feature-card .icon.cyan { background: #cffafe; color: #06b6d4; }
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.feature-card p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.7; }
.feature-card .tag {
  position: absolute; top: 1rem; right: 1rem; padding: 4px 10px;
  background: var(--primary); color: white; font-size: 0.7rem;
  border-radius: 100px; font-weight: 600; text-transform: uppercase;
}

/* ==========================================
   DASHBOARD LAYOUT
   ========================================== */
.app-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-width); background: var(--gray-900); color: white;
  display: flex; flex-direction: column; position: fixed;
  top: 0; left: 0; bottom: 0; z-index: 100;
  transition: var(--transition-slow);
  overflow-y: auto;
}
.sidebar.collapsed { width: var(--sidebar-collapsed); }
.sidebar-header {
  padding: 1.25rem; display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  min-height: var(--header-height);
}
.sidebar-logo {
  width: 36px; height: 36px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; flex-shrink: 0;
}
.sidebar-brand { font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.sidebar.collapsed .sidebar-brand { display: none; }

.sidebar-menu { padding: 1rem 0.75rem; flex: 1; }
.menu-section { margin-bottom: 1.5rem; }
.menu-section-title {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gray-500); padding: 0 0.75rem; margin-bottom: 0.5rem; font-weight: 600;
}
.sidebar.collapsed .menu-section-title { display: none; }

.menu-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border-radius: var(--radius-sm); color: var(--gray-400);
  transition: var(--transition); margin-bottom: 2px; font-size: 0.9rem; font-weight: 500;
  cursor: pointer; position: relative;
}
.menu-item:hover { background: rgba(255,255,255,0.08); color: white; }
.menu-item.active { background: var(--primary); color: white; }
.menu-item .icon { width: 20px; text-align: center; flex-shrink: 0; }
.menu-item .label { white-space: nowrap; }
.sidebar.collapsed .menu-item .label { display: none; }
.menu-item .badge {
  margin-left: auto; background: var(--danger); color: white; font-size: 0.7rem;
  padding: 2px 7px; border-radius: 100px; font-weight: 600;
}
.sidebar.collapsed .menu-item .badge { display: none; }

.sidebar-footer {
  padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px; padding: 8px;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.sidebar-user:hover { background: rgba(255,255,255,0.08); }
.sidebar-user .avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center; font-weight: 600;
  font-size: 0.85rem; flex-shrink: 0;
}
.sidebar-user .info { overflow: hidden; }
.sidebar-user .name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.sidebar-user .email { font-size: 0.75rem; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar.collapsed .sidebar-user .info { display: none; }

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width); flex: 1;
  transition: var(--transition-slow);
}
.sidebar.collapsed + .main-content,
.sidebar.collapsed ~ .main-content { margin-left: var(--sidebar-collapsed); }

/* Top Header */
.top-header {
  height: var(--header-height); background: white; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; position: sticky; top: 0; z-index: 50;
}
.header-left { display: flex; align-items: center; gap: 1rem; }
.header-right { display: flex; align-items: center; gap: 1rem; }
.toggle-sidebar {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--gray-500); background: none;
  transition: var(--transition);
}
.toggle-sidebar:hover { background: var(--gray-100); }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--gray-500); }
.breadcrumb .current { color: var(--gray-800); font-weight: 600; }

.search-bar {
  display: flex; align-items: center; gap: 8px; background: var(--gray-100);
  border-radius: var(--radius-sm); padding: 8px 16px; min-width: 300px;
}
.search-bar input {
  border: none; background: none; outline: none; flex: 1;
  font-size: 0.9rem; color: var(--gray-800);
}
.search-bar .search-icon { color: var(--gray-400); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.notification-btn {
  position: relative; width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; background: none;
  color: var(--gray-500); transition: var(--transition);
}
.notification-btn:hover { background: var(--gray-100); }
.notification-btn .dot {
  position: absolute; top: 8px; right: 8px; width: 8px; height: 8px;
  background: var(--danger); border-radius: 50%; border: 2px solid white;
}

/* Page Content */
.page-content { padding: 2rem; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.page-header h1 { font-size: 1.75rem; font-weight: 800; color: var(--gray-900); }
.page-header .subtitle { color: var(--gray-500); font-size: 0.95rem; margin-top: 4px; }

/* Cards */
.card {
  background: white; border-radius: var(--radius); border: 1px solid var(--gray-200);
  overflow: hidden; transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-header {
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: 1rem; font-weight: 700; }
.card-body { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--gray-200); background: var(--gray-50); }

/* Stat Cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card {
  background: white; border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid var(--gray-200); display: flex; align-items: flex-start;
  justify-content: space-between;
}
.stat-card .stat-info h4 { font-size: 0.85rem; color: var(--gray-500); font-weight: 500; margin-bottom: 8px; }
.stat-card .stat-info .value { font-size: 2rem; font-weight: 800; color: var(--gray-900); }
.stat-card .stat-info .change {
  display: flex; align-items: center; gap: 4px; font-size: 0.8rem; margin-top: 8px;
  font-weight: 600;
}
.stat-card .stat-info .change.positive { color: var(--success); }
.stat-card .stat-info .change.negative { color: var(--danger); }
.stat-card .stat-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex;
  align-items: center; justify-content: center; font-size: 1.25rem;
}

/* Tables */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { 
  text-align: left; padding: 12px 16px; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500);
  font-weight: 600; border-bottom: 2px solid var(--gray-200);
  background: var(--gray-50);
}
td {
  padding: 12px 16px; border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem; color: var(--gray-700);
}
tr:hover td { background: var(--gray-50); }

/* Status Badges */
.badge {
  display: inline-flex; align-items: center; padding: 4px 12px;
  border-radius: 100px; font-size: 0.75rem; font-weight: 600;
}
.badge-primary { background: var(--primary-50); color: var(--primary); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: #d97706; }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--gray-700); margin-bottom: 6px;
}
.form-control {
  width: 100%; padding: 10px 14px; border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--gray-800);
  transition: var(--transition); background: white;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%236b7280' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-helper { font-size: 0.8rem; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 4px; }

/* Modals */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 1000;
  padding: 2rem;
}
.modal-overlay.active { display: flex; }
.modal {
  background: white; border-radius: var(--radius-lg); width: 100%;
  max-width: 600px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl); animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-header {
  padding: 1.5rem; border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 1.15rem; font-weight: 700; }
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem; border-top: 1px solid var(--gray-200);
  display: flex; justify-content: flex-end; gap: 0.75rem; background: var(--gray-50);
}

/* Pipeline / Kanban */
.pipeline { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 1rem; }
.pipeline-stage { min-width: 280px; max-width: 280px; flex-shrink: 0; }
.pipeline-stage-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px; margin-bottom: 8px;
}
.pipeline-stage-header h4 { font-size: 0.85rem; font-weight: 700; color: var(--gray-700); }
.pipeline-stage-header .count {
  background: var(--gray-200); color: var(--gray-600); font-size: 0.75rem;
  padding: 2px 8px; border-radius: 100px; font-weight: 600;
}
.pipeline-cards { display: flex; flex-direction: column; gap: 8px; min-height: 200px; padding: 4px; }
.pipeline-card {
  background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 12px; cursor: grab; transition: var(--transition);
}
.pipeline-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.pipeline-card.dragging { opacity: 0.5; transform: rotate(2deg); }
.pipeline-card .candidate-info { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pipeline-card .candidate-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary-100);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.75rem; color: var(--primary);
}
.pipeline-card .candidate-name { font-weight: 600; font-size: 0.85rem; }
.pipeline-card .candidate-role { font-size: 0.75rem; color: var(--gray-500); }
.pipeline-card .match-score {
  font-size: 0.8rem; font-weight: 700; padding: 2px 8px; border-radius: 4px;
}
.pipeline-card .match-score.high { background: var(--success-light); color: var(--success); }
.pipeline-card .match-score.medium { background: var(--warning-light); color: #d97706; }
.pipeline-card .match-score.low { background: var(--danger-light); color: var(--danger); }

/* ==========================================
   PROCTORED INTERVIEW
   ========================================== */
.interview-room {
  display: grid; grid-template-columns: 1fr 350px; gap: 0; height: 100vh;
  background: var(--gray-900); color: white;
}
.interview-main { display: flex; flex-direction: column; }
.interview-video-area {
  flex: 1; display: flex; align-items: center; justify-content: center;
  position: relative; background: #000; overflow: hidden;
}
.video-feed {
  width: 100%; height: 100%; object-fit: cover;
}
.video-overlay {
  position: absolute; inset: 0; pointer-events: none;
}
.eye-tracking-overlay {
  position: absolute; inset: 0;
}
.eye-dot {
  width: 16px; height: 16px; background: rgba(99,102,241,0.7);
  border-radius: 50%; position: absolute; transition: all 0.1s ease;
  box-shadow: 0 0 20px rgba(99,102,241,0.5);
}
.face-box {
  border: 2px solid var(--success); border-radius: 8px;
  position: absolute; transition: all 0.15s ease;
}
.face-box.warning { border-color: var(--warning); }
.face-box.danger { border-color: var(--danger); }

.proctor-status {
  position: absolute; top: 1rem; left: 1rem; display: flex;
  flex-direction: column; gap: 8px;
}
.proctor-indicator {
  display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px); padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 0.8rem;
}
.proctor-indicator .dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.proctor-indicator .dot.green { background: var(--success); }
.proctor-indicator .dot.red { background: var(--danger); animation: blink 1s infinite; }
.proctor-indicator .dot.yellow { background: var(--warning); }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.trust-meter {
  position: absolute; top: 1rem; right: 1rem; background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px); padding: 12px 16px; border-radius: var(--radius-sm);
  min-width: 160px;
}
.trust-meter .label { font-size: 0.75rem; color: var(--gray-400); margin-bottom: 6px; }
.trust-meter .score { font-size: 1.5rem; font-weight: 800; }
.trust-meter .score.high { color: var(--success); }
.trust-meter .score.medium { color: var(--warning); }
.trust-meter .score.low { color: var(--danger); }
.trust-bar { height: 4px; background: var(--gray-700); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.trust-bar .fill { height: 100%; border-radius: 2px; transition: var(--transition); }

.interview-controls {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  padding: 1.25rem; background: rgba(0,0,0,0.5);
}
.control-btn {
  width: 48px; height: 48px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; background: rgba(255,255,255,0.1);
  color: white; font-size: 1.1rem; transition: var(--transition); border: none;
}
.control-btn:hover { background: rgba(255,255,255,0.2); }
.control-btn.active { background: var(--primary); }
.control-btn.end-call { background: var(--danger); }
.control-btn.end-call:hover { background: #dc2626; }

.interview-sidebar {
  background: var(--gray-800); border-left: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column;
}
.interview-sidebar .tabs {
  display: flex; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.interview-sidebar .tab {
  flex: 1; padding: 12px; text-align: center; font-size: 0.8rem;
  color: var(--gray-400); cursor: pointer; transition: var(--transition);
  border-bottom: 2px solid transparent;
}
.interview-sidebar .tab.active { color: white; border-bottom-color: var(--primary); }
.interview-sidebar .tab-content { flex: 1; overflow-y: auto; padding: 1rem; }

.question-card {
  background: rgba(255,255,255,0.05); border-radius: var(--radius-sm);
  padding: 12px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.1);
}
.question-card .q-number { font-size: 0.7rem; color: var(--primary-light); font-weight: 600; }
.question-card .q-text { font-size: 0.85rem; margin-top: 4px; }
.question-card .q-timer { font-size: 0.75rem; color: var(--gray-500); margin-top: 8px; }

.violation-card {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-sm); padding: 10px; margin-bottom: 8px;
}
.violation-card .v-type { font-weight: 600; font-size: 0.8rem; color: var(--danger); }
.violation-card .v-time { font-size: 0.75rem; color: var(--gray-500); }
.violation-card .v-desc { font-size: 0.8rem; color: var(--gray-300); margin-top: 4px; }

/* ==========================================
   ONBOARDING WIZARD
   ========================================== */
.onboarding-wizard {
  max-width: 800px; margin: 0 auto;
}
.wizard-steps {
  display: flex; align-items: center; margin-bottom: 3rem; position: relative;
}
.wizard-steps::before {
  content: ''; position: absolute; top: 20px; left: 0; right: 0;
  height: 2px; background: var(--gray-200);
}
.wizard-step {
  flex: 1; text-align: center; position: relative; z-index: 1;
}
.wizard-step .step-circle {
  width: 40px; height: 40px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; margin: 0 auto 8px;
  background: white; border: 2px solid var(--gray-300); color: var(--gray-400);
  font-weight: 700; font-size: 0.85rem; transition: var(--transition);
}
.wizard-step.active .step-circle { border-color: var(--primary); color: var(--primary); background: var(--primary-50); }
.wizard-step.completed .step-circle { border-color: var(--success); background: var(--success); color: white; }
.wizard-step .step-label { font-size: 0.8rem; color: var(--gray-500); font-weight: 500; }
.wizard-step.active .step-label { color: var(--primary); font-weight: 600; }
.wizard-step.completed .step-label { color: var(--success); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 2.5rem; }
  .hero p { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-content { margin-left: 0 !important; }
}
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: calc(var(--header-height) + 2rem) 1rem 2rem; }
  .hero h1 { font-size: 2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .pipeline { flex-direction: column; }
  .pipeline-stage { min-width: 100%; max-width: 100%; }
  .interview-room { grid-template-columns: 1fr; }
  .interview-sidebar { max-height: 40vh; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 1rem; }
}

/* ==========================================
   UTILITIES
   ========================================== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-gray { color: var(--gray-500); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.p-4 { padding: 1rem; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius); }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 10000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: white; border-radius: var(--radius-sm); padding: 12px 20px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px;
  min-width: 300px; animation: slideIn 0.3s ease;
  border-left: 4px solid var(--primary);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes slideIn { from { opacity: 0; transform: translateX(100px); } to { opacity: 1; transform: translateX(0); } }

/* Loading */
.loading-screen {
  position: fixed; inset: 0; background: white; display: flex;
  align-items: center; justify-content: center; z-index: 10000;
  flex-direction: column; gap: 1rem;
}
.spinner {
  width: 40px; height: 40px; border: 3px solid var(--gray-200);
  border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite;
}
/* Training Module Fixes */
.training-dashboard {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 24px;
    margin-top: 20px;
}

.training-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.training-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.training-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.training-course-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
/* Analytics Module Fixes */
.analytics-container {
    background: white !important;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 24px;
    margin-top: 20px;
}

.analytics-chart-container {
    height: 400px;
    background: #f8fafc !important;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b !important;
}
