/* =============================================
1. :root en fonts
============================================= */
:root {
  --radius-hoekronding: 0.5rem;
  --font-size-kop: 2.5rem;
  --font-size-tussenkop: 1.5rem;
  --font-size-extragroot: 8rem;
  --font-size-normal: 1rem;
  --font-size-ondertitel: 2rem;
  --font-size-klein: 0.8rem;
  --color-lichtfont: #ffffff;
  --color-bezig: #ffaa74;
  --color-fout: #ff7474;
  --color-uitgenodigd: #2c4a6a;
  --color-primary: #2497d5;
  --color-goed: #91cd79;
  --color-goed-rgb: 40, 167, 69;
  --color-blauw: #5f95ed;
  --color-hover: #207cae;
  --color-normaal: #383838;
  --color-inactief: #e3e3e3;
}

.kopgroot { font-size: var(--font-size-kop); font-weight: 800; color: var(--color-primary); }
.kopgrootwit { font-size: var(--font-size-kop); font-weight: 800; color: var(--color-lichtfont); }
.kopmiddelblauw { font-size: var(--font-size-ondertitel); margin-bottom: 1rem; color: var(--color-primary)}
.kopmiddel { font-size: var(--font-size-ondertitel); margin-bottom: 1rem;}
.kopklein { font-size: var(--font-size-tussenkop); }
.kopkleinwit { font-size: var(--font-size-tussenkop); color: var(--color-lichtfont);}
.normaltekst { font-size: var(--font-size-normal); }
.normaltekst_wit { font-size: var(--font-size-normal); color: var(--color-lichtfont); }
.normaltekst_klein {font-size: var(--font-size-klein); color: var(--color-lichtfont); }

.tekstprimair {color: var(--color-normaal);}
.tekstwit {color: var(--color-lichtfont);}
.tekstblauw {color: var(--color-primary);}

/* =============================================
2. Global resets
============================================= */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

a,
a:hover,
a:focus,
a:active {
  text-decoration: none;
}

p {
  font-weight: 200;
  margin-bottom: 0;
}

.tekst {
  font-weight: 200;
}

.knoppen {
  background-color: var(--color-primary);
  border-style: none;
}

.knoppen:hover {
  background-color: var(--color-hover);
}

.kopgroot {
  font-size: var(--font-size-kop);	
  font-weight: 400;
  color: var(--color-primary)
}

.kopmiddel {
  font-size: var(--font-size-ondertitel);
  margin-bottom: 1rem;
}

.kopklein {
  font-size: var(--font-size-tussenkop);
}

.margelinks {
  margin-left:0.5rem;
}

.standaard_blok {
  padding: 1rem;
  border-radius: var(--radius-hoekronding);
  background-color: var(--color-primary);
}

.blok_tekst {
  font-size: var(--font-size-normal);
  color: var(--color-lichtfont);
  margin-top: 0;
  margin-bottom: 0rem;
}

.knop {
  background-color: var(--color-primary);
  color: var(--color-lichtfont);
  border: none;
}

.knop:hover { background-color: #207cae; color: var(--color-lichtfont);}

/* Pas dit aan naar de gewenste hoogte */
.ck-editor__editable_inline {
  min-height: 300px;
}

/* afgeronde hoeken voor de inline ClassicEditor */
.ck-editor__editable_inline {
  border-radius: var(--radius-hoekronding); /* zelfde standaard Bootstrap radius als .form-control */
}

/* en, als je ook de toolbar afgerond wilt hebben: */
.ck-editor__top {
  border-top-left-radius: var(--radius-hoekronding);
  border-top-right-radius: var(--radius-hoekronding);
}

/* Algemene tooltip-styling */
.tooltip {
  --bs-tooltip-bg: var(--color-primary);
  font-size: 0.9rem;
  font-family: sans-serif;
  /* Zorg dat fade/opacity altijd werkt */
  opacity: 1 !important;
}

.tooltip-inner {
  background-color: var(--color-primary);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
  max-width: 220px;       /* optioneel: max breedte */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 
  Belangrijk: Je richt je op “.tooltip.bs-tooltip-top .tooltip-arrow::before” 
  omdat Bootstrap bij ‘top’ de klasse bs-tooltip-top toevoegt op de container.
*/

/* Tooltip onder het element (bs-tooltip-top) */
.tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: fuchsia !important; !important;
}

/* Tooltip boven het element (bs-tooltip-bottom) */
.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: fuchsia !important;
}

/* Tooltip rechts van het element (bs-tooltip-start) */
.tooltip.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: fuchsia !important;
}

/* Tooltip links van het element (bs-tooltip-end) */
.tooltip.bs-tooltip-end .tooltip-arrow::before {
  border-right-color:fuchsia !important;
}

.card-text::first-letter {
  text-transform: uppercase;
}

/* =============================================
3. Loginpagina
============================================= */
.loginwrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Fallback afbeelding */
.login-fallback-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Video erbovenop */
.login-background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Overlay erbovenop */
.loginoverlay {
  position: absolute;
  inset: 0;
  background-color: rgba(33, 33, 33, 0.6);
  mix-blend-mode: multiply;
  z-index: 2;
}

/* Content */
.loginoverlay-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 100vh;
}

.logoblok { width: 100%; display: flex; justify-content: center; }
.loginlogo { width: 350px; max-width: 100%; height: auto; display: block; filter: brightness(0) invert(1); }
.logincontainer {
  width: 100%;
  max-width: 400px;
  padding: 1rem;
  box-sizing: border-box;
}

.wachtwoordlink {
  font-size: 0.9rem;
  color: #ffffff;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.wachtwoordlink:hover {
  color: #bbbbbb;
  text-decoration: none;
}

.taal_dropdown {
  z-index: 9999 !important;
  margin:0;
  padding-top: 0;
}

.taal-dropdown-item {
  display: block;
  width: 100%;
  padding-left:1rem;
  padding: .5rem 1rem;
  clear: both;
  font-weight: 400;
  color: #292b2c;
  text-align: inherit;
  white-space: nowrap;
  background: 0 0;
  border: 0;
}

.taal-dropdown-menu {
  padding: 0;
  width: 100%;
  min-width: unset;
}

.taal-dropdown-item:hover {
  background-color: #f0f0f0; /* of een andere kleur naar keuze */
  text-decoration: none;
  color: #000; /* optioneel: verander de tekstkleur op hover */
}

.taalkeuze {
  position: relative;
  z-index: 10;
}

.taalkeuze .btn {
  border-radius: 0.25rem;
  box-shadow: none;
  background-color: var(--color-lichtfont);
  z-index: 999;
}

.taalkeuze img {
  margin-right: 1rem;
}

.login-error {
  background-color: #fff;
  padding:1rem;
  border-radius: var(--radius-hoekronding);
}

.error_tekst {
  color: var(--color-fout);
  font-weight: 700;
  padding: 0;
  margin: 0!important;
}

/* =============================================
4. Zijmenu + mobiele menu
============================================= */
.zijmenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 16.6667%;
  height: 100vh;
  background-color: #e9eff2;
  border-right: 1px solid #ddd;
  overflow-y: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.zijmenu-onderin {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
}

.zijmenuitem {
  background-color: var(--color-primary);
  color: var(--color-lichtfont);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-hoekronding);
  transition: background-color 0.2s ease;
  width: 100%;
}

.zijmenuitem i { margin-right: 1rem; }
.zijmenuitem a {
  text-decoration: none;
  color: var(--color-lichtfont);
  display: block;
  width: 100%;
}

.zijmenuitem:hover { background-color: #207cae; }
.zijmenuitem a:hover { color: var(--color-lichtfont); }

.buttonzijmenu {
  background-color: var(--color-goed);
  color: var(--color-lichtfont);
  border-radius: var(--radius-hoekronding);
}

.buttonzijmenu:hover {
  background-color: var(--color-goed);
  color: var(--color-lichtfont);
  border-radius: var(--radius-hoekronding);
}

.buttonzijmenu:focus,
.buttonzijmenu:active {
  background-color: var(--color-goed)!important;
  color: var(--color-lichtfont);
  outline: none;
  box-shadow: none;
}

.mobile-zijmenu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 80%;
  max-width: 280px;
  background-color: #f8f9fa;
  border-right: 1px solid #ccc;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-zijmenu.show { transform: translateX(0); }

.mobile-topbar {
  background-color: #e9eff2;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1100;
  width: 100vw;
  left: 0;
  right: 0;
  padding: 1rem;
  margin: 0;
  box-sizing: border-box;
}

/* =============================================
5. Vaste onderbalk
============================================= */
.vastebalk {
  position: fixed;
  bottom: 0;
  left: 16.6667%;
  right: 0;
  background-color: #f8f9fa;
  border-top: 1px solid #ddd;
  z-index: 999;
  padding: 1rem;
}

@media (max-width: 767.98px) {
  .vastebalk { left: 0; }
}

.voortgang-container { padding-right: 1rem; }

.voortgangsbalk {
  height: 16px;
  background-color: #e9ecef!important;
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
}

.voortgangsbalk .progress-bar {
  background-color: #94c678!important;
  transition: width 0.3s ease;
}

/* =============================================
6. Content-wrapper
============================================= */
.content-wrapper {
  min-height: 100vh;
  background-color: var(--color-lichtfont);
  padding-bottom: 80px;
}

@media (min-width: 868px) {
  .content-wrapper {
    margin-left: 16.6667%;
    width: 83.3333%;
  }
}

.extrainfovraag {
  background-color: #e9eff2;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.25rem;
  font-size: calc(0.9rem);
}

.vierkante-afbeelding {
  width: 100%;
  aspect-ratio: 1 / 1;        /* zorgt dat hij altijd vierkant is */
  object-fit: cover;          /* afbeelding vult het vlak, geen witte randen */
  display: block;
  border-radius: var(--radius-hoekronding); /* als je afgeronde hoeken wil */
}

.blok_goedantwoord {
  background-color: var(--color-goed);
  border-radius: var(--radius-hoekronding);
  padding: 0.7rem;
}

.blok_foutantwoord {
  background-color: var(--color-fout);
  border-radius: var(--radius-hoekronding);
  padding: 0.7rem;
}

/* =============================================
7. Bibliotheek
============================================= */
.bieb_item_kop {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.bieb_kop_afbeelding {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bieb_titel_module { padding: 1rem; }

.bieb_knop_module {
  padding: 1rem;
  background-color: var(--color-lichtfont);
  border-top: none;
}

.bieb-knop {
  background-color: var(--color-primary);
  color: var(--color-lichtfont);
  border: none;
}

.bieb-knop:hover { background-color: #207cae; }

/* Grid voor vraag-lijst */
.vraag-lijst-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: center;
  gap: 1rem;
  row-gap: 0.75rem;
}

/* Header-styling */
.vraag-lijst-grid > .vraag-kolom:first-child,
.vraag-lijst-grid > .type-kolom:first-of-type,
.vraag-lijst-grid > .actie-kolom:first-of-type {
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ccc;
}

/* Rijen padding */
.vraag-lijst-grid > .vraag-kolom,
.vraag-lijst-grid > .type-kolom,
.vraag-lijst-grid > .actie-kolom {
  /* optioneel: vertical padding */
}

/* Tekstuitlijning */
.type-kolom { text-align: center; }
.actie-kolom { text-align: right; }

/* =============================================
8. Startscherm & Eindscherm
============================================= */
.start-wrapper {
  position: relative;
  background-image: url('../img/biebimage.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.start-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 1;
}

.start-center {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

@media (min-width: 868px) {
  .start-wrapper {
    margin-left: 16.6667%;
    width: 83.3333%;
  }
}

.eind-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 868px) {
  .eind-wrapper {
    margin-left: 16.6667%;
    width: 83.3333%;
  }
}

@keyframes scaleIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.start-avatar {
  width: 350px; /* of groter als je wil */
  height: auto;
  animation: scaleIn 0.6s ease-out forwards;
}

/* =============================================
9. Dashboard
============================================= */
.dashboard_filterbutton {
  background-color: var(--color-primary);
  font-size: var(--font-size-normal);
  color: var(--color-lichtfont);
  border-radius: var(--radius-hoekronding);
  padding: 1rem;
  border-style: none;
}


.dashboard_filters {
  background-color: #f5f5f5;
}

.dashboard_filterbox {
  display: inline-flex;
  align-items: center;
  background-color: #fff;
  border-radius: var(--radius-hoekronding);
  padding: 0.4rem 0.6rem 0.4rem 0.6rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  border-style: none;
}

.dashboard_filterbox_alles {
  display: inline-flex;
  align-items: center;
  background-color: transparent;
  border-radius: var(--radius-hoekronding);
  padding: 0.4rem 0.6rem 0.4rem 0.6rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  border-style: none;
}

.dashboard_filter-close {
  background: none;
  border: none;
  color: #888;
  font-size: 1.2rem;
  margin-left: 0.5rem;
  cursor: pointer;
  line-height: 1;
}

.dashboard_filter-close:hover {
  color: #000;
}

.dashboard_zoekregel {
  background-color: #f0f0f0;
}

.dashboard_teller {
  background-color: #fff;
  border-radius: var(--radius-hoekronding);
  padding: 0.4rem 0.6rem 0.4rem 0.6rem;
  font-size: var(--font-size-klein);
}


/*.DASHBOARD DETAILS*/

.dashboard_kolom_1{
  border-radius: var(--radius-hoekronding);
  background-color: var(--color-uitgenodigd);
  color: var(--color-lichtfont);
  font-size: var(--font-size-extragroot);
  font-weight: 800;
  min-height: 10rem;
  text-align: center;
}

.dashboard_kolom_2{
  border-radius: var(--radius-hoekronding);
  background-color: var(--color-bezig);
  color: var(--color-lichtfont);
  font-size: var(--font-size-extragroot);
  font-weight: 800;
  min-height: 10rem;
  text-align: center;
}

.dashboard_kolom_3{
  border-radius: var(--radius-hoekronding);
  background-color: var(--color-goed);
  color: var(--color-lichtfont);
  font-size: var(--font-size-extragroot);
  font-weight: 800;
  min-height: 10rem;
  text-align: center;
}

.dashboard_percentage_tekst{
  font-size: var(--font-size-normal);
}

.dashboard_card {
  border-style: none;
  background-color: transparent;
}

.dashboard_cardheader {
  background-color: var(--color-primary);
  border-radius: var(--radius-hoekronding)!important;
  border-style: none;
  transition: border-radius 0.2s ease;
}

.dashboard_cardheader + .collapse.show {
  border-top-left-radius: 0!important;
  border-top-right-radius: 0!important;
  transition: border-radius 0.2s ease;
}

.dashboard_cardheader:has(+ .collapse.show) {
  border-bottom-left-radius: 0!important;
  border-bottom-right-radius: 0!important;
  transition: border-radius 0.2s ease;
}

.dashboard_cardheader_alt {
  background-color: var(--color-goed);
  border-radius: var(--radius-hoekronding)!important;
  border-style: none;
  transition: border-radius 0.2s ease;
}

.dashboard_cardbody {
  background-color: #f7f7f7;
  border-bottom-left-radius: var(--radius-hoekronding)!important;
  border-bottom-right-radius: var(--radius-hoekronding)!important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.dashboard_cardbody_alt {
  background-color: var(--color-goed);
  border-bottom-left-radius: var(--radius-hoekronding)!important;
  border-bottom-right-radius: var(--radius-hoekronding)!important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.dashboard_cardlink {
  color: var(--color-lichtfont);
  font-size: 1.5rem;
  text-decoration: none;
}

.dashboard_vraagtype {
  font-size: var(--font-size-normal);
}

.dashboard_cardlink:hover {
  color: var(--color-lichtfont);
  text-decoration: none;
}

.dashboard_cardlink:focus {
  color: var(--color-lichtfont)!important;
  text-decoration: none;
}

.toggle-icon {
  transition: transform 0.3s ease;
}

.card-link:not(.collapsed) .toggle-icon {
  transform: rotate(180deg);
}

.dashboard_blokgehaald {
  background-color: var(--color-goed);
  border-radius: 0.5rem!important;
  color: var(--color-lichtfont);
}

.resultaten-tabel {
  background-color: var(--color-goed);
}

.resultaten-tabel td,
.resultaten-tabel th {
  padding: 0.4rem 0.6rem; /* minder hoog */
  vertical-align: middle;
}

.resultaten-tabel .col-naam {
  width: 80%;
}

.resultaten-tabel .col-percentage {
  width: 20%;
  white-space: nowrap; /* voorkomt afbreken van % */
  text-align: right;
}

/* =============================================
10. Startscherm
============================================= */

.startscherm_video{
  width: 100%;
  border-radius: var(--radius-hoekronding);
}

/* =============================================
10. Module
============================================= */

.check_vierkant {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--color-primary);
  background-color: #fff;
  border-radius: 0.2rem; /* Geen afronding = vierkant */
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.check_vierkant:checked::before {
  content: '✔';
  color: var(--color-primary);
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.check_vierkant_goed {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--color-goed);
  background-color: #fff;
  border-radius: 0.2rem; /* Geen afronding = vierkant */
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.check_vierkant_goed:checked::before {
  content: '✔';
  color: var(--color-goed);
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.check_vierkant_fout {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--color-fout);
  background-color: #fff;
  border-radius: 0.2rem; /* Geen afronding = vierkant */
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.check_vierkant_fout:checked::before {
  content: '✔';
  color: var(--color-fout);
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.check_vierkant_blauw {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--color-blauw);
  background-color: #fff;
  border-radius: 0.2rem; /* Geen afronding = vierkant */
  display: inline-block;
  position: relative;
  cursor: pointer;
}

.check_vierkant_blauw:checked::before {
  content: '✔';
  color: var(--color-blauw);
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.circle-nummer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;        /* diameter */
  height: 2rem;       /* diameter */
  border-radius: 50%; /* maak rond */
  background-color: var(--color-goed);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  margin-right: 1rem;
}

.circle-nummer-fout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;        /* diameter */
  height: 2rem;       /* diameter */
  border-radius: 50%; /* maak rond */
  background-color: var(--color-fout);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  margin-right: 1rem;
}

.hotspot-afbeelding {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block; /* voorkomt whitespace onder de img */
}

/* De afbeelding vierkant, cover en met scherpe rand en overlay */
.mc-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 0.25rem;
  position: relative;
  transition: border-color 0.2s;
  display: block;
}

/* Verborgen checkbox */
.mc-option-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Label om de afbeelding heen positioneren */
.mc-option-label {
  display: block;
  position: relative;
  cursor: pointer;
}

/* Overlay via pseudo-element */
.mc-option-label::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 123, 255, 0); /* standaard doorzichtig */
  border-radius: 0.25rem;
  transition: background 0.2s;
}

/* Checkbox-checked: border highlight & overlaykleur */
.mc-option-input:checked + .mc-option-label .mc-image {
  border-color: var(--bs-primary);
}
.mc-option-input:checked + .mc-option-label::after {
  background: rgba(0, 123, 255, 0.3);
}

.uitleg-vraag {
  font-size: 0.5rem;
  font-weight: 200;
}

.meerkeuze-label {
  font-weight: 400;
}

.meerkeuze-label_goed {
  font-weight: 400;
  color: var(--color-goed);
}

.meerkeuze-label_fout {
  font-weight: 400;
  color: var(--color-fout);
}

.meerkeuze-label_blauw {
  font-weight: 400;
  color: var(--color-blauw);
}

.uitleg-antwoord {
  font-size: 0.9rem;
  color: #555;
  background-color: #f9f9f9;
  padding: 0.5rem;
  border-radius: 0.25rem;
  margin-left: 0;
}

/* =============================================
11. Admin
============================================= */

.tabel {
  --bs-table-bg: transparent; 
  --bs-table-striped-bg: transparent;
}

.tabel-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Desktop en tablet: grid */
@media (min-width: 768px) {
  .tabel-rij {
    display: grid;
    grid-template-columns: 150px 1fr 1fr 140px; /* verhoogde breedte voor laatste kolom */
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
  }
  
  .tabel-rij:not(.tabel-koprij):hover {
    background-color: #e6f0ff;
    cursor: pointer;
  }
  
  .tabel-koprij {
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--color-primary);
    padding: 0.5rem 1rem;
  }
  
  /* voorkom afbreken koptekst "Aantal modules" */
  .tabel-koprij .tabel-cel.modules {
    white-space: nowrap;
  }
  
  .tabel-cel.acties {
    display: flex;
    gap: 0.5rem;
  }
  
  .tabel-cel.modules {
    text-align: right;
  }
}

/* Mobiel: stapel layout */
@media (max-width: 767.98px) {
  .tabel-rij {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 1rem;
  }
  
  /* Header niet tonen op mobiel */
  .tabel-koprij {
    display: none;
  }
  
  .tabel-rij:not(.tabel-koprij):hover {
    background-color: #e6f0ff;
    cursor: pointer;
  }
  
  .tabel-cel {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
  }
  
  /* Labels vóór celtekst mobiel */
  .tabel-cel.naam::before {
    content: "Naam:";
    font-weight: 600;
  }
  .tabel-cel.email::before {
    content: "Emailadres:";
    font-weight: 600;
  }
  .tabel-cel.modules::before {
    content: "Aantal modules:";
    font-weight: 600;
  }
  .tabel-cel.acties {
    justify-content: flex-start;
    gap: 0.5rem;
    padding-top: 0.5rem;
  }
}

.tabel-wrapper-5kol {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Desktop en tablet: grid met 5 kolommen */
@media (min-width: 768px) {
  .tabel-rij-5kol {
    display: grid;
    grid-template-columns: 150px 1.5fr 1fr 0.7fr 0.7fr;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
  }
  
  .tabel-rij-5kol:not(.tabel-koprij-5kol):hover {
    background-color: #e6f0ff;
    cursor: pointer;
  }
  
  .tabel-koprij-5kol {
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--color-primary);
    padding: 0.5rem 1rem;
  }
  
  .tabel-cel-acties-5kol {
    display: flex;
    gap: 0.5rem;
  }
  
  .tabel-cel-voortgang-5kol,
  .tabel-cel-datum-5kol {
    text-align: right;
  }
}

/* Mobiel: stapel layout */
@media (max-width: 767.98px) {
  .tabel-rij-5kol {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 1rem;
  }
  
  .tabel-koprij-5kol {
    display: none;
  }
  
  .tabel-rij-5kol:not(.tabel-koprij-5kol):hover {
    background-color: #e6f0ff;
    cursor: pointer;
  }
  
  .tabel-cel-acties-5kol {
    justify-content: flex-start;
    gap: 0.5rem;
    padding-top: 0.5rem;
    display: flex;
  }
  
  .tabel-cel-module-5kol,
  .tabel-cel-naam-5kol,
  .tabel-cel-voortgang-5kol,
  .tabel-cel-datum-5kol {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
  }
  
  /* Labels vóór celtekst mobiel */
  .tabel-cel-module-5kol::before {
    content: "Module naam:";
    font-weight: 600;
  }
  .tabel-cel-naam-5kol::before {
    content: "Naam:";
    font-weight: 600;
  }
  .tabel-cel-voortgang-5kol::before {
    content: "Voortgang:";
    font-weight: 600;
  }
  .tabel-cel-datum-5kol::before {
    content: "Datum:";
    font-weight: 600;
  }
}

/* Hover styling voor linkjes */
.tabel-actie-icon {
  display: inline-block;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tabel-actie-icon:hover {
  color: var(--color-primary);
}

.icon-wit {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.icon-wit:hover {
  color: #fff;
}

/* Desktop: 4 kolommen */
@media (min-width: 768px) {
  .tabel-rij-4kol {
    display: grid;
    /* pas de verhoudingen naar wens aan */
    grid-template-columns: 2fr 1fr 1fr auto;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
  }

  .tabel-rij-4kol:not(.tabel-koprij-4kol):hover {
    background-color: #e6f0ff;
    cursor: pointer;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
  }

  .tabel-koprij-4kol {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--color-primary);
    padding: 0.5rem 1rem;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
  }

  .tabel-cel-actie-4kol {
    text-align: right;
  }

  /* optioneel, als je specifieke cell-styling wilt */
  .tabel-cel-journey-4kol    { /* eerste kolom */ }
  .tabel-cel-modules-4kol    { text-align: center; }
  .tabel-cel-deelnemers-4kol { text-align: center; }
}

/* Mobiel: stapel layout */
@media (max-width: 767.98px) {
  .tabel-rij-4kol {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 1rem;
  }

  /* verberg de kop op mobiel */
  .tabel-koprij-4kol {
    display: none;
  }

  /* elke cel als rij */
  .tabel-rij-4kol > div {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
  }

  .tabel-rij-4kol:not(.tabel-koprij-4kol):hover {
    background-color: #e6f0ff;
    cursor: pointer;
  }
}


/* 6 kolommen layout */
@media (min-width: 768px) {
  .tabel-rij-6kol {
    display: grid;
    grid-template-columns: 180px 1.8fr 1fr 1.4fr 1.3fr 1fr; /* kolombreedtes aangepast, succes percentage breder */
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
  }
  
  .tabel-rij-6kol:not(.tabel-koprij-6kol):hover {
    background-color: #e6f0ff;
    cursor: pointer;
    border-top-left-radius: 0.5rem;  /* afronden linksboven */
    border-top-right-radius: 0.5rem; /* afronden rechtsboven */
  }
  
  .tabel-koprij-6kol {
    font-weight: 600;
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--color-primary);
    padding: 0.5rem 1rem;
    border-top-left-radius: 0.5rem;  /* afronden linksboven */
    border-top-right-radius: 0.5rem; /* afronden rechtsboven */
  }
  
  .tabel-cel-acties-6kol {
    display: flex;
    gap: 0.5rem;
  }
  
  .tabel-cel-naam-module-6kol {
    min-width: 0;
  }
  
  .tabel-cel-succes-percentage-6kol,
  .tabel-cel-aantal-vragen-6kol,
  .tabel-cel-bekijk-module-6kol {
    text-align: center;
  }
  
  .tabel-cel-talen-6kol {
    text-align: left; /* talen links uitgelijnd */
  }
}

/* Mobiel: stapel layout */
@media (max-width: 767.98px) {
  .tabel-rij-6kol {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 1rem;
  }
  
  .tabel-koprij-6kol {
    display: none;
  }
  
  .tabel-rij-6kol:not(.tabel-koprij-6kol):hover {
    background-color: #e6f0ff;
    cursor: pointer;
  }
  
  .tabel-cel-acties-6kol,
  .tabel-cel-naam-module-6kol,
  .tabel-cel-aantal-vragen-6kol,
  .tabel-cel-succes-percentage-6kol,
  .tabel-cel-bekijk-module-6kol,
  .tabel-cel-talen-uitklap-6kol {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
  }
  
  /* Labels vóór celtekst mobiel */
  .tabel-cel-naam-module-6kol::before {
    content: "Naam module:";
    font-weight: 600;
  }
  .tabel-cel-aantal-vragen-6kol::before {
    content: "Aantal vragen:";
    font-weight: 600;
  }
  .tabel-cel-succes-percentage-6kol::before {
    content: "Succes percentage:";
    font-weight: 600;
  }
  .tabel-cel-bekijk-module-6kol::before {
    content: "Bekijk module:";
    font-weight: 600;
  }
  .tabel-cel-talen-uitklap-6kol::before {
    content: "Talen:";
    font-weight: 600;
  }
  .tabel-cel-acties-6kol::before {
    content: "Acties:";
    font-weight: 600;
  }
}


/* Vlaggen */

.talen-vlag {
  width: 24px;        /* pas grootte naar wens aan */
  height: auto;
  margin-right: 0.3rem;
  vertical-align: middle;
  cursor: default;
  user-select: none;
}

/* Toggle divs */

.info-div {
  display: none;
  background: #fff;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #ccc;
}

.lijst-div {
  display: none;
  background: #fff;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #ccc;
}

.vraag-lijst {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
}

.vraag-lijst-kop,
.vraag-lijst-rij {
  display: flex;
  padding: 0.25rem 0;
}

.vraag-lijst-kop {
  font-weight: 700;
  border-bottom: 2px solid var(--color-primary);
  margin-bottom: 0.3rem;
}

.vraag-kolom {
  flex: 3; /* verhouding kolom breedte */
}

.type-kolom {
  flex: 1;
  text-align: right;
}


/* =============================================
12. Upload
============================================= */


.icon-bg-rounded {
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  border-radius: var(--radius-hoekronding);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px; /* Pas padding hier aan naar wens */
}

.sorteer-btn {
  background-color: var(--color-inactief);
  color: var(--color-lichtfont);
  border: none;
  transition: background-color 0.3s ease;
}

.sorteer-btn:hover,
.sorteer-btn:focus {
  background-color: var(--color-primary); /* hover kleur voor niet-actieve knop */
  color: var(--color-lichtfont);
  box-shadow: none;
}

.sorteer-btn.active {
  background-color: var(--color-primary);
  border-color: #004085;
  color: var(--color-lichtfont);
}

.sorteer-btn.active:hover,
.sorteer-btn.active:focus {
  background-color: var(--color-primary);
  color: var(--color-lichtfont);
}



/* =============================================
13. Hotspot
============================================= */


/* === Container met vierkante afbeelding === */
.hotspot-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* === Afbeelding vult de container === */
.hotspot-container img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === Basis hotspot === */
.hotspot {
    position: absolute;
    border: 2px dashed gray;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
}

/* === Geselecteerd via klik (blauw randje) === */
.hotspot.selected {
    border-color: blue;
    background-color: rgba(0, 0, 255, 0.1);
}

/* === Goed antwoord === */
.hotspot.correct {
    border-color: green;
    background-color: rgba(var(--color-goed-rgb), 0.5);
}

/* === Fout antwoord === */
.hotspot.incorrect {
    border-color: red;
    background-color: rgba(255, 0, 0, 0.1);
}

/* === Vinkje of kruis rechtsboven (mooi!) === */
.hotspot.correct::after,
.hotspot.incorrect::after {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
}

.hotspot.correct::after {
    content: '✔';
    color: green;
}

.hotspot.incorrect::after {
    content: '✖';
    color: red;
}