/* Aiglemoor web client — full-height terminal with a slim status bar. */

:root {
  --bg: #0b0b10;
  --bar-bg: #14141c;
  --fg: #d6d6e0;
  --accent: #f2c14e;   /* the Sevenfold Sun */
  --ok: #5fd35f;
  --off: #d35f5f;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: ui-monospace, "Cascadia Code", "DejaVu Sans Mono", Menlo, Consolas, monospace;
}

body {
  display: flex;
  flex-direction: column;
}

#bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.8rem;
  background: var(--bar-bg);
  border-bottom: 1px solid #000;
  user-select: none;
}

#title {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}

#status {
  font-size: 0.8rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.status--on  { color: var(--ok); }
.status--off { color: var(--off); }

#reconnect {
  margin-left: auto;
  font: inherit;
  font-size: 0.8rem;
  color: var(--bg);
  background: var(--accent);
  border: 0;
  border-radius: 4px;
  padding: 0.2rem 0.7rem;
  cursor: pointer;
}

/* Terminal fills the rest of the viewport. xterm paints inside. */
#terminal {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.4rem 0.6rem;
}

.xterm, .xterm-viewport { height: 100%; }
.xterm-viewport::-webkit-scrollbar { width: 10px; }
.xterm-viewport::-webkit-scrollbar-thumb { background: #2a2a38; border-radius: 6px; }
