/* Central Stylesheet - WSNE Consulting Recruitment Academy & Trainer */

:root {
  --bg-dark: #0b0f19;
  --bg-panel: rgba(17, 24, 39, 0.85);
  --bg-card: rgba(31, 41, 55, 0.6);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.25);
  
  --color-text-main: #f3f4f6;
  --color-text-muted: #9ca3af;
  
  /* BPO Color Scheme (Teal / Emerald) */
  --bpo-primary: #10b981;
  --bpo-primary-hover: #059669;
  --bpo-glow: rgba(16, 185, 129, 0.3);
  --bpo-bg-soft: rgba(16, 185, 129, 0.08);

  /* IT Color Scheme (Cyan / Royal Blue) */
  --it-primary: #00f0ff;
  --it-primary-hover: #0284c7;
  --it-glow: rgba(0, 240, 255, 0.3);
  --it-bg-soft: rgba(0, 240, 255, 0.08);

  /* General Accents */
  --accent-purple: #8b5cf6;
  --accent-purple-hover: #7c3aed;
  --danger: #ef4444;
  --warning: #f59e0b;
}

/* Base Reset & Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--color-text-main);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0, 240, 255, 0.08) 0px, transparent 50%);
}

h1, h2, h3, h4, .header-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Modal Overlays & Verification forms */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 10, 18, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
}

.registration-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  padding: 40px;
  border-radius: 20px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  animation: modalScale 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-content {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  padding: 30px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  animation: modalScale 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--it-primary);
  box-shadow: 0 0 8px var(--it-glow);
}

select.form-input option {
  background-color: var(--bg-dark);
  color: #fff;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* User Switcher details in header */
.profile-name-text {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.switch-user-link {
  font-size: 11px;
  color: var(--it-primary);
  text-decoration: none;
  font-weight: 500;
  margin-top: 2px;
}

.switch-user-link:hover {
  text-decoration: underline;
}

/* SPA Layout Structure */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Header */
.app-header {
  height: 70px;
  background-color: rgba(11, 15, 25, 0.8);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-logo {
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
}

.logo-accent {
  background: linear-gradient(90deg, var(--it-primary), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-nav {
  display: flex;
  gap: 10px;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-btn-mgmt {
  border: 1px dashed rgba(139, 92, 246, 0.3) !important;
  color: #c4b5fd;
}

.nav-btn-mgmt:hover {
  background-color: rgba(139, 92, 246, 0.1) !important;
  color: #fff;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--it-primary), var(--accent-purple));
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
}

/* Main Layout Area */
.main-layout {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* Sidebar */
.app-sidebar {
  width: 280px;
  background-color: rgba(15, 23, 42, 0.4);
  border-right: 1px solid var(--border-light);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}

.sidebar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.progress-section {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
}

.progress-lbl {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.progress-bar-container {
  height: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--bpo-primary), var(--it-primary));
  border-radius: 4px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-percentage {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.sidebar-track-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.track-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bpo-color { color: var(--bpo-primary); }
.it-color { color: var(--it-primary); }

.module-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.module-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-text-muted);
  transition: all 0.2s ease;
}

.module-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  color: #fff;
}

.module-item.active {
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-weight: 500;
}

.module-status-icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
}

.module-item.completed .module-status-icon {
  color: var(--bpo-primary);
  content: '✓';
}

.reset-btn {
  margin-top: auto;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.reset-btn:hover {
  background-color: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Content Area */
.content-view {
  flex: 1;
  padding: 40px;
  overflow-y: auto;
  position: relative;
}

/* SPA Views */
.spa-view {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

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

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

/* Dashboard Hero */
.dashboard-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 40%, var(--it-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 15px;
}

.hero-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  max-width: 100%;
  max-height: 280px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.05);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  gap: 8px;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--accent-purple);
  color: #fff;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  background-color: var(--accent-purple-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-light);
}

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

.btn-bpo {
  background-color: var(--bpo-primary);
  color: #0b0f19;
  box-shadow: 0 4px 14px var(--bpo-glow);
}

.btn-bpo:hover {
  background-color: var(--bpo-primary-hover);
  transform: translateY(-2px);
}

.btn-it {
  background-color: var(--it-primary);
  color: #0b0f19;
  box-shadow: 0 4px 14px var(--it-glow);
}

.btn-it:hover {
  background-color: var(--it-primary-hover);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.track-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.track-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

.card-bpo:hover { box-shadow: 0 10px 30px -10px var(--bpo-glow); }
.card-it:hover { box-shadow: 0 10px 30px -10px var(--it-glow); }

.track-card-icon {
  font-size: 36px;
  margin-bottom: 5px;
}

.track-card h3 {
  font-size: 20px;
  font-weight: 600;
}

.track-card p {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
}

.card-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--color-text-muted);
}

.badge {
  background: rgba(255,255,255,0.05);
  color: var(--color-text-muted);
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

.badge-locked {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-unlocked {
  background: rgba(16, 185, 129, 0.1);
  color: #a7f3d0;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--bg-panel);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  backdrop-filter: blur(15px);
  z-index: 1000;
  transition: all 0.3s ease;
  transform: translateY(0);
  opacity: 1;
}

.toast.hidden {
  transform: translateY(50px);
  opacity: 0;
  pointer-events: none;
}

.toast.success {
  border-left: 4px solid var(--bpo-primary);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

/* Module Layout & View Titles */
.view-header {
  margin-bottom: 30px;
}

.view-header h2 {
  font-size: 28px;
  margin-bottom: 6px;
}

.view-header .subtitle {
  color: var(--color-text-muted);
  font-size: 14px;
}

.module-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

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

.module-num {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.module-card h3 {
  font-size: 22px;
  margin-top: 4px;
}

.module-score {
  font-size: 14px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.score-unresolved { background: rgba(255,255,255,0.05); color: var(--color-text-muted); }
.score-pass { background: rgba(16, 185, 129, 0.1); color: var(--bpo-primary); border: 1px solid rgba(16, 185, 129, 0.2); }
.score-fail { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }

.module-intro {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 14px;
}

/* ==========================================
   BRIEFING VS TESTING WORKSPACE TAB STYLING
   ========================================== */
.trainer-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 25px;
  gap: 5px;
}

.trainer-tab {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trainer-tab:hover:not(.locked) {
  color: #fff;
}

.trainer-tab.active.bpo-tab {
  color: var(--bpo-primary);
  border-bottom-color: var(--bpo-primary);
}

.trainer-tab.active.it-tab {
  color: var(--it-primary);
  border-bottom-color: var(--it-primary);
}

.trainer-tab.locked {
  opacity: 0.4;
  cursor: not-allowed;
}

.briefing-scroll-panel {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  font-size: 14px;
  line-height: 1.7;
  max-height: 480px;
  overflow-y: auto;
  margin-bottom: 25px;
  text-align: left;
}

.briefing-scroll-panel h4 {
  font-size: 16px;
  color: #fff;
  margin-top: 20px;
  margin-bottom: 8px;
  border-left: 3px solid var(--it-primary);
  padding-left: 10px;
}

.briefing-scroll-panel.bpo-brief h4 {
  border-left-color: var(--bpo-primary);
}

.briefing-scroll-panel p {
  margin-bottom: 12px;
  color: #d1d5db;
}

.briefing-scroll-panel ul {
  margin-left: 20px;
  margin-bottom: 15px;
  color: #cbd5e1;
}

.briefing-scroll-panel li {
  margin-bottom: 6px;
}

.briefing-highlight-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--warning);
  padding: 15px;
  border-radius: 6px;
  margin: 15px 0;
  font-size: 13px;
  color: #e2e8f0;
}

/* ==========================================
   MODULE 1 BPO: ZONE & SHIFT VALIDATOR
   ========================================== */
.zone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.candidate-profile-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cand-name-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cand-avatar-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #2d3748;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 20px;
  font-weight: bold;
}

.profile-field {
  display: grid;
  grid-template-columns: 150px 1fr;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 8px;
}

.profile-field-lbl {
  color: var(--color-text-muted);
  font-weight: 500;
}

.profile-field-val {
  color: #fff;
  font-weight: 600;
}

.interactive-zone-box {
  background: rgba(255, 255, 255, 0.01);
  border: 2px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.validator-actions {
  display: flex;
  gap: 15px;
  width: 100%;
}

.btn-approve {
  background-color: var(--bpo-primary);
  color: #0b0f19;
  flex: 1;
}

.btn-approve:hover { background-color: var(--bpo-primary-hover); transform: scale(1.02); }

.btn-reject {
  background-color: var(--danger);
  color: #fff;
  flex: 1;
}

.btn-reject:hover { background-color: #dc2626; transform: scale(1.02); }

.validation-feedback {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 15px;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 15px;
}

.validation-feedback.correct { border-left: 4px solid var(--bpo-primary); }
.validation-feedback.wrong { border-left: 4px solid var(--danger); }

/* ==========================================
   MODULE 2 BPO: VOICE SCREENING
   ========================================== */
.voice-simulator-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
}

.audio-console {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.audio-player-mock {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bpo-primary);
  color: #0b0f19;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
}

.player-timeline {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  position: relative;
  border-radius: 2px;
}

.player-progress {
  height: 100%;
  width: 0%;
  background: var(--bpo-primary);
  border-radius: 2px;
}

.waveform-canvas {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
}

.wave-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  height: 10px;
  border-radius: 1px;
  transition: height 0.1s ease;
}

.wave-bar.active {
  background: var(--bpo-primary);
}

.voice-transcript-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
  max-height: 200px;
  overflow-y: auto;
  font-style: italic;
  color: var(--color-text-muted);
}

.grading-console {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.grade-slider-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.grade-slider-lbl {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
}

.grade-slider-lbl span:last-child {
  font-weight: bold;
  color: var(--bpo-primary);
}

.grade-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
  outline: none;
}

.grade-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bpo-primary);
  cursor: pointer;
  box-shadow: 0 0 8px var(--bpo-glow);
}

/* ==========================================
   MODULE 3 BPO: CHAT LOG AUDITOR
   ========================================== */
.chat-auditor-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
}

.chat-simulator {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 480px;
  overflow-y: auto;
}

.chat-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-bubble.customer {
  align-self: flex-start;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--color-text-main);
  border-bottom-left-radius: 4px;
}

.chat-bubble.candidate {
  align-self: flex-end;
  background-color: var(--bpo-bg-soft);
  color: #fff;
  border-bottom-right-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

/* Interactive Audit Word styling */
.audit-err-tag {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
  margin: 1px 0;
  font-weight: 500;
  color: #fca5a5;
}

.audit-err-tag:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: scale(1.05);
}

.audit-err-tag.found {
  background: rgba(16, 185, 129, 0.3);
  border-color: var(--bpo-primary);
  color: #a7f3d0;
  text-decoration: line-through;
}

.audit-score-panel {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.audit-score-card {
  text-align: center;
  padding: 20px;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
}

.audit-count {
  font-size: 40px;
  font-weight: 800;
  color: var(--bpo-primary);
}

.audit-corrections-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  font-size: 12px;
}

.audit-correction-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 6px;
}

.audit-correction-title {
  font-weight: bold;
  color: #fca5a5;
  margin-bottom: 2px;
}

.audit-correction-title.found {
  color: #a7f3d0;
}

/* ==========================================
   MODULE 1 IT: TECH VOCABULARY MATCH
   ========================================== */
.matcher-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.matcher-sources-pool {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.draggable-tech-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: grab;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  user-select: none;
}

.draggable-tech-card:hover {
  border-color: var(--it-primary);
  box-shadow: 0 0 10px var(--it-glow);
  transform: translateY(-2px);
}

.draggable-tech-card.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.matcher-targets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.dropzone-target {
  background: rgba(17, 24, 39, 0.6);
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
}

.dropzone-target.dragover {
  border-color: var(--it-primary);
  background: rgba(0, 240, 255, 0.05);
}

.dropzone-header {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.remove-chip {
  color: var(--danger);
  font-size: 10px;
  margin-left: 6px;
  cursor: pointer;
}

/* ==========================================
   MODULE 2 IT: RESUME SCREENING & JD
   ========================================== */
.resume-matcher-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
}

.jd-panel {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jd-title-row {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  margin-bottom: 5px;
}

.jd-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jd-pill {
  font-size: 11px;
  background: var(--it-bg-soft);
  color: var(--it-primary);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.resume-inspect-panel {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.resume-tabs {
  display: flex;
  gap: 8px;
}

.resume-tab {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--color-text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.resume-tab.active {
  background: var(--it-bg-soft);
  border-color: var(--it-primary);
  color: var(--it-primary);
}

.resume-tab.completed {
  border-color: var(--bpo-primary);
}

.resume-paper {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 24px;
  max-height: 400px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
}

.resume-section-title {
  font-weight: bold;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 4px;
  margin-top: 15px;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* ==========================================
   MANAGEMENT VIEW DATA TABLE
   ========================================== */
.table-container {
  width: 100%;
  margin-top: 15px;
}

.management-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
}

.management-table th {
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--border-light);
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.management-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
}

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

.status-indicator {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.status-indicator.certified {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.status-indicator.training {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

/* ==========================================
   CERTIFICATION VIEW
   ========================================== */
.cert-screen-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}

.cert-glass-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 40px;
  max-width: 800px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.trophy-icon {
  font-size: 64px;
  margin-bottom: 15px;
  animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.cert-desc {
  color: var(--color-text-muted);
  font-size: 15px;
  margin-bottom: 30px;
}

.score-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.score-pill {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.score-pill-name {
  font-size: 11px;
  color: var(--color-text-muted);
}

.score-pill-value {
  font-size: 14px;
  font-weight: 700;
}

.cert-summary-score {
  font-size: 16px;
  margin-bottom: 25px;
}

.large-score {
  font-size: 32px;
  font-weight: 800;
  color: var(--it-primary);
  vertical-align: middle;
  margin-left: 8px;
}

.cert-locked-alert {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border-radius: 10px;
  padding: 20px;
  font-size: 14px;
}

/* Hardcopy/Visual Certificate */
.certificate-card {
  margin-top: 30px;
  background: #ffffff;
  color: #1e293b;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.8);
  animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cert-border {
  border: 4px double #b45309;
  padding: 10px;
}

.cert-inner-border {
  border: 1px solid #d97706;
  padding: 40px;
  position: relative;
  background-color: #fbfbf9;
}

.cert-title {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #1e3a8a;
  margin-bottom: 5px;
}

.cert-subtitle {
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  letter-spacing: 0.2em;
  margin-bottom: 30px;
}

.cert-body {
  font-size: 14px;
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto 30px;
  color: #475569;
}

.cert-holder-name {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  border-bottom: 1px solid #cbd5e1;
  display: inline-block;
  padding: 0 30px 5px;
  margin-bottom: 25px;
  text-transform: uppercase;
}

.cert-date {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 30px;
}

.cert-signature-row {
  display: flex;
  justify-content: space-around;
  margin-top: 40px;
}

.signature {
  width: 150px;
}

.sig-line {
  border-bottom: 1px solid #94a3b8;
  height: 30px;
  margin-bottom: 8px;
}

.sig-title {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.cert-seal {
  position: absolute;
  bottom: 25px;
  right: 25px;
  width: 65px;
  height: 65px;
  border: 2px solid #b45309;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 10px;
  color: #b45309;
  transform: rotate(-15deg);
  border-style: dashed;
}

.hidden {
  display: none !important;
}

/* Print Specific rules */
@media print {
  body * {
    visibility: hidden;
  }
  .certificate-card, .certificate-card * {
    visibility: visible;
  }
  .certificate-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    padding: 0;
  }
  .certificate-card button {
    display: none;
  }
}

/* ==========================================
   ADVANCED EXPANSIONS: OBJECTION SIMULATOR
   ========================================== */
.objection-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin: 15px auto;
}

.objection-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.objection-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.candidate-speech-bubble {
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--it-primary);
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
  font-style: italic;
}

.candidate-speech-bubble.bpo-theme {
  border-left-color: var(--bpo-primary);
}

.recruiter-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.recruiter-option-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  padding: 14px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
  color: #cbd5e1;
}

.recruiter-option-card:hover {
  border-color: var(--it-primary);
  background: rgba(0, 240, 255, 0.03);
  color: #fff;
  transform: translateX(4px);
}

.recruiter-option-card.bpo-theme-hover:hover {
  border-color: var(--bpo-primary);
  background: rgba(16, 185, 129, 0.03);
}

.recruiter-option-card.selected {
  border-color: var(--it-primary);
  background: rgba(0, 240, 255, 0.08);
  color: #fff;
}

.recruiter-option-card.selected.bpo-theme-sel {
  border-color: var(--bpo-primary);
  background: rgba(16, 185, 129, 0.08);
}

/* ==========================================
   SVG REPORTING ANALYTICS CHARTS
   ========================================== */
.svg-chart {
  width: 100%;
  height: 100%;
  max-height: 200px;
}

.chart-bar {
  transition: fill 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.chart-bar:hover {
  filter: brightness(1.2);
}

.chart-text {
  font-size: 9px;
  fill: var(--color-text-muted);
  font-family: 'Inter', sans-serif;
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
}

.chart-donut-base {
  fill: none;
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 16;
}

.chart-donut-seg {
  fill: none;
  stroke-width: 16;
  transition: stroke-dashoffset 0.5s ease;
}

.chart-funnel-layer {
  transition: fill 0.2s ease;
  cursor: pointer;
}

.chart-funnel-layer:hover {
  filter: brightness(1.15);
}

