/* ==========================================================================
   1. ALGEMENE STYLING & GLOBALS
   ========================================================================== */
body {
  background-color: #d3104c;
  color: white;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0 !important;
}
a {
  color: white;
  text-decoration: underline;
}
a:hover {
  color: #eee;
}
.btn-primary {
  background-color: white;
  color: #d3104c;
  border: none;
  font-weight: 700;
  padding: 10px 20px;
}
.btn-primary:hover {
  background-color: #f0f0f0;
  color: #d3104c;
}
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}
/* ==========================================================================
   2. UI ELEMENTEN (Cards & Forms)
   ========================================================================== */
.card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}
.card h1, .card h2, .card h3, .card h4, .card h5, .card label {
  color: white !important;
}
.form-control {
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  color: #333;
  font-size: 16px;
  padding: 12px;
}
.btn-check:checked + .btn-outline-light {
  color: #d3104c !important;
  background-color: white !important;
  font-weight: bold;
  border-color: white !important;
}
/* ==========================================================================
   3. LOGO STYLING
   ========================================================================== */
.portal-logo {
  width: 50px;
  height: 50px;
  margin-bottom: 25px;
  display: block;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
  animation: fadeInDown 0.8s ease-out;
}
.header-logo {
  width: 35px;
  height: 35px;
  margin-right: 15px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ==========================================================================
   4. STARTPAGINA (Index)
   ========================================================================== */
.centered-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 20px;
}
.portal-card {
  width: 100%;
  max-width: 500px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}
.portal-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.portal-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 15px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}
.portal-tab-btn:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.05);
}
.portal-tab-btn.active {
  color: white;
  border-bottom: 3px solid white;
  background-color: rgba(255, 255, 255, 0.1);
}
.portal-content {
  padding: 30px;
}
.portal-card label {
  color: white !important;
  margin-bottom: 8px;
  font-weight: 500;
}
.portal-card .form-control {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
}
.portal-card .form-control:focus {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}
.portal-card .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.public-list-scroll {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}
.public-item-check {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 10px;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.public-item-check:hover, .public-item-check.selected {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}
.project-checkbox {
  transform: scale(1.5);
  cursor: pointer;
  accent-color: #d3104c;
}
/* ==========================================================================
   5. DASHBOARD STYLING
   ========================================================================== */
.project-list-scroll-area {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 5px;
  -webkit-overflow-scrolling: touch;
}
.dashboard-project-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
@media (max-width: 576px) {
  .dashboard-project-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .dashboard-project-item .btn-group {
    width: 100%;
    display: flex;
  }
  .dashboard-project-item .btn {
    flex: 1;
    justify-content: center;
    padding: 10px 0;
  }
}
.dashboard-project-item .btn {
  color: #ffffff !important;
  background-color: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  margin-left: 5px;
  transition: all 0.2s ease;
}
.dashboard-project-item .btn i {
  color: #ffffff !important;
}
.dashboard-project-item .btn:hover {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #000000 !important;
  transform: translateY(-2px);
}
.dashboard-project-item .btn:hover i {
  color: #000000 !important;
}
/* ==========================================================================
   6. PROJECT FILTERS
   ========================================================================== */
.filter-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}
/* HOOGTE FILTERBOX */
.filter-box {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  max-height: 400px;
}
.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.filter-group-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}
.group-reset-btn {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 5px 10px;
  cursor: pointer;
}
.group-reset-btn:hover {
  color: #ff6b6b;
}
.filter-scroll-area {
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 5px;
}
.filter-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  padding: 8px 12px;
  border-radius: 6px;
  flex-grow: 1;
  text-align: center;
}
.filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}
.filter-btn.active {
  background: white;
  color: #d3104c;
  font-weight: bold;
}
.filter-btn.disabled {
  opacity: 0.15;
  pointer-events: none;
}
/* ==========================================================================
   7. MASONRY GRID & KAARTJES
   ========================================================================== */
.grid {
  width: 100%;
}
.custom-card {
  background-color: white !important;
  color: #444 !important;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  width: 100%;
  border: none;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.selection-mode .custom-card {
  cursor: pointer;
}
.selection-mode .custom-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.selection-mode .custom-card.selected {
  outline: 3px solid #d3104c;
  transform: scale(0.99);
}
.custom-card .card-title {
  color: #212529 !important;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.2;
}
.grid-item {
  float: left;
  padding: 8px;
  width: 20%;
}
.grid-item.width-double {
  width: 40%;
}
@media (max-width: 1400px) {
  .grid-item {
    width: 25%;
  }
  .grid-item.width-double {
    width: 50%;
  }
}
@media (max-width: 992px) {
  .grid-item {
    width: 33.33%;
  }
  .grid-item.width-double {
    width: 66.66%;
  }
}
@media (max-width: 768px) {
  .grid-item {
    width: 50%;
  }
  .grid-item.width-double {
    width: 100%;
  }
}
@media (max-width: 500px) {
  .grid-item, .grid-item.width-double {
    width: 100%;
    padding: 8px 0;
  }
}
.card-header-visual {
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.card-unified-header {
  padding: 12px 18px;
  padding-right: 90px; /* Aangepast: minder ruimte nodig voor de knoppen */
  color: white;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}
.header-meta {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
  display: flex;
  justify-content: space-between;
  column-gap: 15px;
  flex-wrap: wrap;
}
.header-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2px;
}
.card-body-custom {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.card-image-container {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid #eee;
}
.card-video-container {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid #eee;
  background: #000;
  position: relative;
  cursor: pointer;
}
.card-video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.card-video-container:hover .video-thumb {
  opacity: 0.6;
}
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background-color: rgba(211, 16, 76, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
  pointer-events: none;
}
.card-video-container:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background-color: #fff;
  color: #d3104c;
}
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.custom-card:hover .card-img {
  transform: scale(1.05);
}
.data-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.data-list li {
  display: block;
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 0;
  color: #555;
  font-size: 0.8rem;
}
.data-list li:last-child {
  border-bottom: none;
}
.data-label {
  font-weight: 700;
  font-size: 0.65rem;
  opacity: 0.8;
  text-transform: uppercase;
  color: #d3104c;
  display: block;
  margin-bottom: 4px;
}
.data-content {
  text-align: left;
  line-height: 1.6;
  word-break: break-word;
  display: block;
  color: #333;
}
/* Knoppen op kaart */
.card-actions {
  position: absolute;
  top: 12px;
  right: 10px;
  display: flex;
  gap: 5px;
  z-index: 20 !important;
}
.action-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
}
.action-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  color: white;
}
.action-btn.text-danger:hover {
  background: rgba(255, 0, 0, 0.2);
}
.card-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: none;
}
.selection-mode .card-checkbox {
  display: block;
}
/* ==========================================================================
   8. OFFCANVAS & ZWEVENDE KNOPPEN
   ========================================================================== */
.offcanvas {
  background-color: #d3104c;
  color: white;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.offcanvas-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}
.offcanvas .filter-box {
  border: none;
  background: rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}
.fab-filter-btn {
  position: fixed;
  bottom: 120px;
  right: 20px;
  z-index: 9999 !important;
  background-color: white;
  color: #d3104c;
  border: 2px solid #d3104c;
  border-radius: 50px;
  padding: 15px 25px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.fab-filter-btn:hover {
  transform: scale(1.05);
  background-color: #f8f9fa;
  color: #b00d40;
}
.fab-filter-btn:active {
  transform: scale(0.95);
}
.action-bar-custom, .action-bar {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background: #2c3e50;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  transition: bottom 0.3s;
  z-index: 1050;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}
.action-bar-custom.visible, .action-bar.visible {
  bottom: 0;
}
/* ==========================================================================
   9. FIXES VOOR MODALS & IPHONE
   ========================================================================== */
.modal-backdrop {
  z-index: 1040 !important;
}
.modal {
  z-index: 1050 !important;
}
.modal-content {
  background-color: #ffffff !important;
  color: #333 !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  border: none;
  z-index: 1060 !important;
}
.modal-body .form-control {
  background-color: #ffffff !important;
  border: 1px solid #ced4da !important;
  color: #495057 !important;
}
.modal-body .form-control:focus {
  border-color: #d3104c !important;
  box-shadow: 0 0 0 0.2rem rgba(211, 16, 76, 0.25) !important;
}
#scroll-to-top, .sticky-bar, .footer-mobile, iframe[id^="utag"], a[href="#top"], .selection-bar, .selection-bar-inner {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* ==========================================================================
   10. PRINT STYLING (IOS FIX - 4 KAARTJES PER PAGINA)
   ========================================================================== */
@media print {
  /* We verbergen je hele website tijdens het printen, BEHALVE onze nieuwe print-doosjes */
  body > *:not(#ios-print-container) {
    display: none !important;
  }
  body {
    background: white !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  #ios-print-container {
    display: block !important;
    width: 100% !important;
  }
  /* Het doosje dat een harde A4 pagina-overgang afdwingt */
  .ios-print-page {
    display: block !important;
    width: 100% !important;
    page-break-after: always !important; /* DIT IS DE MAGIE: Dwingt een nieuw vel papier af! */
    break-after: page !important;
    padding: 15px 0;
  }
  .ios-print-page:last-child {
    page-break-after: auto !important; /* Geen leeg vel na de laatste pagina */
    break-after: auto !important;
  }
  /* De styling van de kaartjes zelf (2 naast elkaar, maximaal 4 per pagina) */
  .ios-print-page .custom-card {
    display: inline-block !important;
    vertical-align: top !important;
    width: 46% !important;
    margin: 10px 1.5% 20px 1.5% !important;
    border: 2px dashed #bbb !important; /* Kniplijntjes */
    box-shadow: none !important;
    height: auto !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  /* Knoppen op het kaartje verbergen */
  .ios-print-page .action-btn, .ios-print-page .card-checkbox, .ios-print-page .video-play-btn {
    display: none !important;
  }
  .ios-print-page .card-unified-header {
    padding-right: 18px !important;
    color: white !important;
  }
  .ios-print-page .card-image-container {
    height: 220px !important;
  }
  .ios-print-page .data-label {
    color: #d3104c !important;
  }
}
/* ==========================================================================
   11. PRESENTATIE MODUS
   ========================================================================== */
.presentation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2c3e50;
  z-index: 11000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.presentation-overlay.active {
  display: flex;
  animation: fadeIn 0.3s;
}
.presentation-card {
  background: white;
  width: 90%;
  max-width: 900px;
  height: 80vh;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  position: relative;
}
.pres-header {
  background-color: #d3104c;
  color: white;
  padding: 20px 30px;
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
}
.pres-body {
  flex-grow: 1;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.pres-image-col {
  width: 100%;
  height: 50vh;
  min-height: 300px;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px solid #eee;
  position: relative;
  flex-shrink: 0;
}
.pres-image-col img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* ... (laat de video containers hier ongewijzigd) ... */
.pres-content-col {
  width: 100%;
  padding: 40px;
  font-size: 1.2rem;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
}
.pres-video-container {
  width: 100%;
  height: 100%;
  position: relative;
  background: black;
  display: none;
}
.pres-video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: relative;
  z-index: 1;
}
.pres-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000;
  z-index: 2;
  cursor: pointer;
}
.pres-video-overlay img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}
.pres-video-overlay:hover .video-play-btn {
  transform: scale(1.1);
  background-color: white;
  color: #d3104c;
}
.pres-no-image {
  color: #ccc;
  font-size: 5rem;
}
.pres-curtain {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s;
  z-index: 10;
}
.pres-curtain.hidden {
  opacity: 0;
  pointer-events: none;
}
.curtain-btn {
  background: #2c3e50;
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  pointer-events: none;
}
.pres-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(44, 62, 80, 0.7);
  color: white;
  border: none;
  width: 60px;
  height: 100px;
  font-size: 2rem;
  cursor: pointer;
  transition: 0.2s;
  border-radius: 10px;
  z-index: 11005;
}
.pres-nav-btn:hover {
  background: rgba(44, 62, 80, 1);
}
.pres-prev {
  left: 20px;
}
.pres-next {
  right: 20px;
}
.pres-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  opacity: 0.8;
  cursor: pointer;
  transition: 0.2s;
  z-index: 11010;
}
.pres-close:hover {
  opacity: 1;
  transform: scale(1.1);
}
.pres-toggle-btn {
  position: absolute;
  top: 25px;
  right: 70px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: 0.2s;
  border-radius: 5px;
  padding: 5px 10px;
  z-index: 11010;
}
.pres-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}
.pres-toggle-btn.active {
  color: #d3104c;
  background: white;
}
.pres-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-weight: bold;
  opacity: 0.5;
  font-family: monospace;
}
@media (max-width: 768px) {
  .presentation-card {
    height: 70vh;
    width: 95%;
    margin-top: 50px;
  }
  .pres-body {
    flex-direction: column;
  }
  .pres-image-col {
    width: 100%;
    height: 40%;
    border-right: none;
    border-bottom: 1px solid #eee;
  }
  .pres-content-col {
    width: 100%;
    height: 60%;
    padding: 20px;
  }
  .pres-header {
    font-size: 1.3rem;
    padding: 15px;
  }
  .pres-nav-btn {
    width: 40px;
    height: 60px;
    font-size: 1.5rem;
    background: rgba(44, 62, 80, 0.9);
  }
  .pres-prev {
    left: 5px;
  }
  .pres-next {
    right: 5px;
  }
  .curtain-btn {
    font-size: 1rem;
    padding: 10px 20px;
  }
  .pres-close {
    top: 15px;
    right: 15px;
  }
  .pres-toggle-btn {
    top: 20px;
    right: 60px;
  }
}
/* ==========================================================================
   12. MOBILE TOOLBAR (DROPDOWN FIXES)
   ========================================================================== */
.dropdown-menu-custom-actions .dropdown-item {
  padding: 10px 15px;
  font-size: 0.95rem;
  color: #333;
  display: flex;
  align-items: center;
}
.dropdown-menu-custom-actions .dropdown-item:active, .dropdown-menu-custom-actions .dropdown-item:hover {
  background-color: #d3104c;
  color: white;
}
.dropdown-menu-custom-actions .dropdown-item i {
  width: 25px;
  text-align: center;
  margin-right: 10px;
}
/* ==========================================================================
   13. LABEL MODUS STYLING (HIGH VISIBILITY)
   ========================================================================== */
/* Zorg dat de body een dikke rand krijgt als de modus actief is */
body.label-mode-active {
  border: 5px solid #ffc107 !important; /* Opvallend geel */
  box-sizing: border-box; /* Zorgt dat de rand niet de layout breekt */
}
/* Cursor wordt een vizier */
body.label-mode-active .custom-card {
  cursor: crosshair !important;
}
/* Als er een label geselecteerd is ('has-active-stamp') wordt cursor een kopieer-icoon */
body.label-mode-active.has-active-stamp .custom-card {
  cursor: copy !important; /* Pijltje met plusje */
}
/* Een hover effect op de kaartjes tijdens labelen voor extra duidelijkheid */
body.label-mode-active .custom-card:hover {
  outline: 3px solid #ffc107; /* Gele outline */
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.5); /* Gele gloed */
  transform: scale(1.02);
  z-index: 50;
}
/* Sidebar Styling tijdens labelen (Donkergrijs) */
body.label-mode-active .offcanvas, body.label-mode-active .offcanvas-header, body.label-mode-active .offcanvas-body {
  background-color: #2c3e50 !important; /* Donkergrijs */
  color: white !important;
}
/* Sidebar titel opvallend maken */
body.label-mode-active .offcanvas-title {
  color: #ffc107 !important; /* Geel */
}
/* De geselecteerde knop in de sidebar */
.filter-btn.label-selected {
  background-color: #ffc107 !important; /* Geel */
  color: #000 !important; /* Zwarte tekst */
  font-weight: bold;
  box-shadow: 0 0 10px rgba(255, 193, 7, 0.8);
  border: 2px solid white;
  transform: scale(1.1);
}
/* ==========================================================================
   14. MOBILE FORM FIXES (CUSTOM DROPDOWN) - DEZE WAS WEGGEVALLEN
   ========================================================================== */
/* Zorg dat de modal zelf goed scrollbaar is op mobiel */
.modal-body {
  max-height: 70vh; /* Max 70% van schermhoogte */
  overflow-y: auto; /* Scrollbalk als het te lang is */
  -webkit-overflow-scrolling: touch; /* Soepel scrollen op iPhone */
}
/* De container van het veld moet 'relative' zijn zodat de lijst eronder past */
.input-wrapper {
  position: relative;
}
/* Het nieuwe uitklapmenu */
.custom-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ced4da;
  border-top: none;
  border-radius: 0 0 0.5rem 0.5rem;
  max-height: 200px; /* Hierdoor kun je scrollen als de lijst lang is! */
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: none; /* Standaard verborgen */
}
/* Zichtbaar maken */
.custom-dropdown-list.show {
  display: block;
}
/* De items in de lijst */
.custom-dropdown-option {
  padding: 10px 15px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  color: #333;
  font-size: 16px; /* Voorkomt inzoomen op iPhone */
}
.custom-dropdown-option:hover {
  background-color: #f8f9fa;
  color: #d3104c;
  font-weight: 500;
}
/* Zorg dat het pijltje eruit ziet als een knopje */
.input-group-text {
  border-left: 0;
  background-color: white !important;
}
.input-group-text:hover {
  background-color: #f8f9fa !important;
  color: #d3104c !important; /* Huisstijl rood bij hover */
}
.input-group .form-control {
  border-right: 0;
}
.input-group:focus-within {
  box-shadow: 0 0 0 0.2rem rgba(211, 16, 76, 0.25);
  border-radius: 0.375rem;
}
.input-group:focus-within .form-control, .input-group:focus-within .input-group-text {
  border-color: #d3104c;
}
/* ==========================================================================
   15. FULLSCREEN MENU STYLING (GRID FIX) - DIT IS DE NIEUWE STIJL
   ========================================================================== */
/* De container van het menu */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #d3104c; /* Huisstijl rood */
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.mobile-menu-overlay.active {
  transform: translateY(0);
}
/* De sluit-knop (X) */
.mobile-close-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 10001;
  opacity: 0.8;
  transition: 0.2s;
}
.mobile-close-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}
/* De container om alles te centreren */
.mobile-menu-content {
  width: 100%;
  max-width: 1000px; /* Zorgt dat het op grote schermen niet te breed wordt */
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mobile-menu-content h2 {
  color: white;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 30px;
  font-size: 1.8rem;
}
/* HET GRID SYSTEEM */
.menu-grid {
  display: grid;
  width: 100%;
  gap: 15px; /* Ruimte tussen de blokjes */
  /* STANDAARD (MOBIEL): 2 kolommen naast elkaar */
  grid-template-columns: repeat(2, 1fr);
}
/* KNOP STYLING */
.menu-grid .btn {
  display: flex;
  flex-direction: column; /* Icoon boven, tekst onder */
  justify-content: center; /* Verticaal centreren */
  align-items: center; /* Horizontaal centreren */
  text-align: center;
  aspect-ratio: 1.2 / 1; /* Iets breder dan hoog oogt rustiger op mobiel */
  padding: 10px;
  border-width: 2px;
  border-radius: 12px; /* Iets zachtere hoeken */
  font-weight: 700;
  font-size: 0.9rem; /* Iets kleiner font zodat tekst past */
  line-height: 1.3;
  transition: all 0.2s ease;
  white-space: normal; /* Zorg dat tekst mag wrappen naar 2 regels */
}
/* Iconen in de knop */
.menu-grid .btn i {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
}
/* Hover effect voor desktop */
.menu-grid .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background-color: white !important;
  color: #d3104c !important;
}
/* DESKTOP AANPASSINGEN (Vanaf tablets/laptops) */
@media (min-width: 992px) {
  .menu-grid {
    /* HIER IS DE FIX: Altijd precies 4 kolommen */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px; /* Meer ruimte op desktop */
  }
  .mobile-menu-content h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
  }
  .menu-grid .btn {
    aspect-ratio: 1 / 1; /* Op desktop mooi vierkant */
    font-size: 1.1rem; /* Grotere tekst op desktop */
    padding: 20px;
  }
  .menu-grid .btn i {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }
}
/* ==========================================================================
   17. PROJECT SPECIFIEKE OVERRIDES (Vanuit project.php)
   ========================================================================== */
body {
  background-color: var(--bg-body);
  color: var(--text-main);
}
/* --- KAARTEN (WIT EN LEESBAAR) --- */
.custom-card {
  background-color: #ffffff !important;
  color: #333333 !important;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.card-unified-header {
  color: #ffffff !important; /* Tekst in header altijd wit */
  border-bottom: none;
}
.card-unified-header .header-title, .card-unified-header .header-meta {
  color: #ffffff !important;
}
.card-body-custom {
  background-color: #ffffff !important;
  color: #333333 !important;
}
.data-list li {
  border-bottom-color: #f0f0f0;
  color: #333333 !important;
}
.data-content {
  color: #333333 !important;
}
/* Geen !important meer hier, zodat inline stijl (voor merge) werkt */
.data-label {
  color: var(--brand);
  font-weight: 700;
  opacity: 1;
}
/* --- OVERIGE STYLING --- */
.btn-outline-light {
  border-color: var(--text-main);
  color: var(--text-main);
}
.btn-outline-light:hover {
  background-color: var(--text-main);
  color: var(--bg-body);
}
.text-white, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--text-main) !important;
}
.text-white-50 {
  color: var(--text-main) !important;
  opacity: 0.6;
}
/* Transparant 'Glass' menu met Blur voor o.a. mobiel */
.offcanvas {
  background-color: color-mix(in srgb, var(--bg-body) 85%, transparent) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-main);
}
.offcanvas-header {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}
.filter-group-title {
  color: var(--text-main);
  opacity: 0.9;
}
.filter-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}
.filter-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}
.filter-btn.active {
  background: var(--text-main);
  color: var(--bg-body);
}
.fab-filter-btn {
  background-color: var(--text-main);
  color: var(--bg-body);
  border-color: var(--text-main);
}
.fab-filter-btn:hover {
  background-color: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.modal-content {
  background-color: #fff !important;
  color: #333 !important;
}
.modal-header, .modal-footer {
  background-color: #f8f9fa;
  border-color: #eee;
  color: #333;
}
.modal-body {
  background-color: #fff;
}
.modal .text-white {
  color: #333 !important;
}
.header-logo path[fill="#C03"] {
  fill: var(--brand);
}
.action-bar-custom {
  background-color: #2c3e50;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
/* --- AANPASSING VOOR SUPER BREDE SCHERMEN (6 kolommen) --- */
@media (min-width: 1600px) {
  .grid-item {
    width: 16.6666%; /* 6 kaartjes op een rij */
  }
  .grid-item.width-double {
    width: 33.3333%; /* Dubbele kaart pakt 2 plekken (1/3e) */
  }
}
/* Geef elk tekstvak dat te lang dreigt te worden automatisch een scrollbar */
.data-content {
    display: block;
    width: 100%;
    max-height: 85px; /* Bij ca. 3 regels springt de scrollbar direct aan! */
    overflow-y: auto;
    margin-top: 5px;
    padding-right: 5px;
    line-height: 1.5;
}

/* Subtiele scrollbar ontwerpen */
.data-content::-webkit-scrollbar {
    width: 6px;
}
.data-content::-webkit-scrollbar-track {
    background: transparent;
}
.data-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 10px;
}
.data-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}
/* Scrollbare tekstvakken voor lange verhalen op de kaartjes */
.data-list li.scrollable-text {
    flex-direction: column;
    align-items: flex-start !important;
}
.scrollable-text .data-content {
    display: block;
    width: 100%;
    max-height: 85px; /* HIER ZIT DE FIX: Teruggezet van 140px naar 85px (ca. 3 regels) */
    overflow-y: auto;
    margin-top: 5px;
    padding-right: 5px;
    line-height: 1.5;
}
/* Subtiele scrollbar ontwerpen */
.scrollable-text .data-content::-webkit-scrollbar {
  width: 6px;
}
.scrollable-text .data-content::-webkit-scrollbar-track {
  background: transparent;
}
.scrollable-text .data-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}
.scrollable-text .data-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}
/* ==========================================================================
   UITSCHAKELEN VAN DE AUTOMATISCHE "BREDE KAARTJES" (width-double)
   ========================================================================== */
.grid-item.width-double { width: 20% !important; }

@media (min-width: 1600px) { 
    .grid-item.width-double { width: 16.6666% !important; } 
}
@media (max-width: 1400px) { 
    .grid-item.width-double { width: 25% !important; } 
}
@media (max-width: 992px) { 
    .grid-item.width-double { width: 33.33% !important; } 
}
@media (max-width: 768px) { 
    .grid-item.width-double { width: 50% !important; } 
}
@media (max-width: 500px) { 
    .grid-item.width-double { width: 100% !important; } 
}
/* ==========================================================================
   18. DASHBOARD SPECIFIEKE OVERRIDES (Vanuit dashboard.php)
   ========================================================================== */
.dashboard-page {
  background-color: var(--bg-body) !important;
  color: var(--text-main) !important;
}
/* CARD FIX (Alleen op dashboard!) */
.dashboard-page .card {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-main) !important;
}
.dashboard-page .card-title, .dashboard-page .h1, .dashboard-page .h2, .dashboard-page .h3, .dashboard-page .h4, .dashboard-page .h5, .dashboard-page .h6 {
  color: var(--text-main) !important;
}
/* INPUTS (Alleen op dashboard!) */
.dashboard-page .form-control, .dashboard-page .form-select, .dashboard-page .input-group-text {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: var(--text-main) !important;
}
.dashboard-page .form-control::placeholder {
  color: var(--text-main) !important;
  opacity: 0.6;
}
.dashboard-page option {
  background-color: white;
  color: #333;
}
/* KNOPPEN (Deze namen zijn al uniek genoeg voor style.css) */
.btn-menu-action {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  height: 110px !important;
  width: 100% !important;
  background-color: #f8f9fa !important;
  color: #444 !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  transition: transform 0.1s, box-shadow 0.2s !important;
}
.btn-menu-action i {
  font-size: 2.2rem !important;
  margin-bottom: 10px !important;
  color: var(--brand) !important;
}
.btn-menu-action:hover {
  transform: translateY(-4px) !important;
  background-color: var(--brand) !important;
  color: white !important;
}
.btn-menu-action:hover i {
  color: white !important;
}
/* MODAL FIXES (Alleen op dashboard!) */
.dashboard-page .modal-content {
  background-color: #fff !important;
  color: #333 !important;
}
.dashboard-page .modal-header, .dashboard-page .modal-footer {
  background-color: #f8f9fa;
  border-color: #eee;
  color: #333;
}
.dashboard-page .modal-body {
  background-color: #fff;
}
.dashboard-page .modal-body p, .dashboard-page .modal-body label, .dashboard-page .modal-body .small, .dashboard-page .modal-body div {
  color: #333 !important;
}
.dashboard-page .modal-body .text-muted {
  color: #6c757d !important;
}
.dashboard-page .modal-content .form-control, .dashboard-page .modal-content .form-select {
  background-color: #fff !important;
  border: 1px solid #ced4da !important;
  color: #333 !important;
}
.dashboard-page .modal-content .form-control::placeholder {
  color: #aaa !important;
  opacity: 1;
}
.dashboard-page .modal .text-white, .dashboard-page .modal .text-white-50 {
  color: #333 !important;
}
/* DROPDOWN FIXES (Alleen op dashboard!) */
.dashboard-page .dropdown-menu {
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.dashboard-page .dropdown-header {
  color: #6c757d !important;
  font-weight: bold;
}
.dashboard-page .dropdown-item {
  color: #444 !important;
  padding: 10px 20px;
  transition: 0.2s;
}
.dashboard-page .dropdown-item:hover {
  background-color: #f8f9fa;
  color: var(--brand) !important;
  padding-left: 25px;
}
.dashboard-page .dropdown-item i {
  color: var(--brand) !important;
  width: 20px;
  text-align: center;
  margin-right: 10px;
}
/* Dashboard Items (Namen zijn al uniek genoeg) */
.dashboard-project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 15px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s, transform 0.1s;
}
.dashboard-project-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}
.dataset-checkbox {
  width: 1.2em;
  height: 1.2em;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.5);
}
/* Nav Pills */
.dashboard-page .nav-pills .nav-link {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  margin-right: 5px;
}
.dashboard-page .nav-pills .nav-link.active {
  background: white !important;
  color: var(--brand) !important;
}
.file-drop-area {
  border: 2px dashed rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-main);
}
.file-drop-area:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-main);
}
.dashboard-page .small.opacity-75 {
  color: var(--text-main) !important;
  opacity: 0.75;
}
.top-nav-btn {
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
}
.top-nav-btn:hover, .top-nav-btn.show {
  background: white;
  color: var(--brand);
  border-color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.top-btn-play {
  background: #ffc107;
  color: #000;
  border: 2px solid #ffc107;
}
.dashboard-page .header-logo path[fill="#C03"] {
  fill: var(--brand);
}
.dashboard-page .header-logo path[fill="#FFFFFE"] {
  fill: var(--text-main);
}
/* ==========================================================================
   19. INDEX SPECIFIEKE OVERRIDES (Vanuit index.php)
   ========================================================================== */
.index-page {
  background-color: var(--bg-body);
  color: var(--text-main);
}
.index-page .text-danger {
  color: var(--brand) !important;
}
.index-page .dataset-checkbox:checked + .public-item {
  border-left-color: var(--brand);
}
.index-page .check-icon {
  color: var(--brand);
}
.index-page .public-item {
  cursor: pointer;
  transition: 0.2s;
  position: relative;
}
.index-page .dataset-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.index-page .dataset-checkbox:checked + .public-item {
  background-color: rgba(255, 255, 255, 0.2);
  border-left: 5px solid var(--brand);
  padding-left: 10px;
}
.index-page .check-icon {
  display: none;
  background: white;
  border-radius: 50%;
  padding: 2px;
  font-size: 0.7em;
}
.index-page .dataset-checkbox:checked + .public-item .check-icon {
  display: inline-block;
}
.index-page .dataset-checkbox:checked + .public-item .arrow-icon {
  display: none;
}
.index-page .action-bar {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background: #2c3e50;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px;
  transition: 0.3s;
  z-index: 9999;
  display: flex;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}
.index-page .action-bar.visible {
  bottom: 0;
}
/* Mobiel inzoomen voorkomen */
.index-page input[type="text"], .index-page input[type="password"] {
  font-size: 16px !important;
}
/* Uitlijning Inlog/Selectie scherm (Mobiel / Standaard) */
.index-page .portal-content {
  min-height: 380px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.index-page .tab-pane {
  width: 100%;
}
.index-page .public-list-scroll {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 5px;
}

/* FIX VOOR LAPTOPS/TABLETS: Bredere en hogere weergave! */
@media (min-width: 768px) {
  .index-page .portal-card {
    max-width: 800px; /* Maakt de kaart lekker breed */
  }
  .index-page .portal-content {
    min-height: 500px; /* Maakt de kaart in zijn geheel hoger */
    justify-content: flex-start; /* Zet de inhoud bovenaan in plaats van gecentreerd */
  }
  .index-page .public-list-scroll {
    max-height: 450px; /* Hierdoor hoef je véél minder snel te scrollen! */
  }
}