/* 🔄 Reset en basis */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  height: 100vh;
  background-color: #f5f5f5;
}

/* 📐 Pagina-indeling: zijbalk + content */
#page-layout {
  display: flex;
  height: 100vh;
}

/* 🧭 Zijbalk links */
#sidebar {
  width: 250px;
  background-color: #2c3e50; /* donkerblauw */
  color: white;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.sidebar-section {
  margin-bottom: 30px;
}

.sidebar-section h2 {
  margin-bottom: 10px;
  font-size: 18px;
}

.sidebar-section select,
.sidebar-section button {
  width: 100%;
  padding: 8px;
  margin-top: 10px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
}

button {
  background-color: #4a90e2;
  color: white;
  cursor: pointer;
}

button:hover {
  background-color: #357ab8;
}

button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

/* 📦 Rechterdeel */
#content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 🧢 Header boven vragencontainer */
#top-header {
  background-color: #4a90e2;
  color: white;
  padding: 15px 20px;
  flex-shrink: 0;
}

#top-header h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

#user-info {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

#user-info label {
  margin-right: 5px;
  font-weight: bold;
}

#user-info input {
  padding: 5px;
  width: 150px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

/* ❓ Vragencontainer */
#vragen-container {
  flex: 1;
  padding: 30px;
  background-color: #ffffff;
  overflow-y: auto;
}

/* 📋 Vragenstijl */
.vraag {
  margin-bottom: 20px;
  padding: 15px;
  border-left: 4px solid #ccc;
  background-color: #fafafa;
  border-radius: 4px;
}

.vraag label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

.vraag input {
  width: 100%;
  padding: 8px;
  font-size: 15px;
  margin-bottom: 6px;
}

.feedback {
  font-style: italic;
  color: #555;
  margin-top: 5px;
}

/* 📊 Score */
#score-display {
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
}

/* 📱 Responsiviteit */
@media (max-width: 768px) {
  #page-layout {
    flex-direction: column;
  }

  #sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
  }

  #content-area {
    flex: 1;
  }

  #user-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}