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

:root {
  /* Color Palette - Institutional White & Purple */
  --bg-core: #ffffff;
  --bg-core-rgb: 255, 255, 255;
  --bg-panel: rgba(249, 250, 251, 0.95);
  --bg-panel-solid: #ffffff;
  --border-cyber: #e5e7eb;
  --border-cyber-active: #6d28d9;
  --card-bg: #f9fafb;
  --scanline-opacity: 0;
  --grid-opacity: 0;
  --shadow-intensity: 0.02;
  --header-bg-opacity: 0.02;

  --neon-cyan: #2563eb;
  --neon-pink: #dc2626;
  --neon-green: #16a34a;
  --neon-purple: #7c3aed;
  --neon-amber: #ea580c;

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;

  /* Active Theme Colors (Purple Accent) */
  --theme-color: #6d28d9;
  --theme-glow: rgba(109, 40, 217, 0.15);
  --theme-glow-weak: rgba(109, 40, 217, 0.02);

  /* Fonts */
  --font-title: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-tech: 'Inter', sans-serif;
  --font-main: 'Inter', sans-serif;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Theme Classes - All mapped to the institutional theme to ensure compatibility */
body.theme-cyan,
body.theme-matrix,
body.theme-pink,
body.theme-amber,
body.theme-purple,
body.theme-light {
  --bg-core: #ffffff;
  --bg-core-rgb: 255, 255, 255;
  --bg-panel: rgba(249, 250, 251, 0.95);
  --bg-panel-solid: #ffffff;
  --border-cyber: #e5e7eb;
  --border-cyber-active: #6d28d9;
  --card-bg: #f9fafb;
  --scanline-opacity: 0;
  --grid-opacity: 0;
  --shadow-intensity: 0.02;
  --header-bg-opacity: 0.02;

  --neon-cyan: #2563eb;
  --neon-pink: #dc2626;
  --neon-green: #16a34a;
  --neon-purple: #7c3aed;
  --neon-amber: #ea580c;

  --theme-color: #6d28d9;
  --theme-glow: rgba(109, 40, 217, 0.15);
  --theme-glow-weak: rgba(109, 40, 217, 0.02);

  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
}

/* Reset and Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-core);
  color: var(--text-primary);
  font-family: var(--font-mono);
  overflow-x: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Matrix Background Canvas - Hidden for Professional Theme */
#bg-canvas,
.grid-overlay,
.scanline,
.scanline-moving {
  display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #c084fc;
  /* soft purple for scrollbar thumb */
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--theme-color);
}

/* Main Layout & HUD Grid */
.hud-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 1.5rem;
  gap: 1rem;
}

/* HUD Header Styling */
.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-cyber);
  background: var(--bg-panel);
  padding: 1rem 1.5rem;
  border-radius: 6px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border-left: 6px solid var(--theme-color);
  /* Elegant solid purple left bar */
}

.hud-header::before {
  display: none;
  /* Hide old cyber overlay absolute bar */
}

.hud-header-title {
  padding-left: 0.5rem;
}

.hud-header-title h1 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-header-title h1 span {
  font-size: 0.75rem;
  background: var(--theme-color);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-tech);
  letter-spacing: 0px;
  font-weight: 600;
}

.hud-sys-stats {
  display: flex;
  gap: 2rem;
  font-family: var(--font-tech);
  font-size: 0.9rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.stat-val {
  color: var(--theme-color);
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* System Pulse Indicator */
.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--neon-green);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* Core Dashboard Content Splitter */
.hud-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  flex: 1;
  gap: 1rem;
  min-height: 0;
  /* allows proper scroll nesting */
}

@media (max-width: 1024px) {
  .hud-body {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    overflow-y: auto;
  }

  .hud-container {
    height: auto;
    min-height: 100vh;
  }
}

/* Panel Containers */
.hud-panel {
  border: 1px solid var(--border-cyber);
  background: var(--bg-panel);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  position: relative;
}

/* Panel Header Decorator */
.panel-header {
  background: #f8fafc;
  border-bottom: 1px solid var(--border-cyber);
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-title {
  font-family: var(--font-title);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.panel-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--theme-color);
  border-radius: 2px;
}

.panel-controls {
  display: flex;
  gap: 6px;
}

.panel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--border-cyber);
}

.panel-dot.dot-red {
  background: rgba(255, 95, 87, 0.1);
  border-color: rgb(255, 95, 87);
}

.panel-dot.dot-yellow {
  background: rgba(255, 189, 46, 0.1);
  border-color: rgb(255, 189, 46);
}

.panel-dot.dot-green {
  background: rgba(40, 200, 64, 0.1);
  border-color: rgb(40, 200, 64);
}

/* Left Console - Interactive JSON viewer */
.console-wrapper {
  flex: 1;
  overflow: auto;
  padding: 1.5rem;
  position: relative;
  background-color: var(--bg-core);
}

/* PRE Code styling */
pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

code {
  display: block;
}

/* Syntax Highlighting for JSON */
.json-bracket {
  color: #8892b0;
  font-weight: bold;
}

.json-key {
  color: var(--theme-color);
  text-shadow: 0 0 3px var(--theme-glow-weak);
  font-weight: 500;
}

.json-string {
  color: var(--neon-pink);
}

.json-string.group-name {
  color: #38bdf8;
  font-weight: bold;
  text-shadow: 0 0 4px rgba(56, 189, 248, 0.3);
}

.json-number {
  color: var(--neon-amber);
}

.json-boolean {
  color: var(--neon-purple);
  font-weight: bold;
}

.json-null {
  color: #64748b;
  font-style: italic;
}

/* JSON Line / Item hover formatting */
.json-item {
  display: block;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-top: 4px;
  margin-bottom: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: 0 4px 4px 0;
}

.json-item:hover,
.json-item.selected {
  background: rgba(0, 240, 255, 0.04);
  border-left-color: var(--theme-color);
  box-shadow: inset 5px 0 15px rgba(0, 240, 255, 0.02);
}

body.theme-matrix .json-item:hover,
body.theme-matrix .json-item.selected {
  background: rgba(57, 255, 20, 0.04);
  border-left-color: var(--theme-color);
}

body.theme-pink .json-item:hover,
body.theme-pink .json-item.selected {
  background: rgba(255, 0, 127, 0.04);
  border-left-color: var(--theme-color);
}

body.theme-amber .json-item:hover,
body.theme-amber .json-item.selected {
  background: rgba(255, 170, 0, 0.04);
  border-left-color: var(--theme-color);
}

body.theme-purple .json-item:hover,
body.theme-purple .json-item.selected {
  background: rgba(189, 0, 255, 0.04);
  border-left-color: var(--theme-color);
}

body.theme-light .json-item:hover,
body.theme-light .json-item.selected {
  background: rgba(79, 70, 229, 0.08);
  border-left-color: var(--theme-color);
  box-shadow: inset 5px 0 15px rgba(79, 70, 229, 0.02);
}

/* Console Search and Filtering Bar */
.console-action-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border-cyber);
  align-items: center;
  flex-wrap: wrap;
}

.cyber-search {
  flex: 1;
  min-width: 150px;
  background: #ffffff;
  border: 1px solid var(--border-cyber);
  color: var(--text-primary);
  font-family: var(--font-tech);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.cyber-search:focus {
  border-color: var(--theme-color);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.15);
}

.cyber-btn {
  background: #ffffff;
  border: 1px solid var(--theme-color);
  color: var(--theme-color);
  font-family: var(--font-tech);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.cyber-btn:hover {
  background: var(--theme-color);
  color: #ffffff;
}

.cyber-btn.active {
  background: var(--theme-color);
  color: #ffffff;
  font-weight: 600;
}

/* Terminal Console Gutter Line Numbers */
.console-container {
  display: flex;
  position: relative;
  height: 100%;
}

.line-numbers {
  padding: 1.5rem 0.5rem 1.5rem 1rem;
  color: var(--text-muted);
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.6;
  user-select: none;
  border-right: 1px solid var(--border-cyber);
  background: #f9fafb;
}

/* Right Panel HUD Details */
.detail-panel {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: 1.5rem;
  overflow-y: auto;
  background-color: var(--card-bg);
}

.no-selection {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: var(--text-secondary);
  text-align: center;
  gap: 1rem;
  opacity: 0.6;
  padding: 2rem;
}

.no-selection-icon {
  font-size: 3rem;
  color: var(--theme-color);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.selection-active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.4s ease-out;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hologram Header */
.holo-screen {
  border: 1px solid var(--border-cyber);
  background: linear-gradient(135deg, #f5f3ff, #ffffff);
  padding: 1.5rem;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.holo-screen::after {
  display: none;
}

.holo-tag {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--theme-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid var(--theme-color);
  padding: 2px 8px;
  display: inline-block;
  margin-bottom: 0.75rem;
  border-radius: 4px;
  background: #f5f3ff;
}

.holo-group-name {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  word-break: break-all;
}

.holo-team-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-family: var(--font-tech);
  color: var(--text-secondary);
}

.holo-team-val {
  color: var(--theme-color);
  font-weight: bold;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-card {
  border: 1px solid var(--border-cyber);
  background: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.info-card-label {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-family: var(--font-tech);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.info-card-val {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--text-primary);
}

.info-card-val.status-active {
  color: #2563eb;
}

.info-card-val.status-pending {
  color: #d97706;
}

.info-card-val.status-completed {
  color: #16a34a;
}

/* Progress Gauge */
.progress-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.progress-bar-bg {
  height: 10px;
  background: #f1f5f9;
  border: 1px solid var(--border-cyber);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: var(--theme-color);
  width: 0%;
  transition: width 1s cubic-bezier(0.1, 0.8, 0.2, 1);
}

/* Sci-fi Diagnostic Logs Console */
.diag-logs-container {
  border: 1px solid var(--border-cyber);
  background: #ffffff;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  height: 180px;
}

.diag-header {
  background: #f9fafb;
  border-bottom: 1px solid var(--border-cyber);
  padding: 0.5rem 1rem;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.diag-body {
  padding: 1rem;
  overflow-y: auto;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.diag-line {
  display: flex;
  gap: 8px;
}

.diag-time {
  color: var(--text-muted);
  user-select: none;
}

.diag-txt {
  word-break: break-all;
}

.diag-txt.success {
  color: #16a34a;
}

.diag-txt.info {
  color: #2563eb;
}

.diag-txt.warn {
  color: #d97706;
}

/* Theme Selector Control Panel - Hidden */
.theme-selector-panel {
  display: none !important;
}

.theme-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.theme-options {
  display: flex;
  gap: 12px;
}

.theme-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-fast);
  border: 2px solid transparent;
}

.theme-dot:hover {
  transform: scale(1.2);
}

.theme-dot.active {
  border-color: #fff;
  box-shadow: 0 0 10px #fff;
  transform: scale(1.15);
}

body.theme-light .theme-dot.active {
  border-color: #0f172a;
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.4);
}

.theme-dot.dot-cyan {
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

.theme-dot.dot-matrix {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.theme-dot.dot-pink {
  background: var(--neon-pink);
  box-shadow: 0 0 8px var(--neon-pink);
}

.theme-dot.dot-amber {
  background: var(--neon-amber);
  box-shadow: 0 0 8px var(--neon-amber);
}

.theme-dot.dot-purple {
  background: var(--neon-purple);
  box-shadow: 0 0 8px var(--neon-purple);
}

.theme-dot.dot-light {
  background: #4f46e5;
  box-shadow: 0 0 8px rgba(79, 70, 229, 0.4);
}

/* Audio Control Button */
.audio-toggle {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 3px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.audio-toggle:hover {
  border-color: var(--theme-color);
  color: var(--theme-color);
  box-shadow: 0 0 8px var(--theme-glow);
}

/* Glitch effects disabled */
.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  display: none !important;
}

@keyframes glitch-anim {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

@keyframes glitch-anim2 {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 1;
  }
}

/* Fullscreen Exhibition Mode overlay */
.exhibition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 10px solid var(--theme-color);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.95);
  transition: opacity 0.3s cubic-bezier(0.1, 0.8, 0.2, 1), transform 0.3s cubic-bezier(0.1, 0.8, 0.2, 1), visibility 0.3s ease;
}

.exhibition-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.exhibition-content {
  text-align: center;
  max-width: 800px;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.countdown-number {
  font-family: var(--font-title);
  font-size: 7rem;
  font-weight: 900;
  color: var(--theme-color);
  margin: 1rem 0;
}

.exhibition-title {
  font-family: var(--font-title);
  font-size: 3rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.exhibition-team {
  font-family: var(--font-tech);
  font-size: 1.5rem;
  color: var(--theme-color);
  border: 1px solid var(--theme-color);
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  background: #f5f3ff;
}

.exhibition-meta {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.close-exhibition-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: #ffffff;
  border: 1px solid var(--border-cyber);
  color: var(--text-primary);
  font-family: var(--font-tech);
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.close-exhibition-btn:hover {
  border-color: #dc2626;
  color: #dc2626;
  background: #fef2f2;
}

/* Hologram spinning radar visualization styled cleanly */
.radar-scanner {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--border-cyber);
  margin: 0 auto;
}

.radar-scanner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--theme-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, var(--theme-color) 0deg, transparent 180deg);
  border-radius: 50%;
  animation: spin 3s linear infinite;
  opacity: 0.2;
  mask-image: radial-gradient(circle, transparent 30%, black 31%);
  -webkit-mask-image: radial-gradient(circle, transparent 30%, black 31%);
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.radar-grid {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border: 1px dashed var(--border-cyber);
}

.radar-blip {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--theme-color);
  border-radius: 50%;
  top: 30%;
  left: 65%;
  animation: blink 2s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

.blink-red {
  animation: blink-red-anim 0.8s infinite alternate;
}

@keyframes blink-red-anim {
  0% {
    opacity: 1;
    color: #ef4444;
  }

  100% {
    opacity: 0.3;
    color: #ef4444;
  }
}

/* Fullscreen Overlay Controls */
.exhibition-controls-wrapper {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.exhibition-controls-wrapper .cyber-btn {
  min-width: 150px;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: bold;
}

.btn-ex-restart {
  border-color: var(--neon-amber) !important;
  color: #d97706 !important;
  background: #fffbeb !important;
}

.btn-ex-restart:hover {
  background: #d97706 !important;
  color: #ffffff !important;
}

.btn-ex-finish {
  border-color: #16a34a !important;
  color: #16a34a !important;
  background: #f0fdf4 !important;
}

.btn-ex-finish:hover {
  background: #16a34a !important;
  color: #ffffff !important;
}

.btn-ex-next {
  border-color: var(--theme-color) !important;
  color: var(--theme-color) !important;
  background: #f5f3ff !important;
}

.btn-ex-next:hover {
  background: var(--theme-color) !important;
  color: #ffffff !important;
}

/* Navigation Tabs in Header */
.hud-nav {
  display: flex;
  gap: 0.5rem;
  margin-left: 2rem;
}

.nav-tab {
  font-family: var(--font-tech);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-tab:hover {
  color: var(--theme-color);
}

.nav-tab.active {
  color: var(--theme-color);
  border: 1px solid var(--border-cyber);
  border-bottom: 2px solid var(--theme-color);
  background: #f5f3ff;
  border-radius: 4px 4px 0 0;
}

/* Evaluation Screen Custom Classes */
.eval-body {
  grid-template-columns: 360px 1fr !important;
}

@media (max-width: 1024px) {
  .eval-body {
    grid-template-columns: 1fr !important;
  }
}

/* Team Selector Items in Evaluation list */
.eval-team-item {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-cyber);
  background: #ffffff;
  margin-bottom: 0.6rem;
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eval-team-item:hover {
  background: #f9fafb;
  border-color: #cbd5e1;
  transform: translateX(3px);
}

.eval-team-item.selected {
  border-color: var(--theme-color);
  background: #f5f3ff;
}

.eval-team-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.eval-team-item-name {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.eval-team-item-sub {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.eval-team-item-status {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: bold;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.status-badge-pending {
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fee2e2;
}

.status-badge-evaluated {
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #dcfce7;
}

/* Rubric Layout */
.rubric-form-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.8rem;
  overflow-y: auto;
  flex: 1;
}

.criterion-card {
  border: 1px solid var(--border-cyber);
  background: #ffffff;
  padding: 1.25rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color var(--transition-fast);
}

.criterion-card:hover {
  border-color: #cbd5e1;
}

.criterion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-left: 3px solid var(--theme-color);
  padding-left: 0.6rem;
}

.criterion-title {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.criterion-active-desc {
  font-family: var(--font-main);
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: #f8fafc;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  border-left: 3px solid #cbd5e1;
}

/* Rubric Options Grid - 4 Columns */
/* Evaluation Target Header - Large & Centered */
.evaluation-target-header {
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--border-cyber);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.evaluation-target-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--theme-color), transparent);
}

.target-pre-title {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.target-title {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: 0.5px;
}

.target-meta {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.target-topic {
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-cyber);
  line-height: 1.4;
}

.target-topic strong {
  font-family: var(--font-tech);
  color: var(--theme-color);
  letter-spacing: 0.5px;
}

/* Disabled Button States */
.cyber-btn:disabled,
.cyber-btn.disabled {
  opacity: 0.5 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  border-color: #d1d5db !important;
  color: #9ca3af !important;
  background: #f3f4f6 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* Rubric Options Grid - Stacked Cards (Layout managed by Tailwind CSS) */
.rubric-option-btn {
  background: #ffffff;
  border: 1px solid var(--border-cyber);
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: var(--font-tech);
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 10px;
}

.rubric-option-btn-val {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.rubric-option-btn-label {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: bold;
  color: var(--text-primary);
}

.rubric-option-btn-desc {
  font-family: var(--font-main);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.rubric-option-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Color Coding based on ratings */
.rubric-option-btn.opt-excelente.selected {
  border-color: #16a34a !important;
  color: #16a34a !important;
  background: #f0fdf4 !important;
}

.rubric-option-btn.opt-excelente.selected .rubric-option-btn-val {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.rubric-option-btn.opt-excelente.selected .rubric-option-btn-label {
  color: #16a34a;
}

.rubric-option-btn.opt-bueno.selected {
  border-color: #2563eb !important;
  color: #2563eb !important;
  background: #eff6ff !important;
}

.rubric-option-btn.opt-bueno.selected .rubric-option-btn-val {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

.rubric-option-btn.opt-bueno.selected .rubric-option-btn-label {
  color: #2563eb;
}

.rubric-option-btn.opt-suficiente.selected {
  border-color: #d97706 !important;
  color: #d97706 !important;
  background: #fffbeb !important;
}

.rubric-option-btn.opt-suficiente.selected .rubric-option-btn-val {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

.rubric-option-btn.opt-suficiente.selected .rubric-option-btn-label {
  color: #d97706;
}

.rubric-option-btn.opt-insuficiente.selected {
  border-color: #dc2626 !important;
  color: #dc2626 !important;
  background: #fef2f2 !important;
}

.rubric-option-btn.opt-insuficiente.selected .rubric-option-btn-val {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

.rubric-option-btn.opt-insuficiente.selected .rubric-option-btn-label {
  color: #dc2626;
}

@media (max-width: 768px) {
  .target-title {
    font-size: 1.8rem;
  }

  .target-meta {
    font-size: 0.75rem;
    gap: 0.4rem;
  }
}

/* Comments Input */
.comments-panel {
  border: 1px solid var(--border-cyber);
  background: #ffffff;
  padding: 1rem;
  border-radius: 6px;
}

.comments-label {
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  display: block;
}

.cyber-textarea {
  width: 100%;
  height: 60px;
  background: #ffffff;
  border: 1px solid var(--border-cyber);
  padding: 0.5rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text-primary);
  resize: vertical;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.cyber-textarea:focus {
  outline: none;
  border-color: var(--theme-color);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.15);
}

/* Evaluation Score Stats Summary Bar */
.score-summary-bar {
  background: var(--bg-panel-solid);
  border-top: 1px solid var(--border-cyber);
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .score-summary-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
}

.score-stats-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-grow: 1;
}

.score-progress-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.score-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.score-val-total {
  font-weight: bold;
  color: var(--text-primary);
}

.score-grade-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 100px;
}

.score-grade-label {
  font-family: var(--font-tech);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.score-grade-num {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--theme-color);
}

.eval-actions-wrapper {
  display: flex;
  gap: 0.6rem;
}

.eval-actions-wrapper .cyber-btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

/* Quick Fill Panel styling */
.quick-fill-panel {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.quick-fill-panel .cyber-btn {
  flex: 1;
  padding: 0.4rem;
  font-size: 0.75rem;
}