/* Skylinx Assessment Portal - Custom Premium Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Core Theme Colors (Dark Slate Glassmorphism Base) */
  --bg-dark: #090d16;
  --bg-card: rgba(17, 24, 39, 0.7);
  --bg-input: rgba(10, 15, 26, 0.9);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(6, 182, 212, 0.4); /* Cyan focus */
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Role Accents */
  --accent-python: #ffd43b;
  --accent-python-glow: rgba(255, 212, 59, 0.15);
  
  --accent-cloud: #8a2be2;
  --accent-cloud-glow: rgba(138, 43, 226, 0.15);
  
  --accent-sql: #10b981;
  --accent-sql-glow: rgba(16, 185, 129, 0.15);
  
  --accent-pm: #38bdf8;
  --accent-pm-glow: rgba(56, 189, 248, 0.15);
  
  --accent-ai: #d946ef;
  --accent-ai-glow: rgba(217, 70, 239, 0.15);
  
  --accent-mern: #06b6d4; /* Custom Skylinx Cyan */
  --accent-mern-glow: rgba(6, 182, 212, 0.15);
  
  --accent-uiux: #ff7e5f;
  --accent-uiux-glow: rgba(255, 126, 95, 0.15);
  
  /* Global Utility Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-primary: #06b6d4; /* Skylinx Global primary brand color */
  
  --font-sans: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glow-shadow: 0 0 25px rgba(6, 182, 212, 0.15);
}

/* Global Reset & Base Styling */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--border-glass) transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a, button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-glass);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* App Wrapper and Header */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding: 1rem 1.5rem;
  background: #eaeaea; /* Light grey header background matching their website */
  border-radius: 12px;
  border-bottom: 3.5px solid #000000; /* Solid black/dark bottom border line */
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

header .btn-secondary {
  background: #090d16; /* Dark background to contrast with light header */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
header .btn-secondary:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  background: linear-gradient(135deg, #06b6d4, #0891b2); /* Skylinx Cyan gradient */
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, #ffffff, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-badge {
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #67e8f9;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 0.5rem;
  text-transform: uppercase;
}

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

/* Common Interactive Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #0891b2);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.35);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-accent {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #67e8f9;
}
.btn-accent:hover {
  background: rgba(6, 182, 212, 0.2);
  transform: translateY(-2px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-2px);
}

/* Glass Panels / Cards */
.panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

/* Screens / Layouts - SPA Routing Simulation */
.screen {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen.active {
  display: block;
}

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

/* ==========================================
   VIEW 1: LOBBY & ROLE SELECTOR
   ========================================== */
.lobby-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 968px) {
  .lobby-grid {
    grid-template-columns: 1fr;
  }
}

.welcome-box h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #ffffff, #67e8f9, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-box p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.role-card {
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  position: relative;
}

.role-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Accent bindings for role cards */
.role-card[data-role="python"]:hover { 
  box-shadow: 0 10px 30px var(--accent-python-glow); 
  border-color: rgba(255, 212, 59, 0.4);
}
.role-card[data-role="cloud"]:hover { 
  box-shadow: 0 10px 30px var(--accent-cloud-glow); 
  border-color: rgba(138, 43, 226, 0.4);
}
.role-card[data-role="sql"]:hover { 
  box-shadow: 0 10px 30px var(--accent-sql-glow); 
  border-color: rgba(16, 185, 129, 0.4);
}
.role-card[data-role="pm"]:hover { 
  box-shadow: 0 10px 30px var(--accent-pm-glow); 
  border-color: rgba(56, 189, 248, 0.4);
}
.role-card[data-role="ai"]:hover { 
  box-shadow: 0 10px 30px var(--accent-ai-glow); 
  border-color: rgba(217, 70, 239, 0.4);
}
.role-card[data-role="mern"]:hover { 
  box-shadow: 0 10px 30px var(--accent-mern-glow); 
  border-color: rgba(6, 182, 212, 0.4);
}
.role-card[data-role="uiux"]:hover { 
  box-shadow: 0 10px 30px var(--accent-uiux-glow); 
  border-color: rgba(255, 126, 95, 0.4);
}

.role-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.role-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.role-card[data-role="python"] .role-badge-icon { background: rgba(255, 212, 59, 0.1); color: var(--accent-python); }
.role-card[data-role="cloud"] .role-badge-icon { background: rgba(138, 43, 226, 0.1); color: var(--accent-cloud); }
.role-card[data-role="sql"] .role-badge-icon { background: rgba(16, 185, 129, 0.1); color: var(--accent-sql); }
.role-card[data-role="pm"] .role-badge-icon { background: rgba(56, 189, 248, 0.1); color: var(--accent-pm); }
.role-card[data-role="ai"] .role-badge-icon { background: rgba(217, 70, 239, 0.1); color: var(--accent-ai); }
.role-card[data-role="mern"] .role-badge-icon { background: rgba(6, 182, 212, 0.1); color: var(--accent-mern); }
.role-card[data-role="uiux"] .role-badge-icon { background: rgba(255, 126, 95, 0.1); color: var(--accent-uiux); }

.role-stats {
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.role-stat-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-glass);
}

.role-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.role-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.role-action {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--color-primary);
  transition: var(--transition-smooth);
}

.role-card:hover .role-action {
  gap: 0.5rem;
  filter: brightness(1.2);
}

/* Sidebar Stats / Info Panels */
.lobby-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-stats-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-glass);
}

.sidebar-stats-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.5rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.stat-value {
  font-weight: 700;
  color: var(--color-primary);
}

/* ==========================================
   VIEW 2: CANDIDATE INFO & LOGIN
   ========================================== */
.auth-panel {
  max-width: 550px;
  margin: 3rem auto;
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  padding: 0.8rem 1rem;
  border-radius: 10px;
  color: var(--text-main);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* File upload zone simulation */
.upload-zone {
  border: 2px dashed var(--border-glass);
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: rgba(255, 255, 255, 0.01);
}

.upload-zone:hover {
  border-color: var(--color-primary);
  background: rgba(6, 182, 212, 0.04);
}

.upload-icon {
  font-size: 2rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.upload-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.upload-selected-file {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.85rem;
}

.rules-list {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 1rem;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rules-list li {
  margin-bottom: 0.5rem;
  margin-left: 1.25rem;
}

/* ==========================================
   VIEW 3: ASSESSMENT WORKSPACE
   ========================================== */
.workspace-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  min-height: 700px;
}

@media (max-width: 968px) {
  .workspace-container {
    grid-template-columns: 1fr;
  }
}

.workspace-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.test-info-panel {
  padding: 1.25rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 16px;
  border: 1px solid var(--border-glass);
}

.timer-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-warning);
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 0.5rem;
  border-radius: 10px;
  margin-top: 0.75rem;
}

.timer-box.critical {
  color: var(--color-danger);
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  animation: pulseTimer 1s infinite alternate;
}

@keyframes pulseTimer {
  from { opacity: 1; }
  to { opacity: 0.6; }
}

.question-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.q-nav-btn {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.q-nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.q-nav-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.q-nav-btn.answered {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
}

/* Anti-Cheat Overlay Banner */
.cheat-alert-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Main workspace layout */
.workspace-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.question-card {
  padding: 2rem;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-glass);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.question-text {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1.5rem;
  white-space: pre-line;
}

.question-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.option-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.option-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

.option-btn.selected {
  background: rgba(6, 182, 212, 0.1);
  border-color: var(--color-primary);
  color: #67e8f9;
}

/* MCQ Option Circle indicator */
.option-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition-smooth);
  flex-shrink: 0;
}

.option-btn.selected .option-indicator {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: white;
}

/* MRQ Checkbox Styling (Customized indicator box) */
.option-btn.mrq-option .option-indicator {
  border-radius: 6px; /* Box instead of circle */
}

.option-btn.mrq-option.selected .option-indicator {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: white;
}

/* ==========================================
   SANDBOX: CODING ENGINE
   ========================================== */
.editor-sandbox {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 1rem;
  margin-top: 1rem;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
}

.editor-header {
  background: #111827;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
}

.editor-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.editor-textarea {
  width: 100%;
  height: 240px;
  background: #060911;
  border: none;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #e2e8f0;
  resize: vertical;
  outline: none;
  line-height: 1.5;
}

.console-panel {
  background: #03050a;
  border-top: 1px solid var(--border-glass);
  padding: 1rem;
}

.console-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.console-output {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  height: 110px;
  overflow-y: auto;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  color: var(--text-muted);
  white-space: pre-wrap;
}

.console-output.success { color: var(--color-success); }
.console-output.error { color: #f87171; }

/* ==========================================
   SANDBOX: SQL PLAYGROUND
   ========================================== */
.sql-sandbox-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .sql-sandbox-container {
    grid-template-columns: 1fr;
  }
}

.schema-explorer {
  background: rgba(10, 15, 26, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 1rem;
}

.schema-table-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-sql);
  margin-bottom: 0.5rem;
}

.schema-field-list {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  list-style: none;
  margin-left: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.schema-field-type {
  color: var(--text-dim);
  font-style: italic;
}

/* SQL Results Table view */
.sql-results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.sql-results-table th {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 6px 12px;
  text-align: left;
  color: var(--text-main);
}

.sql-results-table td {
  border: 1px solid var(--border-glass);
  padding: 6px 12px;
  color: var(--text-muted);
}

/* ==========================================
   SANDBOX: UI/UX CHALLENGE
   ========================================== */
.uiux-challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

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

.uiux-editor-controls {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.slider-input {
  width: 100%;
  height: 5px;
  background: var(--border-glass);
  border-radius: 5px;
  outline: none;
  -webkit-appearance: none;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-uiux);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 126, 95, 0.5);
  transition: 0.1s;
}

.slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.uiux-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
}

.uiux-preview-card {
  width: 100%;
  max-width: 320px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.uiux-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.uiux-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-uiux), #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}

.uiux-name {
  color: var(--text-main);
  font-weight: 700;
}

.uiux-tag {
  background: rgba(255, 126, 95, 0.15);
  color: #ffa07a;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
}

.uiux-desc {
  color: var(--text-muted);
}

.uiux-action-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.uiux-card-btn {
  background: var(--accent-uiux);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

.design-score-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* ==========================================
   VIEW 4: RESULTS SCORECARD
   ========================================== */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 968px) {
  .results-grid {
    grid-template-columns: 1fr;
  }
}

.results-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
}

.results-actions { display:flex; flex-direction:column; gap:0.75rem; width:100%; margin-top:2rem; }
.achievement-actions { display:flex; flex-direction:column; gap:0.75rem; }
.achievement-actions[hidden] { display:none; }
.achievement-earned { color:#6ee7b7; font-weight:700; }
.share-label { color:var(--text-muted); font-size:0.85rem; font-weight:600; }
.social-share-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:0.5rem; }
.social-share { color:#fff; border:0; padding:0.7rem 0.4rem; font-size:0.8rem; }
.social-share.linkedin { background:#0077b5; }
.social-share.facebook { background:#1877f2; }
.social-share.instagram { background:linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.share-status { min-height:1.1rem; color:#a7f3d0; font-size:0.78rem; }
.cert-score { margin:-1.5rem auto 2.5rem; color:#67e8f9; font-size:1.1rem; }

@media (max-width:520px) { .social-share-grid { grid-template-columns:1fr; } }

.score-radial-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 1.5rem;
}

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

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

.score-radial-progress {
  fill: none;
  stroke: url(#scoreGradient);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 502; /* 2 * PI * r (r=80) */
  stroke-dashoffset: 502;
  transition: stroke-dashoffset 1.5s ease-out;
}

.score-text-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-percentage {
  font-size: 2.5rem;
  font-weight: 800;
}

.score-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hireability-badge {
  font-size: 1rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hire-recommended {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.hire-strong {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.hire-potential {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hire-low {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Category Performance bar charts */
.category-bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.category-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}

.category-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

.category-bar-outer {
  background: rgba(255, 255, 255, 0.05);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.category-bar-inner {
  height: 100%;
  border-radius: 4px;
  background: var(--color-primary);
  width: 0;
  transition: width 1s ease-out;
}

/* Review Answers details accordion */
.review-answers-box {
  margin-top: 1.5rem;
}

.review-answers-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.review-item {
  background: rgba(30, 41, 59, 0.3);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.review-item.correct { border-left: 4px solid var(--color-success); }
.review-item.incorrect { border-left: 4px solid var(--color-danger); }

.review-question-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.review-choice {
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

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

.review-choice.user-incorrect {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.review-explanation {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================
   VIEW 5: RECRUITER / ADMIN DASHBOARD
   ========================================== */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.admin-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.analytics-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.analytics-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.analytics-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-top: 0.5rem;
}

.admin-section-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

@media (max-width: 968px) {
  .admin-section-grid {
    grid-template-columns: 1fr;
  }
}

.candidates-table-card {
  padding: 1.5rem;
}

.candidates-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  border-bottom: 2px solid var(--border-glass);
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 600;
}

.admin-table td {
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 16px;
  color: var(--text-main);
}

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

/* Question CRUD styling */
.crud-card {
  padding: 1.5rem;
}

.crud-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

/* Certificate layout styles */
.certificate-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s;
}

.certificate-modal.active {
  display: flex;
}

.certificate-container {
  width: 100%;
  max-width: 800px;
  background: #0b0f19;
  border: 12px double #1e293b;
  padding: 4rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  color: #fff;
  background-image: radial-gradient(circle at center, #111827 0%, #070a10 100%);
}

.certificate-border-decor {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 2px solid rgba(6, 182, 212, 0.3); /* Cyan border decors */
  pointer-events: none;
}

.cert-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.cert-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.cert-recipient {
  font-size: 2rem;
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  display: inline-block;
  padding: 0 2rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.cert-description {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 2rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.cert-signature-line {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  width: 150px;
  margin-top: 0.5rem;
}

.cert-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Tab locking focus alert modal */
.focus-alert-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}

.focus-alert-modal.active {
  display: flex;
}

.focus-alert-box {
  max-width: 450px;
  background: #0b0f19;
  border: 2px solid var(--color-danger);
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
  padding: 2.5rem;
  border-radius: 16px;
  text-align: center;
}

.focus-alert-icon {
  font-size: 3rem;
  color: var(--color-danger);
  margin-bottom: 1rem;
  animation: heartbeat 1s infinite alternate;
}

@keyframes heartbeat {
  from { transform: scale(1); }
  to { transform: scale(1.15); }
}

.tab-switch-count {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-danger);
  margin: 1rem 0;
}

/* ==========================================
   COPY PROTECTION & INTEGRITY CONTROL
   ========================================== */
body, .question-card, .question-text, .option-btn, .schema-explorer, .sidebar-stats-card {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Allow text input editing inside coding and query sandboxes */
.editor-textarea, .editor-textarea-field, .form-input, input, textarea {
  user-select: text !important;
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
}
