/* Minimal styling for the hub UI. Vanilla, no framework / CDN (mirrors
   substation-sim's lightweight approach). */

:root {
  --bg: #0f1115;
  --panel: #171a21;
  --line: #2a2f3a;
  --text: #e6e8ec;
  --muted: #9aa3b0;
  --accent: #3da9fc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand { font-weight: 600; }
.version { margin-left: auto; color: var(--muted); font-size: 0.85rem; }

.tabs { display: flex; gap: 0.25rem; }
.tab {
  color: var(--text);
  text-decoration: none;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
}
.tab.active { background: var(--accent); color: #04121f; font-weight: 600; }
.tab.disabled { color: var(--muted); pointer-events: none; opacity: 0.5; }

.content { padding: 1.25rem; }

.panel-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.panel-head h1 { font-size: 1.3rem; margin: 0 0 0.75rem 0; }
.fleet-count { color: var(--muted); }

.fleet-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
}
.fleet-table th,
.fleet-table td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.fleet-table th { color: var(--muted); font-weight: 600; }

.empty-state {
  color: var(--muted);
  margin-top: 1rem;
  font-style: italic;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin: 0.75rem 0 1rem 0;
  padding: 0.6rem 0.8rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.controls input {
  width: 5rem;
  margin-left: 0.4rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.25rem 0.4rem;
}
.actions-label { color: var(--muted); margin-right: 0.4rem; }

button {
  background: var(--accent);
  color: #04121f;
  border: none;
  border-radius: 5px;
  padding: 0.3rem 0.7rem;
  font-weight: 600;
  cursor: pointer;
}
button:hover { filter: brightness(1.1); }
.row-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 500;
  margin-right: 0.25rem;
  padding: 0.15rem 0.5rem;
}
.fleet-actions { display: flex; align-items: center; gap: 0.4rem; }

/* Launch builder: align the labeled selects in a row. */
.launch-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.6rem; }
.launch-form label { display: flex; flex-direction: column; font-size: 0.8rem; gap: 0.2rem; }
.launch-form select, .launch-form input { padding: 0.25rem 0.4rem; }
.hint { font-size: 0.8rem; color: var(--muted, #8aa); margin: 0.2rem 0 0.6rem; }
.scheduled-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.scheduled-list li { font-size: 0.85rem; }
