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

:root {
  --bg-dark: #0a0e17;
  --bg-panel: #121a2a;
  --accent: #ff6b35;
  --accent-glow: rgba(255, 107, 53, 0.4);
  --text: #e8ecf4;
  --text-muted: #6b7a94;
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #ef4444;
}

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

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  overflow: hidden;
  min-height: 100vh;
}

#app {
  display: flex;
  height: 100vh;
}

/* Control Panel */
#control-panel {
  width: 320px;
  min-width: 320px;
  background: var(--bg-panel);
  padding: 1.5rem;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

#control-panel h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.control-section {
  margin-bottom: 1.5rem;
}

.hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.click-mode {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
}

.click-mode label {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.control-section h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.coord-input {
  margin-bottom: 0.5rem;
}

.coord-input label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.coord-input input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.coord-input input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.preset-targets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.preset-btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.preset-btn:hover {
  background: rgba(255, 107, 53, 0.2);
  border-color: var(--accent);
  color: var(--text);
}

select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: var(--accent);
}

.rocket-stats {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.btn-launch {
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #e55a2b);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-launch:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-launch:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Flight Data */
.flight-data {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.flight-data.hidden {
  display: none;
}

.flight-data h3 {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.data-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 0.25rem 0;
}

.data-row span:first-child {
  color: var(--text-muted);
}

.data-row span:last-child {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
}

/* Globe Container */
#globe-container {
  flex: 1;
  position: relative;
}

/* Phase Indicator */
#phase-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(18, 26, 42, 0.9);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.phase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.4;
}

.phase-dot.active {
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 0 8px var(--accent-glow);
}
