/* css/main.css - Main Game Styles with Cyberpunk UI */

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

body {
  font-family: 'Arial', sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  overflow: hidden;
  position: relative;
  cursor: none;
  /* For neon avatar */
}

/* Game Container - Three Column Layout */
#gameContainer {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  background: #000000;
}

/* Left Panel */
#leftPanel {
  width: 220px;
  background: rgba(0, 0, 0, 0.8);
  border-right: 2px solid #444;
  padding: 15px;
  overflow-y: auto;
  z-index: 100;
}

/* Game Area */
#gameArea {
  flex: 1;
  position: relative;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
}

/* Right Panel */
#rightPanel {
  width: 300px;
  background: rgba(0, 0, 0, 0.8);
  border-left: 2px solid #444;
  padding: 15px;
  overflow-y: auto;
  z-index: 100;
}

/* Game Canvas */
#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #87CEEB 0%, #98FB98 20%, #666 50%, #333 100%);
}

/* Panel Sections */
.panel-section {
  margin-bottom: 20px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.panel-title {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #ffaa00;
  text-transform: uppercase;
}

/* Account Balance */
.account-balance {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #000;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 15px;
  border: 2px solid #FF8C00;
}

/* Currency Options */
.currency-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px;
  margin: 2px 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 11px;
}

.buy-currency-btn {
  background: #44ff44;
  color: #000;
  border: none;
  padding: 3px 8px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 10px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.buy-currency-btn:hover {
  background: #66ff66;
  transform: scale(1.05);
}

/* Map Section */
.map-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 8px 0;
}

.map-block {
  aspect-ratio: 1;
  border: 2px solid #666;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.map-block.unlocked {
  background: #44ff44;
  color: #000;
  border-color: #22aa22;
}

.map-block.current {
  background: #ffaa00;
  color: #000;
  border-color: #ff8800;
  animation: pulse 2s infinite;
}

.map-block.locked {
  background: #333;
  border-color: #666;
}

/* Shop Items */
.shop-item {
  margin: 8px 0;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid #666;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shop-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffaa00;
  transform: translateX(2px);
}

.shop-item.affordable {
  border-color: #44ff44;
}

.shop-item.expensive {
  border-color: #ff4444;
  opacity: 0.6;
}

/* Bonus Items */
.bonus-item {
  margin: 4px 0;
  padding: 6px;
  background: rgba(255, 215, 0, 0.2);
  border-radius: 4px;
  border: 1px solid #ffaa00;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bonus-item:hover {
  background: rgba(255, 215, 0, 0.3);
  transform: scale(1.02);
}

.bonus-count {
  background: #ffaa00;
  color: #000;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 10px;
}

/* Leaderboard */
.leaderboard-entry {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-entry:last-child {
  border-bottom: none;
}

/* Billboard Stats */
.billboard-stat {
  display: flex;
  justify-content: space-between;
  margin: 5px 0;
  font-size: 14px;
}

.billboard-stat-label {
  color: #888888;
}

.billboard-stat-value {
  color: #00ffff;
  font-weight: bold;
}

/* Avatar Control */
.avatar-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.avatar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.avatar-status {
  width: 40px;
  height: 20px;
  background: #333333;
  border-radius: 10px;
  position: relative;
  transition: background 0.3s ease;
}

.avatar-status::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
}

.avatar-status.on {
  background: #00ff00;
}

.avatar-status.on::after {
  transform: translateX(20px);
}

/* Game Status */
#status {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  color: #00ffff;
  text-shadow: 0 0 10px #00ffff;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 20px;
  border: 2px solid #00ffff;
  z-index: 200;
}

/* Score Display */
#scoreDisplay {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: #ffff00;
  text-shadow: 0 0 15px #ffff00;
  font-weight: bold;
  z-index: 200;
}

/* Lives Display */
#livesDisplay {
  position: absolute;
  top: 60px;
  right: 20px;
  font-size: 24px;
  z-index: 200;
}

.life-heart {
  margin: 0 2px;
  text-shadow: 0 0 10px #ff0000;
  animation: heartbeat 1.5s ease-in-out infinite;
}

/* Combo Display */
#comboDisplay {
  position: absolute;
  top: 100px;
  right: 20px;
  font-size: 28px;
  color: #ff00ff;
  text-shadow: 0 0 20px #ff00ff;
  font-weight: bold;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  z-index: 200;
}

#comboDisplay.active {
  opacity: 1;
  transform: scale(1);
}

/* Power Indicator */
#powerIndicator {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #ffff00;
  border-radius: 10px;
  overflow: hidden;
  z-index: 200;
}

#powerBar {
  height: 100%;
  background: linear-gradient(90deg, #ffff00, #ff8800);
  width: 0%;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px #ffff00;
}

/* Controls Panel */
#controlsPanel {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 200;
}

.control-hint {
  font-size: 14px;
  color: #888888;
}

.control-key {
  color: #00ffff;
  font-weight: bold;
  padding: 2px 6px;
  background: rgba(0, 255, 255, 0.2);
  border-radius: 3px;
  margin: 0 2px;
}

/* Debug Info */
#debugInfo {
  position: absolute;
  top: 150px;
  left: 20px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #00ff00;
  border-radius: 5px;
  padding: 10px;
  font-family: monospace;
  font-size: 12px;
  color: #00ff00;
  display: none;
  z-index: 300;
}

#debugInfo.active {
  display: block;
}

/* Floating Messages */
.floating-message {
  position: absolute;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  animation: float-up 2s ease-out forwards;
  z-index: 7000;
}

/* Animations */
@keyframes pulse {

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

  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.1);
  }

  50% {
    transform: scale(1);
  }

  75% {
    transform: scale(0.9);
  }
}

@keyframes float-up {
  0% {
    transform: translateY(0) scale(0.5);
    opacity: 0;
  }

  20% {
    transform: translateY(-10px) scale(1.2);
    opacity: 1;
  }

  100% {
    transform: translateY(-60px) scale(1);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {

  #leftPanel,
  #rightPanel {
    width: 180px;
    font-size: 11px;
  }
}

@media (max-width: 768px) {

  #leftPanel,
  #rightPanel {
    width: 160px;
    font-size: 10px;
    padding: 10px;
  }
}

@media (max-width: 480px) {

  #leftPanel,
  #rightPanel {
    width: 140px;
    font-size: 9px;
    padding: 8px;
  }
}

/* Bank Items */
#bankItems {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

.bank-item {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #00ffff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bank-item:hover {
  transform: scale(1.1);
  background: rgba(0, 255, 255, 0.2);
}

.bank-item.activated {
  animation: bank-activate 0.5s ease;
}

.bank-item-emoji {
  font-size: 24px;
}

.bank-item-bonus {
  font-size: 12px;
  color: #00ff00;
  margin-top: 5px;
}

@keyframes bank-activate {
  0% {
    transform: scale(1) rotate(0deg);
  }

  50% {
    transform: scale(1.3) rotate(180deg);
  }

  100% {
    transform: scale(1) rotate(360deg);
  }
}

/* css/main.css - Fixed layering and positioning */

/* Reset and Base */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #000;
  font-family: 'Orbitron', monospace;
  color: #fff;
}

/* Game Container - Critical for proper layering */
#gameContainer {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Canvas - Base rendering layer */
#gameCanvas {
  position: relative;
  /* Changed from absolute to work better with flex */
  z-index: 1;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}

/* City Background Layers - Behind canvas */
.city-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Behind canvas */
  pointer-events: none;
}

#skyLayer {
  background: linear-gradient(180deg, #1a1a2e 0%, #2d4059 50%, #4a5568 100%);
}

/* Status Messages - Above canvas but below UI panels */
.game-status {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px 30px;
  border-radius: 25px;
  border: 2px solid #00ffff;
  color: #00ffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 0 10px #00ffff;
  pointer-events: none;
  white-space: nowrap;
}

/* Score Display - Fixed position */
.score-display {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 51;
  font-size: 36px;
  font-weight: bold;
  color: #ffff00;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(255, 255, 0, 0.5);
  pointer-events: none;
}

/* Lives Display */
.lives-display {
  position: absolute;
  top: 70px;
  right: 20px;
  z-index: 51;
  font-size: 28px;
  pointer-events: none;
}

/* Loading Screen - Highest z-index */
#loadingScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.loading-text {
  font-size: 48px;
  color: #00ffff;
  text-shadow: 0 0 20px #00ffff;
  margin-bottom: 30px;
  animation: pulse 2s infinite;
}

.loading-bar {
  width: 300px;
  height: 20px;
  background: rgba(0, 255, 255, 0.2);
  border: 2px solid #00ffff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  width: 0%;
  transition: width 0.3s ease;
}

/* Pause Overlay */
#pauseOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  /* Hidden by default */
  justify-content: center;
  align-items: center;
}

.pause-menu {
  background: rgba(0, 0, 0, 0.9);
  border: 3px solid #00ffff;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 0 50px #00ffff;
}

/* Game Over Overlay */
#gameOverOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1001;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
}

/* Animations */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes neonFlicker {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .game-status {
    font-size: 14px;
    padding: 8px 20px;
  }

  .score-display {
    font-size: 24px;
  }

  .lives-display {
    font-size: 20px;
  }
}

/* css/main.css - Main Game Styles with Three-Column Layout */

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

body {
  font-family: 'Orbitron', 'Arial', sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  overflow: hidden;
  position: relative;
  cursor: none;
  /* For neon avatar */
  user-select: none;
  -webkit-user-select: none;
}

/* Main Game Container - Three Column Layout */
#gameContainer {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  background: #000000;
}

/* Left Panel */
#leftPanel {
  width: 250px;
  background: rgba(0, 0, 0, 0.85);
  border-right: 2px solid #00ffff;
  padding: 15px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Game Area */
#gameArea {
  flex: 1;
  position: relative;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  min-width: 800px;
}

/* Right Panel */
#rightPanel {
  width: 300px;
  background: rgba(0, 0, 0, 0.85);
  border-left: 2px solid #00ffff;
  padding: 15px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Cyberpunk Panel Glow Effect */
#leftPanel,
#rightPanel {
  box-shadow:
    inset 0 0 20px rgba(0, 255, 255, 0.1),
    inset 0 0 40px rgba(0, 255, 255, 0.05);
}

/* Game Canvas */
#gameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;

}

/* City Background Layers */
.city-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
}

#skyLayer {
  background: linear-gradient(180deg, #1a1a2e 0%, #2d4059 50%, #4a5568 100%);
  z-index: 1;
  opacity: 1;
}

#cityLayer {
  z-index: 2;
  opacity: 1;
}

#roadLayer {
  z-index: 3;
  opacity: 1;
}

/* Game Status Messages */
.game-status {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  background: rgba(0, 0, 0, 0.9);
  padding: 12px 30px;
  border-radius: 25px;
  border: 2px solid #00ffff;
  color: #00ffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 0 10px #00ffff;
  pointer-events: none;
  white-space: nowrap;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {

  0%,
  100% {
    opacity: 0.9;
  }

  50% {
    opacity: 1;
  }
}

/* Score Display */
.score-display {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 51;
  font-size: 36px;
  font-weight: 900;
  color: #ffff00;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(255, 255, 0, 0.5);
  pointer-events: none;
  letter-spacing: 2px;
}

/* Lives Display */
.lives-display {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 51;
  font-size: 28px;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.5));
}

/* Combo Display */
.combo-display {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 52;
  text-align: center;
  pointer-events: none;
  animation: comboShake 0.5s ease-in-out;
}

.combo-text {
  font-size: 18px;
  color: #ff0080;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 10px #ff0080;
}

.combo-number {
  font-size: 48px;
  font-weight: 900;
  color: #ffff00;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.8),
    0 0 30px rgba(255, 255, 0, 0.8);
  margin-top: -10px;
}

@keyframes comboShake {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.1) rotate(-5deg);
  }

  75% {
    transform: scale(1.1) rotate(5deg);
  }
}

/* Power Indicator */
.power-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 20px;
  background: rgba(0, 0, 0, 0.8);
  border: 2px solid #ffff00;
  border-radius: 10px;
  overflow: hidden;
  z-index: 53;
}

.power-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00);
  width: 0%;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px currentColor;
}

/* Control Hints */
.control-hints {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 54;
  opacity: 0.7;
  pointer-events: none;
}

.control-hint {
  font-size: 12px;
  color: #ffffff;
  margin: 5px 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.control-hint .key {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  padding: 2px 8px;
  margin-right: 5px;
  font-weight: bold;
}

/* Loading Screen */
#loadingScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.loading-text {
  font-size: 48px;
  color: #00ffff;
  text-shadow: 0 0 20px #00ffff;
  margin-bottom: 30px;
  animation: pulse 2s infinite;
  letter-spacing: 4px;
  font-weight: 900;
}

.loading-bar {
  width: 400px;
  height: 20px;
  background: rgba(0, 255, 255, 0.2);
  border: 2px solid #00ffff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #00ffff, #ff00ff);
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 20px currentColor;
}

#loadingStatus {
  color: #00ffff;
  font-size: 16px;
  text-align: center;
  opacity: 0.8;
}

/* Overlays */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.pause-menu,
.game-over-menu {
  background: rgba(0, 0, 0, 0.95);
  border: 3px solid #00ffff;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 0 50px #00ffff;
}

.pause-menu h2,
.game-over-menu h2 {
  color: #00ffff;
  font-size: 36px;
  margin-bottom: 30px;
  text-shadow: 0 0 20px #00ffff;
  letter-spacing: 3px;
}

.menu-btn {
  display: block;
  width: 200px;
  margin: 15px auto;
  padding: 12px 24px;
  background: linear-gradient(135deg, #00ffff, #0080ff);
  border: none;
  border-radius: 25px;
  color: #000;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.menu-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 255, 255, 0.5);
}

.final-score {
  font-size: 24px;
  color: #ffff00;
  margin-bottom: 30px;
  text-shadow: 0 0 10px #ffff00;
}

/* Neon Avatar Cursor */
.neon-avatar {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.1s ease-out;
}

.avatar-core {
  font-size: 24px;
  filter: drop-shadow(0 0 10px #00ffff) drop-shadow(0 0 20px #ff00ff);
  animation: avatarFloat 2s ease-in-out infinite;
}

@keyframes avatarFloat {

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

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

.avatar-trail {
  position: absolute;
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.4), transparent);
  border-radius: 50%;
  filter: blur(8px);
  animation: trailPulse 1s ease-in-out infinite;
}

@keyframes trailPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.5);
    opacity: 0.2;
  }
}

/* Scrollbar Styling */
#leftPanel::-webkit-scrollbar,
#rightPanel::-webkit-scrollbar {
  width: 8px;
}

#leftPanel::-webkit-scrollbar-track,
#rightPanel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

#leftPanel::-webkit-scrollbar-thumb,
#rightPanel::-webkit-scrollbar-thumb {
  background: #00ffff;
  border-radius: 4px;
}

#leftPanel::-webkit-scrollbar-thumb:hover,
#rightPanel::-webkit-scrollbar-thumb:hover {
  background: #00cccc;
}

/* Responsive Design */
@media (max-width: 1400px) {
  #leftPanel {
    width: 200px;
  }

  #rightPanel {
    width: 250px;
  }
}

@media (max-width: 1200px) {

  #leftPanel,
  #rightPanel {
    position: absolute;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  #rightPanel {
    transform: translateX(100%);
    right: 0;
    left: auto;
  }

  #leftPanel.active {
    transform: translateX(0);
  }

  #rightPanel.active {
    transform: translateX(0);
  }

  /* Add toggle buttons for mobile */
  .panel-toggle {
    position: absolute;
    top: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 101;
  }

  .left-toggle {
    left: 20px;
  }

  .right-toggle {
    right: 20px;
  }
}

/* Animations */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes neonFlicker {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

@media (max-width: 1200px) {

  #leftPanel,
  #rightPanel {
    position: absolute;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  #leftPanel.active {
    transform: translateX(0);
  }

  #rightPanel.active {
    transform: translateX(0);
  }
}