@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Source+Code+Pro:wght@400;600;700&display=swap");

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

body {
  font-family: "Source Code Pro", "Courier New", monospace;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
  color: #d4d4d4;
  line-height: 1.4;
  min-height: 100vh;
  position: relative;
  overflow-x: auto;
}

/* Government agency document styling */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(50, 150, 50, 0.03) 2px,
    rgba(50, 150, 50, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 15px 10px;
  position: relative;
  z-index: 1;
}

/* Classified document header */
.container::before {
  content: "CLASSIFIED \\\\ DELTA GREEN OPERATIONS \\\\ EYES ONLY";
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  background: #800000;
  color: #ffffff;
  padding: 5px 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  border: 2px solid #ff0000;
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
  z-index: 1001;
  white-space: pre;
}

.container::after {
  content: "CONFIDENTIAL - LEVEL 4 CLEARANCE REQUIRED";
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #800000;
  color: #ffffff;
  padding: 3px 15px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid #ff0000;
  z-index: 1001;
}

h1 {
  text-align: center;
  color: #20ff20;
  margin: 40px 0 20px 0;
  font-size: 1.6rem;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 5px #20ff20, 0 0 10px #20ff20,
    0 0 15px rgba(32, 255, 32, 0.5);
  border: 2px solid #20ff20;
  padding: 15px;
  background: rgba(0, 20, 0, 0.8);
  position: relative;
}

h1::before {
  content: "OPERATION: CONVERGENCE SIGNAL";
  position: absolute;
  top: -8px;
  left: 20px;
  background: #0a0a0a;
  color: #20ff20;
  padding: 0 10px;
  font-size: 0.5rem;
  letter-spacing: 1px;
}

.controls-panel {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 50%, #1a1a1a 100%);
  padding: 20px;
  border: 2px solid #20ff20;
  border-radius: 0;
  box-shadow: inset 0 0 20px rgba(32, 255, 32, 0.1),
    0 0 20px rgba(32, 255, 32, 0.2);
  position: relative;
}

.controls-panel::before {
  content: "MONITORING STATION ALPHA-7";
  position: absolute;
  top: -10px;
  left: 15px;
  background: #0a0a0a;
  color: #20ff20;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  border: 1px solid #20ff20;
}

.coordinates {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.coord-display,
.distance-display,
.volume-display {
  text-align: left;
  min-width: 140px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid #20ff20;
  padding: 10px;
  position: relative;
}

.coord-display::before,
.distance-display::before,
.volume-display::before {
  content: "●";
  position: absolute;
  top: 5px;
  right: 5px;
  color: #20ff20;
  animation: blink 2s infinite;
}

.coord-display h3,
.distance-display h3,
.volume-display h3 {
  color: #ffff00;
  font-size: 0.7rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  border-bottom: 1px solid #ffff00;
  padding-bottom: 3px;
}

.coord-display p,
.distance-display p,
.volume-display p {
  font-size: 0.9rem;
  font-weight: 700;
  color: #20ff20;
  background: rgba(0, 20, 0, 0.5);
  padding: 8px 10px;
  border: 1px solid #20ff20;
  border-radius: 0;
  font-family: "JetBrains Mono", monospace;
  text-shadow: 0 0 5px #20ff20;
  margin-bottom: 5px;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.3;
  }
}

.audio-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 300px;
}

.audio-controls button {
  padding: 10px 15px;
  background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  color: #20ff20;
  border: 2px solid #20ff20;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: "Source Code Pro", monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s;
  position: relative;
  text-shadow: 0 0 5px #20ff20;
  box-shadow: inset 0 0 10px rgba(32, 255, 32, 0.1),
    0 0 5px rgba(32, 255, 32, 0.2);
}

.audio-controls button::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 1px;
  background: rgba(32, 255, 32, 0.3);
}

.audio-controls button:hover {
  background: linear-gradient(145deg, #20ff20, #15cc15);
  color: #000000;
  text-shadow: none;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(32, 255, 32, 0.5);
}

.audio-controls button:active {
  background: linear-gradient(145deg, #15cc15, #20ff20);
  transform: translateY(1px);
}

/* Special styling for critical buttons */
#play-pause-btn {
  border-color: #ffff00;
  color: #ffff00;
  text-shadow: 0 0 5px #ffff00;
}

#play-pause-btn:hover {
  background: linear-gradient(145deg, #ffff00, #cccc00);
  color: #000000;
}

#open-player-view {
  border-color: #ff6600;
  color: #ff6600;
  text-shadow: 0 0 5px #ff6600;
}

#open-player-view:hover {
  background: linear-gradient(145deg, #ff6600, #cc5500);
  color: #ffffff;
}

.map-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  background: linear-gradient(145deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  padding: 15px;
  border: 3px solid #20ff20;
  border-radius: 0;
  width: 100%;
  position: relative;
  box-shadow: inset 0 0 30px rgba(32, 255, 32, 0.1),
    0 0 20px rgba(32, 255, 32, 0.3);
}

.map-container::before {
  content: "TACTICAL OVERVIEW - SECTOR 7";
  position: absolute;
  top: -12px;
  left: 20px;
  background: #0a0a0a;
  color: #20ff20;
  padding: 3px 15px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  border: 1px solid #20ff20;
  text-transform: uppercase;
}

.map-container::after {
  content: "LIVE FEED";
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255, 0, 0, 0.8);
  color: #ffffff;
  padding: 2px 8px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  animation: blink 1.5s infinite;
}

#game-map {
  border: 2px solid #20ff20;
  border-radius: 0;
  cursor: crosshair;
  max-width: 100%;
  max-height: 600px;
  height: auto;
  display: block;
  box-shadow: 0 0 20px rgba(32, 255, 32, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.5);
  filter: contrast(1.1) brightness(0.9);
}

.legend {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.8);
  padding: 15px 25px;
  border: 2px solid #ffff00;
  border-radius: 0;
  position: relative;
  box-shadow: inset 0 0 15px rgba(255, 255, 0, 0.1),
    0 0 10px rgba(255, 255, 0, 0.2);
}

.legend::before {
  content: "TARGET IDENTIFICATION";
  position: absolute;
  top: -10px;
  left: 20px;
  background: #0a0a0a;
  color: #ffff00;
  padding: 2px 12px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 15px;
  border: 1px solid rgba(255, 255, 0, 0.3);
  background: rgba(255, 255, 0, 0.05);
  font-family: "Source Code Pro", monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffff00;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #000;
}

.broadcast-dot {
  background-color: #ff4444;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

.player-dot {
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.instructions {
  text-align: center;
  color: #aaa;
  font-style: italic;
  margin-top: 20px;
  margin-bottom: 60px;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 10px 5px;
  }

  .controls-panel {
    flex-direction: column;
    gap: 20px;
    padding: 15px 10px;
  }

  .coordinates {
    justify-content: center;
  }

  .legend {
    flex-direction: column;
    align-items: center;
  }

  h1 {
    font-size: 1.5rem;
  }

  .map-container {
    padding: 5px;
  }
}

/* Visual feedback for dragging */
.dragging {
  cursor: grabbing !important;
}

/* Hover effects for interactive elements */
.legend-item:hover .legend-dot {
  transform: scale(1.1);
  transition: transform 0.2s;
}

/* Loading state */
.loading {
  opacity: 0.5;
  pointer-events: none;
}
