/* styles.css */
:root {
  --glow: #00ff41;
  --bg: #050505;
  --ui-blue: #00d4ff;
  --danger: #ff3300;
  --panel-bg: rgba(0, 255, 65, 0.1);
}

* { box-sizing: border-box; }

body {
  background: #000;
  color: var(--glow);
  font-family: 'Courier New', Courier, monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 0;
  user-select: none;
  overflow: hidden;
}

#os-header {
  width: 100%;
  border-bottom: 2px solid var(--glow);
  background: #111;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.header-top {
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tab-row {
  display: flex;
  gap: 2px;
  padding-left: 20px;
}

.tab {
  padding: 8px 20px;
  background: #222;
  cursor: pointer;
  border: 1px solid #333;
  border-bottom: none;
  color: #666;
  font-size: 0.9rem;
}

.tab.active {
  background: var(--bg);
  color: var(--glow);
  border-top: 2px solid var(--glow);
}

.view {
  display: none;
  width: 100%;
  max-width: 1300px;
  height: calc(100vh - 100px);
  padding: 20px;
  overflow-y: auto;
}

.view.active { display: flex; }

#extraction-view { gap: 20px; justify-content: center; }

#logistics-view {
  flex-direction: column;
  gap: 20px;
  background: #0a0a0a;
  border-left: 1px solid var(--ui-blue);
  border-right: 1px solid var(--ui-blue);
}

#game-canvas {
  border: 1px solid #333;
  background: #000;
  cursor: none;
  flex-shrink: 0;
}

.hud-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 80px;
}

.hud-gauge {
  width: 40px;
  height: 400px;
  background: #111;
  border: 1px solid #333;
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  overflow: hidden;
}

#throttle-fill {
  width: 100%;
  background: linear-gradient(to top, var(--glow), var(--ui-blue), var(--danger));
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  flex-grow: 1;
}

.log-panel {
  border: 1px solid var(--ui-blue);
  padding: 15px;
  background: rgba(0, 212, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.debt-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid #222;
}

.upgrade-card {
  border: 1px solid #333;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  gap: 12px;
}

.panel {
  padding: 15px;
  border: 1px solid var(--glow);
  background: var(--panel-bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.label {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
}

.value {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
}

#sale-report {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  border: 4px solid var(--ui-blue);
  padding: 30px;
  width: 400px;
  z-index: 100;
  text-align: center;
}

button {
  background: var(--glow);
  border: none;
  padding: 12px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
}

button:disabled {
  background: #333;
  color: #666;
  cursor: not-allowed;
}

.shop-btn {
  background: var(--ui-blue);
  color: #000;
  padding: 5px 10px;
  font-size: 0.8rem;
  width: 110px;
}

.audio-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.audio-row input[type="range"] { width: 100%; }

.mono {
  font-size: 0.8rem;
  color: #bbb;
}

.audio-select {
  width: 100%;
  margin-top: 6px;
  background: #111;
  color: #fff;
  border: 1px solid #333;
  padding: 6px;
  font-family: inherit;
}
