:root {
  --background-color: #ffffff;
  --text-color: #333333;
  --primary-color: #630efd;
  --accent-color: #d7ede7;
}

html.dark {
  --background-color: #121212;
  --text-color: #eeeeee;
  --accent-color: #2c2c2c;
}

/* Algemene opmaak */
body {
  font-family: 'Euclid Circular B', 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
}

/* Header */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header img {
  height: 40px;
  margin-right: 1rem;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  color: white;
  margin-left: 1rem;
  text-decoration: none;
  font-weight: bold;
}

/* Main */
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

/* Knoppen */
button,
input[type="submit"],
.button-link {
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1.1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
}

button:hover,
.button-link:hover {
  background-color: #4d0cc4;
}

/* Forms */
label {
  display: block;
  margin-top: 1rem;
}

textarea,
input[type="text"],
input[type="file"],
input[type="number"] {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.2rem;
  box-sizing: border-box;
}

/* Lijsten */
ul {
  list-style: none;
  padding: 0;
}

ul li {
  padding: 0.5rem 0;
}

/* Leerlinglijst & acties */
li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  border-bottom: 1px solid #eee;
}

li a {
  flex-grow: 1;
  text-decoration: none;
  color: inherit;
}

li button {
  margin-left: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

li button:hover {
  opacity: 1;
}

/* Archief acties */
.archief-acties {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.archief-acties img {
  width: 22px;
  height: 22px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.archief-acties img:hover {
  opacity: 1;
}

/* Minimale dark mode */
body.dark {
  background-color: #2f2e2f;
  color: #e0e0e0;
}

body.dark main {
  background-color: #2f2e2f;
}