:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1f2430;
  --border: #2a2f3a;
  --text: #e6e9ef;
  --muted: #9aa4b2;
  --accent: #5b8cff;
  --danger: #ff5b5b;
  --radius: 8px;
}

* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

/* ───── NAV ───── */
nav {
  height: 56px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

nav button {
  background: transparent;
  color: var(--muted);
  border: none;
  cursor: pointer;
}

nav button:hover {
  color: var(--danger);
}

/* ───── LAYOUT ───── */
.layout {
  display: flex;
  height: calc(100vh - 56px);
}

/* ───── SIDEBAR ───── */
aside {
  width: 220px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 12px;
}

aside button {
  width: 100%;
  background: transparent;
  color: var(--muted);
  border: none;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 4px;
  border-radius: var(--radius);
  cursor: pointer;
}

aside button:hover {
  background: var(--panel-2);
  color: var(--text);
}

/* ───── MAIN ───── */
main {
  flex: 1;
  padding: 20px;
  overflow: auto;
}

section {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
}

/* ───── FORMS ───── */
input,
textarea,
button {
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px;
  border-radius: var(--radius);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

button {
  cursor: pointer;
}

button:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ───── CARDS / LOGIN ───── */
.center {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.card {
  width: 320px;
  background: var(--panel);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

/* ───── MOBILE ───── */
@media (max-width: 768px) {
  aside {
    display: none;
  }
}
table {
  background: var(--panel-2);
  border: 1px solid var(--border);
}

th, td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  white-space: nowrap;
}

th {
  background: var(--panel);
  text-align: left;
}

tr:hover {
  background: #2a3142;
}
#logOutput div {
  line-height: 1.4;
  white-space: pre-wrap;
}
