@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');

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

body {
  font-family: 'Courier Prime', 'Courier New', monospace;
  background: #000;
  color: #00FFFF;
  overflow: hidden;
  height: 100vh;
}

.app-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000;
  position: relative;
}

/* Scanline effect */
.app-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 255, 255, 0.03) 0px,
    rgba(0, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 1000;
  animation: scanline 8s linear infinite;
}

@keyframes scanline {
  0% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* CRT glow effect */
.app-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, 
    rgba(0, 255, 255, 0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 999;
  animation: flicker 3s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.95; }
}

.header {
  padding: 20px;
  border-bottom: 2px solid #00FFFF;
  background: rgba(0, 0, 0, 0.9);
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.header-title {
  font-size: 24px;
  font-weight: bold;
  color: #00FFFF;
  text-shadow: 0 0 10px #00FFFF, 0 0 20px #00FFFF;
  letter-spacing: 3px;
}

.header-time {
  font-size: 14px;
  color: #00FF00;
  margin-top: 5px;
  text-shadow: 0 0 5px #00FF00;
}

.main-content {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.left-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 2px solid #00FFFF;
  background: rgba(0, 0, 0, 0.95);
}

.right-panel {
  width: 850px;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.95);
}

.terminal-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
}

.terminal-output {
  flex: 1;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.6;
  padding-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: #00FFFF #000;
}

.terminal-output::-webkit-scrollbar {
  width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
  background: #000;
}

.terminal-output::-webkit-scrollbar-thumb {
  background: #00FFFF;
  box-shadow: 0 0 5px #00FFFF;
}

.terminal-line {
  margin: 2px 0;
  text-shadow: 0 0 5px currentColor;
  word-wrap: break-word;
}

.terminal-input-form {
  display: flex;
  align-items: center;
  border-top: 1px solid #00FFFF;
  padding-top: 10px;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #00FFFF;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  text-shadow: 0 0 5px #00FFFF;
}

.cursor {
  color: #00FFFF;
  text-shadow: 0 0 10px #00FFFF;
  transition: opacity 0.1s;
}

.status-panel {
  padding: 20px;
  border-bottom: 2px solid #00FFFF;
  background: rgba(0, 0, 0, 0.9);
}

.status-item {
  margin: 10px 0;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  text-shadow: 0 0 5px currentColor;
}

.map-container {
  flex: 1;
  padding: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tactical-map {
  border: 2px solid #00FFFF;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  cursor: crosshair;
  max-width: 100%;
  height: auto;
}

.base-info {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #00FFFF;
  padding: 10px 15px;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.footer {
  padding: 15px;
  border-top: 2px solid #00FFFF;
  background: rgba(0, 0, 0, 0.9);
  text-align: center;
  font-size: 11px;
  color: #00FF00;
  text-shadow: 0 0 5px #00FF00;
}

.footer-link {
  color: #00FFFF;
  text-decoration: none;
  text-shadow: 0 0 5px #00FFFF;
}

.footer-link:hover {
  color: #FF8800;
  text-shadow: 0 0 10px #FF8800;
}

/* Responsive */
@media (max-width: 1200px) {
  .main-content {
    flex-direction: column;
  }
  
  .left-panel {
    border-right: none;
    border-bottom: 2px solid #00FFFF;
    height: 50%;
  }
  
  .right-panel {
    width: 100%;
    height: 50%;
  }
  
  .tactical-map {
    max-height: 300px;
  }
}

@media (max-width: 768px) {
  .header-title {
    font-size: 16px;
    letter-spacing: 1px;
  }
  
  .header-time {
    font-size: 11px;
  }
  
  .terminal-output,
  .terminal-input,
  .status-item {
    font-size: 12px;
  }
  
  .footer {
    font-size: 9px;
  }
}

/* Text glow effects */
.text-cyan-400 {
  text-shadow: 0 0 5px #00FFFF;
}

.text-green-400 {
  text-shadow: 0 0 5px #00FF00;
}

.text-red-500 {
  text-shadow: 0 0 5px #FF0000;
}

.text-yellow-500 {
  text-shadow: 0 0 5px #FFFF00;
}