/* Orbit Guard - Dark theme with purple accent */
:root {
  --bg: #0b0b12;
  --panel: #12121b;
  --muted: #9aa0a6;
  --text: #e6e6f0;
  --accent: #7a3cff;
  --accent-2: #a679ff;
  --danger: #ff4d6d;
  --ok: #32d296;
  --border: rgba(255,255,255,0.08);
  --shadow: 0 6px 20px rgba(0,0,0,.45);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 30% -10%, #1a1230 0%, #0b0b12 60%);
}

.app-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(122,60,255,0.08), transparent);
}
.brand { display:flex; align-items:center; gap: 12px; }
.logo { width: 32px; height: 32px; }
.title { margin:0; font-size: 1.2rem; letter-spacing: .5px; }
.motd { margin: 0; color: var(--muted); font-size: .95rem; }

.layout { display: grid; grid-template-columns: 1fr 360px; gap: 18px; padding: 18px; max-width: 1200px; margin: 0 auto; }
.game-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; position: relative; box-shadow: var(--shadow); display:flex; align-items:center; justify-content:center; padding: 12px; }
.hud { position: absolute; left: 0; right: 0; top: 0; padding: 10px 12px; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent); font-size: .95rem; }
.hud-row { display:flex; gap: 16px; justify-content: center; }
.mobile-controls { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 10px; }

.sidebar { display:flex; flex-direction: column; gap: 16px; }
.config, .panel { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px; box-shadow: var(--shadow); }
.panel.small { padding: 10px; }

label { display:block; margin: 8px 0 6px; font-size: .95rem; color: var(--muted); }
input, select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: #0f0f16; color: var(--text); outline: none; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(122,60,255,0.25); }

.toggles { display:flex; gap: 18px; margin-top: 8px; }
.toggles input { width: auto; }

.btn { appearance: none; border: 1px solid var(--border); background: #11111a; color: var(--text); padding: 10px 14px; border-radius: 10px; cursor: pointer; transition: all .15s ease; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.btn:hover { transform: translateY(-1px); border-color: rgba(122,60,255,0.5); }
.btn.primary { background: linear-gradient(180deg, var(--accent), #5a2ee6); border: none; }
.btn.primary:hover { filter: brightness(1.05); }

.status { margin-top: 8px; min-height: 24px; color: var(--muted); font-size: .95rem; }
.status.ok { color: var(--ok); }
.status.error { color: var(--danger); }

.tabs { display:flex; gap: 8px; margin-bottom: 10px; }
.tab { padding: 8px 10px; border-radius: 8px; background: #0f0f16; border: 1px solid var(--border); color: var(--muted); cursor: pointer; }
.tab.active { background: rgba(122,60,255,0.15); color: var(--text); border-color: rgba(122,60,255,0.4); }

.lb, .recent { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; max-height: 240px; overflow: auto; }
.lb li, .recent li { padding: 6px 8px; background: #0f0f16; border: 1px solid var(--border); border-radius: 8px; }

.export-links { display:flex; gap: 8px; }
.note { color: var(--muted); font-size: .9rem; }

.footer { padding: 20px; text-align: center; color: var(--muted); }

/* Responsive */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .game-panel { order: 1; }
  .sidebar { order: 2; }
}
