/* styles.css */

:root {
  --background-light: #ffffff;
  --text-light: #121212;
  --background-dark: #121212;
  --text-dark: #f0f0f0;
  --link-color-light: #1a0dab;
  --link-color-dark: #8ab4f8;
  --accent-color: #007BFF;
}

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 2rem;
  background-color: var(--background-light);
  color: var(--text-light);
  transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
  background-color: var(--background-dark);
  color: var(--text-dark);
}

h1, h2, h3 {
  color: inherit;
}

hr {
  border: 0;
  height: 1px;
  background: currentColor;
  margin: 1rem 0;
  opacity: 0.2;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

table th,
table td {
  padding: 0.5rem;
  border: 1px solid #ccc;
  text-align: left;
}

body.dark-mode table th,
body.dark-mode table td {
  border-color: #444;
}

a {
  color: var(--link-color-light);
  text-decoration: underline;
}

body.dark-mode a {
  color: var(--link-color-dark);
}

.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
}

button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #0056b3;
}
