/* === CSS reset & basisinstellingen === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(to bottom, #e0f0ff, #f5faff);
  line-height: 1.5;
}

/* Algemene opmaak */
body {
  font-family: "Segoe UI", sans-serif;
  background: linear-gradient(to bottom, #e0f0ff, #f5faff);
  margin: 0;
  padding: 0;
}

.wrapper {
  display: flex;
  flex-direction: row;
}

/* Zijbalk links */
.sidebar {
  width: 300px;
  padding: 20px;
  background-color: #ffffff;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.05);
<div class="form-block">
  <label for="studentName">Leerlingnaam:</label>
  <input type="text" id="studentName" class="sidebar-input" placeholder="Bijv. Jan Jansen" />
</div>
}

.card {
  background: #ffffff;
  border-radius: 10px;
  padding: 1em;
  margin-bottom: 1.5em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

label {
  font-weight: bold;
  display: block;
  margin-top: 1em;
  color: #333;
}

input,
select {
  width: 100%;
  padding: 0.6em;
  margin-top: 0.3em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
}

input:focus,
select:focus,
button:focus {
  outline: 2px solid #3366cc;
  outline-offset: 2px;
}

/* Knoppen */
button {
  display: block;
  width: 100%;
  padding: 0.6em;
  margin-top: 0.7em;
  background-color: #3366cc;
  color: #fff;
  border: 1px solid #ccc;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #274b9f;
}

button.export {
  background-color: #4caf50;
}

button.export:hover {
  background-color: #388e3c;
}

/* Hoofdsectie */
.main {
  flex: 1;
  padding: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.center-card {
  width: 100%;
  max-width: 600px;
}

h1 {
  color: #3366cc;
  text-align: center;
  margin-bottom: 1em;
}

.module-intro {
  margin-bottom: 1em;
  font-style: italic;
  color: #555;
}

.question {
  font-weight: bold;
  margin-bottom: 1em;
  font-size: 1.1em;
}

/* Feedback en uitleg */
.feedback,
.explanation,
.correctAnswer {
  margin-top: 1em;
  font-size: 1em;
  padding: 0.6em;
  border-radius: 6px;
}

.feedback {
  background-color: #e6f0ff;
  color: #003366;
}

.explanation {
  background-color: #f0f8ff;
  color: #333;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.explanation.show {
  opacity: 1;
}

.correctAnswer {
  background-color: #fff8e1;
  color: #5d4037;
}

/* Voortgangstabel */
#progressTable {
  margin-top: 2em;
  width: 100%;
  border-collapse: collapse;
}

#progressTable th,
#progressTable td {
  border: 1px solid #ccc;
  padding: 0.6em;
  text-align: left;
}

#progressTable th {
  background-color: #f0f0f0;
}

/* Responsiviteit */
@media (max-width: 768px) {
  .wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    box-shadow: none;
  }

  .main {
    padding: 1em;
  }

  .center-card {
    max-width: 100%;
  }
}

/* Verberg standaard */
.feedback,
.explanation,
.correctAnswer,
#progressTable {
  display: none;
}
/* === Naamveld en modusveld gelijke breedte === */
.wide-input {
  width: 100%;
  max-width: 280px;
  box-sizing: border-box;
}

/* === Antwoordveld en controleknop naast elkaar === */
.input-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.input-row input,
.input-row button {
  flex: 1;
  min-width: 160px;
  max-width: 280px;
}

/* === Zijbalkknoppen mooi onder elkaar === */
.sidebar button {
  display: block;
  width: 100%;
  margin-bottom: 12px;
}

.sidebar button + button {
  margin-top: 8px;
}
.sidebar-input {
  display: block;
  width: 100%;
  padding: 0.6em;
  margin-top: 0.7em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
}

