:root {
  --color-bg: #f3f4f6;
  --color-card: #ffffff;
  --color-border: #d1d5db;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-accent: #1f2937;
  --color-hover: #374151;
  --radius: 8px;
  --transition: all 0.2s ease;
  --shadow: 0 4px 10px rgba(0,0,0,0.05);
}

body.dark {
  --color-bg: #111827;
  --color-card: #1f2937;
  --color-border: #374151;
  --color-text: #f9fafb;
  --color-muted: #9ca3af;
  --color-accent: #3b82f6;
  --color-hover: #60a5fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  color: var(--color-accent);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-accent);
  width: 100%;
  max-width: 900px;
}

h2 {
  margin-top: 2rem;
  color: var(--color-accent);
  font-size: 1.4rem;
  border-left: 4px solid var(--color-accent);
  padding-left: 0.75rem;
  margin-bottom: 0.8rem;
  width: 100%;
  max-width: 900px;
}

ul {
  list-style: none;
  width: 100%;
  max-width: 900px;
  background: var(--color-card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: background 0.3s, border 0.3s, box-shadow 0.3s;
}

li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

li:last-child {
  border-bottom: none;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

a:hover {
  color: var(--color-hover);
  text-decoration: underline;
}

li a:nth-child(2) {
  background: var(--color-accent);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: var(--transition);
}

li a:nth-child(2):hover {
  background: var(--color-hover);
  transform: translateY(-2px);
}

ul:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

footer {
  margin-top: 3rem;
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}
