/* ==========================================================================
   CSS DESIGN SYSTEM: CRISIS SIMULATION AGENTS
   ========================================================================== */

/* Color variables & Fonts */
:root {
  --bg-darker: #05070a;
  --bg-dark: #0a0d14;
  --bg-panel: rgba(13, 20, 35, 0.65);
  --border-glow: rgba(0, 240, 255, 0.15);
  --border-active: rgba(0, 240, 255, 0.6);
  
  /* Cyber Colors */
  --cyber-cyan: #00f0ff;
  --cyber-cyan-dim: rgba(0, 240, 255, 0.3);
  --cyber-crimson: #ff2e54;
  --cyber-crimson-dim: rgba(255, 46, 84, 0.3);
  --cyber-green: #39ff14;
  --cyber-green-dim: rgba(57, 255, 20, 0.3);
  --cyber-gold: #ffd700;
  --cyber-gold-dim: rgba(255, 215, 0, 0.3);
  --cyber-purple: #bd00ff;
  --cyber-purple-dim: rgba(189, 0, 255, 0.3);
  
  /* Text */
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-dim: #475569;
  
  /* Fonts */
  --font-sans: 'Inter', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  
  /* Animations & Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

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

/* Grid & Scanline FX */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(18, 24, 38, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 24, 38, 0.2) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 1;
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.15) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 2;
}

/* Audio toggle floating bar */
.audio-control-bar {
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 100;
}

.control-btn {
  background: rgba(10, 15, 30, 0.8);
  border: 1px solid var(--cyber-cyan-dim);
  color: var(--cyber-cyan);
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.control-btn:hover {
  background: var(--cyber-cyan);
  color: var(--bg-darker);
  box-shadow: 0 0 15px var(--cyber-cyan);
  text-shadow: none;
}

.control-btn .btn-icon {
  font-size: 0.95rem;
}

/* Header Styles */
.app-header {
  background: rgba(8, 11, 18, 0.95);
  border-bottom: 1px solid rgba(0, 240, 255, 0.2);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.logo-area {
  display: flex;
  flex-direction: column;
}

.glitch-title {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--cyber-cyan);
  position: relative;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-top: 2px;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cyber-green);
}

.pulsing-green {
  background-color: var(--cyber-green);
  box-shadow: 0 0 10px var(--cyber-green);
  animation: pulse-green 1.5s infinite alternate;
}

.sim-round-badge {
  background: rgba(255, 46, 84, 0.1);
  border: 1px solid var(--cyber-crimson);
  color: var(--cyber-crimson);
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: bold;
  text-shadow: 0 0 5px var(--cyber-crimson);
}

/* Layout container */
.app-container {
  display: grid;
  grid-template-columns: 350px 1fr 350px;
  gap: 20px;
  padding: 20px;
  flex: 1;
  z-index: 5;
  position: relative;
}

/* Glass panel design */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.panel:hover {
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 8px 32px 0 rgba(0, 240, 255, 0.05);
}

.panel.inactive {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(80%);
}

.panel-title {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  margin-bottom: 18px;
  letter-spacing: 1px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cyan-glow-text {
  color: var(--cyber-cyan);
  text-shadow: 0 0 6px var(--cyber-cyan-dim);
}

.crimson-glow-text {
  color: var(--cyber-crimson);
  text-shadow: 0 0 6px var(--cyber-crimson-dim);
}

.panel-subtitle {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin: 15px 0 10px 0;
  letter-spacing: 0.5px;
}

/* Panel 1: Setup panel styles */
.setup-panel {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-group input,
.input-group select,
.input-group textarea {
  background: rgba(10, 15, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-primary);
  padding: 10px 12px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 8px var(--cyber-cyan-dim);
}

.input-group textarea {
  resize: none;
}

.grid-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Agent selection cards */
.agent-selector-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 5px;
}

.agent-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.agent-card:hover {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
}

.agent-card.active {
  background: rgba(0, 240, 255, 0.05);
  border-color: var(--cyber-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.agent-avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-avatar {
  width: 48px;
  height: 48px;
  background: #1e293b;
  border-radius: 4px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.agent-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.55rem;
  padding: 1px 4px;
  border-radius: 2px;
  font-weight: bold;
}

.tech-badge { background: var(--cyber-cyan); color: #000; }
.finance-badge { background: var(--cyber-gold); color: #000; }
.market-badge { background: var(--cyber-purple); color: #fff; }
.legal-badge { background: var(--cyber-crimson); color: #fff; }
.chaos-badge { background: var(--text-primary); color: #000; }

.agent-info h4 {
  font-size: 0.85rem;
  font-weight: bold;
}

.agent-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cyber-cyan);
  margin-bottom: 3px;
}

.agent-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
  line-height: 1.2;
}

/* Panel 2: Simulation chamber styling */
.sim-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100vh - 120px);
}

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

.active-agent-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.agent-pulse-status {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.red-pulse {
  background-color: var(--cyber-crimson);
  box-shadow: 0 0 8px var(--cyber-crimson);
  animation: pulse-red 1s infinite alternate;
}

.agent-status-name {
  color: var(--text-primary);
  font-weight: bold;
}

/* Terminal Log */
.terminal-container {
  flex: 1;
  background: #04060a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
}

.terminal-decorations {
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
  margin-bottom: 8px;
}

.terminal-feed {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 5px;
  scroll-behavior: smooth;
}

.terminal-msg {
  line-height: 1.4;
  word-break: break-word;
}

.timestamp {
  color: var(--text-dim);
  margin-right: 6px;
  font-size: 0.75rem;
}

.system-msg {
  color: var(--cyber-cyan);
}

.agent-msg {
  color: #fff;
  border-left: 2px solid var(--cyber-cyan);
  padding-left: 8px;
}

.agent-name-tag {
  color: var(--cyber-cyan);
  font-weight: bold;
}

.user-msg {
  color: var(--cyber-green);
  border-left: 2px solid var(--cyber-green);
  padding-left: 8px;
  align-self: flex-end;
  background: rgba(57, 255, 20, 0.02);
  width: 95%;
}

.user-name-tag {
  color: var(--cyber-green);
  font-weight: bold;
}

.crisis-msg {
  color: var(--cyber-crimson);
  background: rgba(255, 46, 84, 0.08);
  border: 1px dashed var(--cyber-crimson);
  padding: 8px;
  border-radius: 4px;
  animation: flash-border 1.5s infinite;
}

/* User Defense Input & Helper Chips */
.simulation-input-area {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.helper-chips-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.helper-chip {
  background: rgba(10, 20, 35, 0.8);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.helper-chip:hover {
  border-color: var(--cyber-cyan);
  color: var(--cyber-cyan);
  background: rgba(0, 240, 255, 0.05);
}

.helper-chip.disabled {
  opacity: 0.4;
  pointer-events: none;
}

.input-form {
  display: flex;
  gap: 10px;
}

.input-form textarea {
  flex: 1;
  background: #04060a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  color: var(--text-primary);
  padding: 10px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  resize: none;
  transition: all var(--transition-fast);
}

.input-form textarea:focus {
  border-color: var(--cyber-green);
  box-shadow: 0 0 8px var(--cyber-green-dim);
}

.input-form textarea:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Panel 3: Dashboard Panel Styles */
.dashboard-panel {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.metrics-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.metric-card {
  background: rgba(10, 15, 30, 0.5);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 12px;
  border-radius: 6px;
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.metric-value-container {
  display: flex;
  align-items: baseline;
  margin-bottom: 8px;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1;
}

.metric-percent {
  font-size: 0.9rem;
  margin-left: 2px;
  color: var(--text-secondary);
}

.color-green { color: var(--cyber-green); text-shadow: 0 0 5px var(--cyber-green-dim); }
.color-cyan { color: var(--cyber-cyan); text-shadow: 0 0 5px var(--cyber-cyan-dim); }
.color-red { color: var(--cyber-crimson); text-shadow: 0 0 5px var(--cyber-crimson-dim); }

.bg-green { background-color: var(--cyber-green); box-shadow: 0 0 8px var(--cyber-green); }
.bg-cyan { background-color: var(--cyber-cyan); box-shadow: 0 0 8px var(--cyber-cyan); }
.bg-red { background-color: var(--cyber-crimson); box-shadow: 0 0 8px var(--cyber-crimson); }

.metric-progress-outer {
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}

.metric-progress-inner {
  height: 100%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Live SVG Chart */
.chart-section {
  background: rgba(10, 15, 30, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 20px;
}

.chart-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.svg-container {
  width: 100%;
  height: 140px;
  margin-bottom: 8px;
}

#live-chart {
  width: 100%;
  height: 100%;
}

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

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

.chart-axis-text {
  fill: var(--text-dim);
  font-size: 9px;
  font-family: var(--font-mono);
}

.chart-legend {
  display: flex;
  gap: 15px;
  font-size: 0.7rem;
  color: var(--text-secondary);
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.dashed {
  border-radius: 2px;
}

/* Vulnerabilities Grid */
.heatmap-section {
  background: rgba(10, 15, 30, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  padding: 12px;
}

.vulnerability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.vuln-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 4px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.vuln-box:hover {
  background: rgba(15, 23, 42, 0.8);
}

.vuln-icon {
  font-size: 1.2rem;
}

.vuln-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.vuln-status {
  font-size: 0.65rem;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 3px;
}

.vuln-status.secure {
  background: rgba(57, 255, 20, 0.1);
  color: var(--cyber-green);
  border: 1px solid var(--cyber-green-dim);
}

.vuln-status.warning {
  background: rgba(255, 215, 0, 0.1);
  color: var(--cyber-gold);
  border: 1px solid var(--cyber-gold-dim);
}

.vuln-status.critical {
  background: rgba(255, 46, 84, 0.1);
  color: var(--cyber-crimson);
  border: 1px solid var(--cyber-crimson-dim);
  animation: pulse-red-border 1.5s infinite;
}

/* Glowing Buttons & Form Controls */
.glow-button-primary {
  background: var(--cyber-cyan);
  color: var(--bg-darker);
  border: 1px solid var(--cyber-cyan);
  border-radius: 4px;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 0.95rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 15px var(--cyber-cyan-dim);
  text-transform: uppercase;
}

.glow-button-primary:hover {
  background: var(--bg-darker);
  color: var(--cyber-cyan);
  box-shadow: 0 0 20px var(--cyber-cyan);
}

.glow-button-secondary {
  background: var(--cyber-green);
  color: var(--bg-darker);
  border: 1px solid var(--cyber-green);
  border-radius: 4px;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 0 15px var(--cyber-green-dim);
}

.glow-button-secondary:hover:not(:disabled) {
  background: var(--bg-darker);
  color: var(--cyber-green);
  box-shadow: 0 0 20px var(--cyber-green);
}

.glow-button-secondary:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  box-shadow: none;
  background: #1e293b;
  border-color: #334155;
  color: #64748b;
}

/* Modal Overlay & Verdict Window */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-normal);
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  width: 90%;
  max-width: 650px;
  background: rgba(10, 15, 30, 0.95);
  border: 1px solid var(--cyber-cyan);
  border-radius: 8px;
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.25);
  padding: 30px;
  animation: scale-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.modal-badge-system {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.verdict-score-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.2fr;
  gap: 15px;
  margin-bottom: 20px;
}

.verdict-grade-card, .verdict-stat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.grade-label, .stat-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.grade-value {
  font-family: var(--font-mono);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--cyber-cyan);
  text-shadow: 0 0 10px var(--cyber-cyan-dim);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.verdict-summary-box {
  background: rgba(255, 46, 84, 0.04);
  border: 1px solid rgba(255, 46, 84, 0.2);
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.box-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#verdict-feedback-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-primary);
  font-style: italic;
}

.recommendations-box {
  background: rgba(0, 240, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.15);
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 25px;
}

.rec-list {
  font-size: 0.85rem;
  line-height: 1.5;
  padding-left: 20px;
  color: var(--text-primary);
}

.rec-list li {
  margin-bottom: 8px;
}

.rec-list li:last-child {
  margin-bottom: 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
}

/* Footer Styles */
.app-footer {
  background: rgba(5, 7, 10, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  z-index: 10;
  position: relative;
}

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

/* KEYFRAMES & MICRO-ANIMATIONS */
@keyframes pulse-green {
  0% { box-shadow: 0 0 4px var(--cyber-green-dim); }
  100% { box-shadow: 0 0 12px var(--cyber-green); }
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 4px var(--cyber-crimson-dim); }
  100% { box-shadow: 0 0 12px var(--cyber-crimson); }
}

@keyframes pulse-red-border {
  0% { border-color: rgba(255, 46, 84, 0.2); }
  50% { border-color: var(--cyber-crimson); }
  100% { border-color: rgba(255, 46, 84, 0.2); }
}

@keyframes flash-border {
  0% { border-color: rgba(255, 46, 84, 0.2); }
  50% { border-color: var(--cyber-crimson); }
  100% { border-color: rgba(255, 46, 84, 0.2); }
}

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

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.4);
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 1100px) {
  .app-container {
    grid-template-columns: 320px 1fr;
    grid-template-rows: auto auto;
  }
  
  .dashboard-panel {
    grid-column: 1 / 3;
    max-height: none;
    overflow-y: visible;
  }

  .setup-panel {
    max-height: none;
    overflow-y: visible;
  }

  .sim-panel {
    height: 600px;
  }
}

@media (max-width: 768px) {
  .app-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 10px;
    gap: 15px;
  }

  .dashboard-panel {
    grid-column: 1 / 2;
  }

  .app-header {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    align-items: flex-start;
  }

  .system-status {
    width: 100%;
    justify-content: space-between;
  }

  .audio-control-bar {
    position: relative;
    top: 0;
    right: 0;
    margin-top: 10px;
    align-self: flex-end;
  }
}
