/* ==========================================================================
   MultiWorkWala - Enterprise Recruitment Assessment Platform Design System
   Modern, High-Contrast, Polished Visual System
   ========================================================================== */

:root {
  /* Core Brand Colors */
  --primary: #0a1120;
  --primary-surface: #101a2e;
  --primary-border: #1e293b;
  
  --ink: #0f172a;
  --ink-secondary: #334155;
  --muted: #64748b;
  --paper: #f8fafc;
  --card: #ffffff;
  
  /* Vibrant Accent Palette */
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e48;
  
  --accent: var(--teal-600);
  --accent-hover: var(--teal-700);
  --accent-active: var(--teal-800);
  --accent-light: var(--teal-50);
  --accent-border: var(--teal-200);

  /* Functional Status Colors */
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --warning-border: #fef3c7;
  --warning-ink: #92400e;

  /* Borders & Shadows */
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.09), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   1. GLOBAL HEADER & BRANDING
   ========================================================================== */
.app-header {
  background: var(--primary);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--primary-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 10px;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.4px;
  line-height: 1.1;
}

.brand-sub {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.system-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

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

.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
}

.nav-btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.logout-btn {
  background: #1e293b;
  color: #fca5a5;
  border: 1px solid #334155;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

/* ==========================================================================
   2. BUTTONS & UI PRIMITIVES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover:not(:disabled) {
  background: #f8fafc;
  border-color: var(--ink-secondary);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  background: #f1f5f9;
  color: var(--ink);
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.btn-danger:hover:not(:disabled) {
  background: #b91c1c;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 15px;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

button:disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================================================
   3. LANDING PAGE - HERO SECTION (TWO-COLUMN)
   ========================================================================== */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
  padding: 24px 0 48px;
}

@media (min-width: 960px) {
  .hero-section {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    padding: 40px 0 60px;
  }
}

.hero-section.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 16px 52px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .hero-section.hero-centered {
    grid-template-columns: none;
    display: flex;
    padding: 56px 20px 68px;
  }
}

.hero-content-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero-content-center .hero-title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-content-center .hero-desc {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-content-center .hero-stats-grid {
  width: 100%;
  max-width: 740px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 680px) {
  .hero-content-center .hero-stats-grid {
    grid-template-columns: 1fr;
  }
}

.hero-content-center .hero-cta-group {
  justify-content: center;
  margin-bottom: 24px;
}

.hero-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 6px;
}

.feat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #0f766e;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  padding: 6px 16px;
  border-radius: 99px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.corp-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  color: var(--teal-800);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.corp-tag-icon {
  font-size: 14px;
}

.hero-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--primary);
  margin: 0 0 16px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 46px;
  }
}

.gradient-text {
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin: 0 0 28px;
  max-width: 600px;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.hero-stat-card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-xs);
  transition: all 0.2s ease;
}

.hero-stat-card:hover {
  border-color: var(--teal-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  font-size: 24px;
}

.stat-body {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.stat-lbl {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 500;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ==========================================================================
   4. HERO RIGHT COLUMN: EMBLEM & QUICK START CARD
   ========================================================================== */
.hero-card-col {
  width: 100%;
}

.emblem-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.emblem-card:hover {
  box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
}

.emblem-card-top {
  background: linear-gradient(135deg, #0a1120 0%, #172554 100%);
  color: #ffffff;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.emblem-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.emblem-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.emblem-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #ffffff;
}

.emblem-sub {
  font-size: 12px;
  color: #94a3b8;
}

.verified-badge {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.emblem-card-body {
  padding: 24px;
  background: #ffffff;
}

.overview-spec-box {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.overview-spec-header strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.overview-spec-header p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}

.track-preview-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.track-preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.track-preview-item:hover {
  border-color: var(--teal-500);
  background: var(--teal-50);
}

.track-preview-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  background: var(--paper);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.track-preview-info {
  flex: 1;
}

.track-preview-info strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.2;
}

.track-preview-info span {
  font-size: 11.5px;
  color: var(--muted);
}

.track-preview-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.quick-login-box {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.quick-login-header strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}

.quick-login-header p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

.quick-login-form .input-group {
  margin-bottom: 14px;
}

.quick-login-form label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-secondary);
  margin-bottom: 5px;
}

.quick-login-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family: inherit;
  font-size: 14px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.quick-login-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.security-meta-strip {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
}

.sec-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

.sec-icon {
  font-size: 13px;
}

/* ==========================================================================
   5. INTERACTIVE 6-ROUND CURRICULUM EXPLORER
   ========================================================================== */
.section-block {
  margin: 48px 0;
}

.section-header {
  margin-bottom: 28px;
}

.section-header.center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--accent);
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  padding: 4px 12px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary);
  margin: 0 0 10px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.round-nav-tabs {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}

.round-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.round-tab-btn:hover {
  background: var(--paper);
  border-color: var(--line-strong);
  color: var(--ink);
}

.round-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tab-round-num {
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.round-tab-btn:not(.active) .tab-round-num {
  background: #f1f5f9;
  color: var(--muted);
}

.round-detail-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.3s ease;
}

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

.rd-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.rd-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  background: var(--accent-light);
  color: var(--accent-active);
  border: 1px solid var(--accent-border);
  padding: 3px 10px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.rd-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
}

.rd-type {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.rd-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rd-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.rd-pill b {
  color: var(--ink);
}

.rd-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .rd-body {
    grid-template-columns: 1.4fr 1fr;
  }
}

.rd-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
}

.rd-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rd-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-secondary);
  border-bottom: 1px dashed #f1f5f9;
}

.rd-list li:last-child {
  border-bottom: 0;
}

.rd-list .chk {
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
}

.rd-objective-box {
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  padding: 16px;
  border-radius: 12px;
}

.rd-objective-box strong {
  display: block;
  font-size: 13px;
  color: var(--teal-900);
  margin-bottom: 4px;
}

.rd-objective-box p {
  font-size: 13px;
  color: var(--teal-800);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   6. SYSTEM READINESS & DIAGNOSTICS WIDGET
   ========================================================================== */
.diagnostics-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.diag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.diag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.diag-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.diag-icon {
  font-size: 22px;
}

.diag-info {
  flex: 1;
}

.diag-info strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}

.diag-status {
  font-size: 12px;
  color: var(--muted);
}

.diag-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-green {
  background: var(--success-bg);
  border: 1px solid var(--success-border);
  color: var(--success);
}

/* ==========================================================================
   7. FAQ ACCORDION
   ========================================================================== */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item:hover {
  border-color: var(--line-strong);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-toggle {
  font-size: 20px;
  color: var(--muted);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  color: var(--accent);
}

/* ==========================================================================
   8. CANDIDATE & ADMIN INTERFACES (SHARED COMPONENTS)
   ========================================================================== */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  border-color: var(--line-strong);
}

label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 16px 0 6px;
}

input[type='text'],
input[type='password'],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14.5px;
  background: #ffffff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input[type='text']:focus,
input[type='password']:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Sticky Timer Banner in Candidate Portal */
.timer-card-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 24px;
  background: #ffffff;
  border-left: 5px solid var(--accent);
  position: sticky;
  top: 72px;
  z-index: 90;
  box-shadow: var(--shadow-md);
  margin-bottom: 20px;
}

.round-status-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.round-badge {
  font-size: 13px;
  font-weight: 700;
  background: var(--primary);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

.candidate-badge {
  font-size: 14px;
  color: var(--ink-secondary);
}

.candidate-badge b {
  color: var(--ink);
}

.timer-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.timer-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-900);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timer-digits {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 20px;
  font-weight: 800;
  color: var(--teal-900);
  letter-spacing: 1px;
}

.timer-box.urgent {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  animation: pulseUrgent 1.2s infinite ease-in-out;
}

.timer-box.urgent .timer-title,
.timer-box.urgent .timer-digits {
  color: var(--danger);
}

@keyframes pulseUrgent {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.time-warning-banner {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-ink);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.notice-callout {
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 22px;
}

.progress #bar {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 0.4s ease;
}

/* Question Choice Blocks */
.q-block {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.q-block:first-of-type {
  border-top: 0;
  padding-top: 8px;
}

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

.q-number {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.q-marks {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
}

.q-text {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 14px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 10px 0;
  cursor: pointer;
  background: #ffffff;
  transition: all 0.15s ease;
}

.choice:hover {
  background: #f8fafc;
  border-color: var(--line-strong);
}

.choice input[type='radio'],
.choice input[type='checkbox'] {
  margin-top: 4px;
  accent-color: var(--accent);
  cursor: pointer;
}

.choice span {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.4;
}

.code-editor-wrap {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 10px;
  box-shadow: var(--shadow-sm);
}

.code-editor-header {
  background: #1e293b;
  color: #cbd5e1;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.code-textarea {
  width: 100%;
  min-height: 280px;
  padding: 14px;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 13.5px;
  line-height: 1.6;
  background: #0f172a;
  color: #f8fafc;
  border: 0;
  border-radius: 0;
  tab-size: 2;
}

.code-textarea:focus {
  outline: none;
}

.written-textarea {
  min-height: 140px;
  padding: 14px;
}

.test-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

/* ==========================================================================
   9. ADMIN DASHBOARD SPECIFICS
   ========================================================================== */
.login-card {
  max-width: 440px;
  margin: 50px auto;
  box-shadow: var(--shadow-md);
}

.auth-card-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 8px;
}

.action-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: #ffffff;
  border-left: 4px solid var(--accent);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.tabs button {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.tabs button.on {
  background: var(--accent);
  color: #ffffff;
}

.q-item {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.q-item:first-child {
  border-top: 0;
}

.tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 99px;
  background: #f1f5f9;
  color: var(--ink-secondary);
  font-weight: 600;
  margin-right: 6px;
}

.tag-accent {
  background: var(--teal-50);
  color: var(--teal-900);
  border: 1px solid var(--teal-200);
}

.opt {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
}

.opt input[type='text'] {
  flex: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
  background: #f8fafc;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.answers {
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* ==========================================================================
   10. UTILITIES & FOOTER
   ========================================================================== */
.ok {
  color: var(--teal-900);
  font-weight: 600;
}

.bad {
  color: var(--danger);
  font-weight: 600;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  padding: 10px 14px;
  border-radius: 8px;
  margin: 12px 0;
}

.muted {
  color: var(--muted);
}

.hide {
  display: none !important;
}

.center {
  text-align: center;
}

a.btn {
  text-decoration: none;
}

.app-footer {
  background: #0a1120;
  color: #94a3b8;
  padding: 40px 24px 30px;
  border-top: 1px solid #1e293b;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 2px;
}

.footer-brand strong {
  color: #ffffff;
  font-size: 15px;
}

.footer-brand p {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copy {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 12px;
  color: #64748b;
  text-align: center;
  border-top: 1px solid #1e293b;
  padding-top: 20px;
}
