:root {
  color-scheme: dark;
  --bg-color: #121212;
  --text-color: #e0e0e0;
  --input-bg: #1f1f1f;
  --border-color: #444;
  --code-bg: #1a1a1a;
  --accent-color: #7aa6da;
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-family);
  max-width: 720px;
  margin: 3rem auto;
  padding: 2rem;
}

h1 {
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

p.description {
  margin-top: 0;
  color: #aaa;
  font-size: 1rem;
  margin-bottom: 1rem;
}

input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-color);
  font-size: 1rem;
  outline-offset: 2px;
  transition: border-color 0.3s ease;
}
input:focus {
  border-color: var(--accent-color);
}

.code-label {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #777;
  font-family: monospace;
  margin-left: 0.25rem;
  user-select: none;
  opacity: 0.7;
}

pre {
  background: var(--code-bg);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-top: 0.2rem;
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  color: var(--text-color);
  font-family: "Courier New", Courier, monospace;
  box-shadow: inset 0 0 10px #0008;
}

.examples {
  margin-top: 3rem;
  color: #bbb;
  border: 1px solid #333;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  background: #171717;
}

.examples strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--accent-color);
}

table.examples-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: #ddd;
}

table.examples-table th,
table.examples-table td {
  border: 1px solid #444;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

table.examples-table th {
  background-color: #222;
  color: var(--accent-color);
  font-weight: 600;
}

table.examples-table tbody tr:hover {
  background-color: #2c2c2c;
}

.footer {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #888;
}

.footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
}

.footer a:hover {
  text-decoration: underline;
}
