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

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Color Palette - Premium Executive Dark Theme */
  --bg-primary: #080c16;
  --bg-secondary: #0f172a;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(99, 102, 241, 0.35);
  --border-glow: rgba(99, 102, 241, 0.6);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-accent: #818cf8;

  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-glow: rgba(99, 102, 241, 0.25);

  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.25);
  
  --emerald: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  --emerald-border: rgba(16, 185, 129, 0.3);

  --amber: #f59e0b;
  --amber-bg: rgba(245, 158, 11, 0.12);
  --amber-border: rgba(245, 158, 11, 0.3);

  --rose: #f43f5e;
  --rose-bg: rgba(244, 63, 94, 0.12);
  --rose-border: rgba(244, 63, 94, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.1) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(139, 92, 246, 0.08) 0px, transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #a5b4fc;
}

/* Header & Navbar */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 12, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.nav-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

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

.nav-badge {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #a5b4fc;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.hero-pill .dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

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

/* Glassmorphism Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

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

/* Form Controls */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.form-label .required {
  color: var(--rose);
}

.form-control {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.125rem;
  font-size: 0.95rem;
  color: #fff;
  font-family: var(--font-sans);
  color-scheme: dark;
  transition: all 0.25s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  background: rgba(15, 23, 42, 0.95);
}

.form-control::placeholder {
  color: var(--text-dim);
}

/* Difficulty Selector Grid */
.difficulty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.difficulty-option {
  position: relative;
  cursor: pointer;
}

.difficulty-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.difficulty-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.25rem;
  text-align: left;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.difficulty-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  background: rgba(30, 41, 59, 0.6);
}

.difficulty-option input[type="radio"]:checked + .difficulty-card {
  border-color: var(--primary);
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.15), rgba(15, 23, 42, 0.85));
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.25);
}

.diff-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.diff-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
}

.diff-easy { background: var(--emerald-bg); color: var(--emerald); border: 1px solid var(--emerald-border); }
.diff-hard { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.diff-expert { background: var(--rose-bg); color: var(--rose); border: 1px solid var(--rose-border); }

.diff-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
}

.diff-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.45;
  flex-grow: 1;
}

.diff-meta {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Feature highlights banner */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.feature-item {
  display: flex;
  gap: 0.875rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 0.92rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
  color: #fff;
}

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

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

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

.btn-success:hover {
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-outline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.btn-danger {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.825rem;
}

/* ==========================================================================
   Assessment Test Runner UI
   ========================================================================== */

.assessment-header {
  position: sticky;
  top: 73px;
  z-index: 40;
  background: rgba(8, 12, 22, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.875rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.candidate-brief {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.candidate-name-badge {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.candidate-token {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

/* Floating Timer Badge */
.timer-container {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 0.45rem 1.125rem;
  border-radius: 9999px;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

.timer-clock {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.timer-clock.timer-warning {
  color: #f59e0b;
  animation: pulse 1.5s infinite;
}

.timer-clock.timer-danger {
  color: #f43f5e;
  animation: pulse 0.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Progress bar */
.test-progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
}

.test-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  transition: width 0.3s ease;
}

/* Question Navigator Grid */
.question-nav-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

.q-nav-pill {
  min-width: 38px;
  width: auto;
  padding: 0 0.65rem;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}

.q-nav-pill:hover {
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
}

.q-nav-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.q-nav-pill.answered {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.q-nav-pill.flagged {
  border-color: var(--amber);
  color: var(--amber);
  position: relative;
}

.q-nav-pill.flagged::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
}

/* Question Card */
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.q-category-tag {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
}

.q-index-tag {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* ==========================================================================
   Interactive Practical Client Call Simulator UI
   ========================================================================== */

.client-call-card {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.8));
  border: 1.5px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.15);
  position: relative;
  overflow: hidden;
}

.client-call-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #06b6d4, #6366f1);
}

.call-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.caller-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.caller-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
  position: relative;
}

.caller-avatar.ringing {
  animation: call-pulse 1.2s infinite;
}

@keyframes call-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
  70% { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(6, 182, 212, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.caller-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.caller-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.call-tone-pill {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.call-audio-player-bar {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.25rem 0;
  gap: 1rem;
}

.call-play-btn {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.35);
}

.call-play-btn:hover {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  transform: translateY(-1px);
}

.audio-sound-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}

.wave-bar {
  width: 3px;
  height: 8px;
  background: #06b6d4;
  border-radius: 3px;
  transition: height 0.2s ease;
}

.wave-playing .wave-bar {
  animation: wave-anim 0.8s infinite ease-in-out alternate;
}

.wave-playing .wave-bar:nth-child(1) { animation-delay: 0.1s; }
.wave-playing .wave-bar:nth-child(2) { animation-delay: 0.25s; }
.wave-playing .wave-bar:nth-child(3) { animation-delay: 0.4s; }
.wave-playing .wave-bar:nth-child(4) { animation-delay: 0.15s; }
.wave-playing .wave-bar:nth-child(5) { animation-delay: 0.3s; }

@keyframes wave-anim {
  0% { height: 4px; }
  100% { height: 24px; }
}

.call-transcript-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  border-left: 3px solid #06b6d4;
  font-size: 0.95rem;
  color: #f1f5f9;
  line-height: 1.5;
  font-style: italic;
}

/* ==========================================================================
   Pronunciation Test Studio UI
   ========================================================================== */

.pronunciation-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.pron-term-display {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0.5rem 0;
  line-height: 1.35;
}

.pron-phonetic-guide {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.1);
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 1rem;
}

.pron-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.pron-result-badge {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.875rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pron-match-high { background: var(--emerald-bg); color: var(--emerald); border: 1px solid var(--emerald-border); }
.pron-match-med { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.pron-match-low { background: var(--rose-bg); color: var(--rose); border: 1px solid var(--rose-border); }

/* ==========================================================================
   Voice Test & Audio Recording Studio UI
   ========================================================================== */

.voice-recording-studio {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 1.5px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(244, 63, 94, 0.15);
}

.voice-meter-wrap {
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.voice-timer-display {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.voice-rec-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.voice-rec-status.recording-active {
  color: #f43f5e;
}

.voice-rec-status.recording-active .dot {
  width: 10px;
  height: 10px;
  background: #f43f5e;
  border-radius: 50%;
  animation: pulse-red 0.8s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.8); }
  70% { transform: scale(1.2); box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

.voice-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.voice-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.voice-metric-item {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.875rem;
  text-align: center;
}

.voice-metric-val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.voice-metric-lbl {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Call Scenario Box */
.scenario-box {
  background: rgba(15, 23, 42, 0.9);
  border-left: 4px solid #06b6d4;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  position: relative;
}

.scenario-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #06b6d4;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.scenario-text {
  font-size: 0.95rem;
  color: #e2e8f0;
  font-style: italic;
  line-height: 1.5;
}

.question-prompt {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 2rem;
}

/* Options Container */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.option-item {
  position: relative;
  cursor: pointer;
}

.option-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.125rem 1.35rem;
  transition: all 0.2s ease;
}

.option-card:hover {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateX(3px);
}

.option-item input[type="radio"]:checked + .option-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(15, 23, 42, 0.85));
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.option-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s;
}

.option-item input[type="radio"]:checked + .option-card .option-badge {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.option-text {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.5;
  flex-grow: 1;
}

/* Assessment Navigation Bar */
.assessment-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

/* ==========================================================================
   Result / Scorecard UI
   ========================================================================== */

.scorecard-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.score-hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.score-circle-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
}

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

.score-circle-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 10;
}

.score-circle-meter {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-out;
}

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

.score-pct {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.score-lbl {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* Recommendation Badges */
.rec-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hire-strong {
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
}

.hire-standard {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.hire-training {
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber-border);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
}

.hire-reject {
  background: var(--rose-bg);
  color: var(--rose);
  border: 1px solid var(--rose-border);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.2);
}

.rec-summary-text {
  max-width: 650px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Quick Stats Row */
.quick-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.quick-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Category Competency Bars */
.category-bars-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2.5rem;
}

.cat-bar-item {
  margin-bottom: 1.25rem;
}

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

.cat-bar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
}

.cat-bar-title {
  font-weight: 600;
  color: #e2e8f0;
}

.cat-bar-score {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
}

.cat-progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
}

.cat-progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.8s ease;
}

/* Detailed Question Review */
.review-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.review-item.review-correct {
  border-left: 4px solid var(--emerald);
}

.review-item.review-incorrect {
  border-left: 4px solid var(--rose);
}

.review-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.status-correct { background: var(--emerald-bg); color: var(--emerald); }
.status-incorrect { background: var(--rose-bg); color: var(--rose); }

.review-explanation {
  background: rgba(15, 23, 42, 0.85);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-top: 1rem;
  border-left: 3px solid #6366f1;
  font-size: 0.875rem;
  color: #cbd5e1;
}

/* ==========================================================================
   Admin / Recruiter Dashboard
   ========================================================================= */

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.admin-table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.5rem;
}

.table-toolbar {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.6);
  flex-wrap: wrap;
  gap: 1rem;
}

.search-input-wrap {
  position: relative;
  min-width: 280px;
}

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

.data-table th {
  background: rgba(15, 23, 42, 0.8);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  color: #cbd5e1;
}

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

/* Tabs */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-btn.active {
  color: #fff;
  border-bottom-color: var(--primary);
}

/* Audio Player widget */
audio {
  filter: invert(0.9) hue-rotate(180deg);
  border-radius: 9999px;
  height: 38px;
  outline: none;
}

/* Certificate Print View */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .app-header, .btn, .tabs-nav, .table-toolbar {
    display: none !important;
  }
  .glass-card, .score-hero-card, .category-bars-card {
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  .score-pct, .hero-title, .diff-title, .cat-bar-title {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .difficulty-grid { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: 1fr; }
  .quick-stats-row { grid-template-columns: repeat(2, 1fr); }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .voice-metrics-grid { grid-template-columns: 1fr; }
  .assessment-header { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}
