body {
  background: #0b0f17;
  color: #e6edf3;
  font-family: Arial, sans-serif;
  margin: 0;
}

.container {
  padding: 10px;
}

#statusBar {
  font-size: 12px;
  padding: 6px 12px;
  margin-bottom: 4px;
  border-radius: 4px;
  background: #1a2333;
  color: #aaa;
}

#nextRefresh {
  font-size: 11px;
  padding: 4px 12px;
  margin-bottom: 8px;
  border-radius: 4px;
  background: #121826;
  color: #5a7a9a;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #121826;
}

th {
  padding: 12px 8px;
  text-align: left;
  cursor: pointer;
  font-weight: bold;
  border-bottom: 1px solid #1f2a3a;
  white-space: nowrap;
}

th:hover { background: #1a2333; }

td {
  padding: 10px 8px;
  border-bottom: 1px solid #1f2a3a;
  white-space: nowrap;
}

tr:hover { background: #111827; }

.green  { color: #16c784; }
.red    { color: #ea3943; }
.muted  { color: #5a7a9a; }

/* symbol column */
td.symbol-cell {
  cursor: pointer;
  font-weight: 500;
}

a.tv-link {
  color: #e6edf3;
  text-decoration: none;
  display: block;
  width: 100%;
  cursor: pointer;
}

td.symbol-cell:hover a.tv-link,
a.tv-link:hover {
  color: #c8a64e;
  text-decoration: underline;
}

/* sort arrow indicator */
th.sort-asc::after  { content: " ▲"; font-size: 10px; }
th.sort-desc::after { content: " ▼"; font-size: 10px; }

/* ── Spinner overlay ── */
#loader {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 23, 0.6);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #1f2a3a;
  border-top-color: #16c784;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
