:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --hover: #eef3ff;
  --header: #f5f5f5;
  --link: #1c3faa;
  --row-alt: #fafafa;
}

[data-theme="dark"] {
    --bg: #0e0e11;        /* near-black, neutral */
    --card: #16161a;      /* charcoal */
    --text: #e6e6eb;      /* soft white */
    --muted: #a1a1aa;     /* neutral gray */
    --border: #27272a;    /* subtle borders */
    --hover: #1f1f24;     /* row hover */
    --header: #16161a;    /* same as card */
    --link: #b3c7ff;      /* muted, not neon */
    --row-alt: #1a1a1f;   /* zebra rows */
}

#theme-toggle {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.container {
  background: var(--card);
  padding: 16px 20px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

#theme-toggle {
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 16px;
}

tbody tr:nth-child(even) {
  background: var(--row-alt);
}

tbody tr:hover {
  background: var(--hover);
}

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

h1 {
  margin-bottom: 0;
  font-size: 24px;
}

th, td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

thead th {
  background: var(--header);
}

a {
  text-decoration: none;
  color: var(--link);
}

#search {
  margin-bottom: 12px;
  padding: 6px;
  width: 300px;

  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
}

a:hover {
  text-decoration: underline;
}

td:first-child {
  white-space: nowrap;
  color: var(--muted);
}

td:nth-child(2) {
  font-weight: 500;
}

#search:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(76,110,245,0.15);
}

body {
  font-family: sans-serif; padding: 20px;
  background: var(--bg);
  color: var(--text);
}
