:root {
  --bg: #0f1220;
  --panel: #1a1f36;
  --panel-hover: #222867;
  --border: #2d3566;
  --text: #eaeaf0;
  --muted: #aab0d6;
  --accent: #6aa6ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem;
  background: linear-gradient(135deg, #0f1220, #141a3a);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* ───────── Navigation ───────── */
ul {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  padding: 0;
  margin-bottom: 1.5rem;
}

ul li a {
  text-decoration: none;
  color: var(--muted);
  background: var(--panel);
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}

ul li a:hover {
  background: var(--panel-hover);
  color: var(--accent);
}

/* ───────── Search ───────── */
#search {
  width: 100%;
  max-width: 480px;
  padding: 0.65rem 0.8rem;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 0.95rem;
}

#search::placeholder {
  color: var(--muted);
}

#search:focus {
  outline: none;
  border-color: var(--accent);
}

/* ───────── Table ───────── */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

/* Header */
#tableHeader th {
  text-align: left;
  padding: 0.85rem 0.75rem;
  background: #181d3a;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

/* Rows */
tr:not(#tableHeader) {
  transition: background 0.12s ease;
}

tr:not(#tableHeader):hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Cells */
td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Package names */
td a {
  color: var(--text);
  text-decoration: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  transition: color 0.15s ease;
}

td a:hover {
  color: var(--accent);
}

/* Metadata columns muted */
td:nth-child(2),
td:nth-child(3),
td:nth-child(4),
td:nth-child(5) {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ───────── Responsive ───────── */
@media (max-width: 900px) {
  body {
    padding: 1rem;
  }

  table {
    font-size: 0.85rem;
  }

  td,
  th {
    padding: 0.5rem;
  }
}
