/* Algemene instellingen */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden; /* voorkomt horizontale scrollbars */
}

/* Achtergrondafbeelding voor de hele site */
body {
  background: url('/images/siteas.jpg') no-repeat center center fixed;
  background-size: cover;
  background-color: #f8f9fa; /* fallback kleur */
}

/* Titels */
h1 {
  margin-bottom: 20px;
}

/* Alleen voor slideshow-weergave */
body.slideshow {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

body.slideshow img {
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
}

/* Styling voor loginpagina */
.login-page {
  color: #C77F11;       /* goudkleurige tekst */
  margin-top: 3cm;      /* verticale marge */
  text-align: center;   /* centreer tekst */
}

/* Loginformulier centreren en netjes uitlijnen */
.login-page form {
  display: inline-block;
  text-align: left;
  margin-top: 20px;
}

/* Lazy loading afbeeldingen */
.lazy {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  will-change: opacity;
}

.lazy.loaded {
  opacity: 1;
}

/* Afbeeldingen binnen kaarten (bijv. galerij) */
.card-img-top {
  max-width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Navbar moet volledige breedte hebben */
.navbar {
  width: 100%;
}

.galerij-titel {
  color: #c7b511;
  text-align: center;
  font-size: 2em;
  margin: 30px auto; /* centreren */
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.7); /* wit met transparantie */
  border-radius: 12px;
  display: table; /* maakt centreren via margin auto mogelijk */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.fout-titel {
  color: #c7b511;
  text-align: center;
  font-size: 20px;
  margin: 30px auto; /* centreren */
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.7); /* wit met transparantie */
  border-radius: 12px;
  display: table; /* maakt centreren via margin auto mogelijk */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.klik-titel {
  color: #c7b511;
  text-align: center;
  font-size: 1.6em;
  margin: 20px auto;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.7); /* witte wazige achtergrond */
  border-radius: 10px;
  display: table;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 2px solid #C77F11; /* gouden rand */
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.klik-titel-klein {
  color: #c7b511;
  text-align: center;
  font-size: 15px;
  margin: 10px auto;
  padding: 10px 10px;
  background: rgba(255, 255, 255, 0.7); /* witte wazige achtergrond */
  border-radius: 8px;
  display: table;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 2px solid #C77F11; /* gouden rand */
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}


h4 {
  color: #c7b511;
  text-align: center;
  font-size: 15px !important;
  margin: 20px auto;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.7); /* witte wazige achtergrond */
  border-radius: 10px;
  display: table;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.h4 {
  color: #c7b511;
  text-align: center;
  font-size: 15px !important;
  margin: 20px auto;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.7); /* witte wazige achtergrond */
  border-radius: 10px;
  display: table;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

/* Compacte weergave */
.gallery-grid.compact-view {
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  grid-auto-rows: 5px;
  gap: 6px;
}

.gallery-grid.compact-view .gallery-item img {
  border: 1px solid #ccc;
}

/* Miniatuur weergave met vaste blokken */
.gallery-grid.mini-view {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  grid-auto-rows: 50px; /* vaste hoogte */
  gap: 6px;
}

.gallery-grid.mini-view .gallery-item {
  grid-row-end: span 1 !important;
  height: 50px;
  overflow: hidden;
}

.gallery-grid.mini-view .gallery-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}


/*#floating-delete-bar {
  display: flex;
  align-items: center;
  gap: 10px; /* optioneel, voor ruimte ertussen */
/*}*/




/*v#floating-delete-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 11000; /* hoger dan lightbox */
  /* overige styling */
/*}*/


.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  flex-direction: column;
}

.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  box-shadow: 0 0 20px #000;
  border-radius: 10px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  z-index: 10001;
}

#download-btn {
  margin-top: 20px;
  background: #a5660d;
  border: none;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px #333;
  z-index: 10001;
}

#download-btn:hover {
  background: #c7b511;
}

.hidden {
  display: none !important;
}

.floating-status {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #ccc;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 14px;
  z-index: 9999;
  color: #444;
}

#close-btn {
  margin-top: 20px;
  background: #a5660d;
  border: none;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px #333;
  z-index: 10001;
}

#close-btn:hover {
  background: #c7b511;
}

#delete-btn {
  margin-top: 20px;
  background: #a5660d;
  border: none;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px #333;
  z-index: 10001;
}

#delete-btn:hover {
  background: #730000;
}

/* iPhone background fix */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('/images/siteas.jpg') no-repeat center center;
  background-size: cover;
  z-index: -1;
  pointer-events: none; /* voorkomt interactieproblemen */
}

body {
  background: none !important;
  position: relative;
}

#floating-delete {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #dc3545;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  z-index: 9999;
  cursor: pointer;
}


/*#floating-delete-bar {
  margin-top: 20px;
  background: #a5660d;
  border: none;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px #333;
  z-index: 10001;
}

#floating-delete-bar:hover {
  background: #c7b511;
}
*/

#floating-delete-bar {
  position: fixed;
  bottom: -100px; /* buiten beeld */
  right: 20px;
  background: #a5660d;
  border: none;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 0 10px #333;
  z-index: 10001;
  gap: 10px;
  align-items: center;
  transition: bottom 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;

}


#floating-delete-bar1 {
  position: fixed;
  bottom: -100px; /* buiten beeld */
  right: 20px;
  background: #4b4b4b;
  border: none;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 0 10px #333;
  z-index: 10001;
  gap: 10px;
  align-items: center;
  transition: bottom 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;

}

.top-action-bar {
  display: none;
  align-items: center;
  gap: 10px;
  margin: 10px 20px 20px;
  font-size: 16px;
}

.top-action-bar.visible {
  display: flex;
}



.top-select-label {
  margin-top: 20px;
  background: #a5660d;
  border: none;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px #333;
  z-index: 10001;
}

#top-delete-btn {
  margin-top: 20px;
  background: #a5660d;
  border: none;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px #333;
  z-index: 10001;
}

#top-delete-btn:hover {
  background-color: #bb2d3b;
}





#top-selected-count {
  margin-top: 20px;
  background: #a5660d;
  border: none;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px #333;
  z-index: 10001;
}

#top-selected-count:hover {
  background: #c7b511;
}

/* IP-logs container: geen table-weergave */
.iplogs-container {
  color: #c7b511;
  text-align: center;
  font-size: 1em;
  margin: 30px auto;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 95%;
  display: block;            /* <— belangrijk: geen display: table */
}

.iplogs-container h1 {
  margin-bottom: 15px;
}

/* Wrapper die horizontaal kan scrollen */
.table-wrapper {
  display: block;
  width: 100%;
  overflow-x: auto;          /* <— horizontaal scrollen */
  -webkit-overflow-scrolling: touch; /* soepel scrollen op mobiel */
}

/* Tabel zelf mag breder zijn dan het scherm */
.iplogs-table {
  border-collapse: collapse;
  font-size: 0.9em;
  width: max-content;        /* <— wordt zo breed als de inhoud */
  min-width: 1000px;         /* <— forceer echte overflow op mobiel */
  margin: 0;                 /* géén centeren nodig binnen scroll */
}

.iplogs-table th,
.iplogs-table td {
  border: 1px solid #999;
  padding: 8px;
  white-space: nowrap;       /* <— voorkom afbreken, behoud breedte */
}


/* 🔹 Animatie voor indeterminate progress bar */
#progress-bar.loading {
    width: 30%; /* kort blokje i.p.v. 100% */
    animation: slide 1.5s linear infinite;
}

@keyframes slide {
    0% { margin-left: -30%; }
    100% { margin-left: 100%; }
}


#scroll-container {
  height: auto;
  overflow: visible;
}


#loader {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: none;         /* standaard verborgen */
  z-index: 9999;
  display: flex;         /* spinner + tekst naast elkaar */
  align-items: center;
  gap: 8px;
}

#loader .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* ===========================
   Video placeholder (16:9)
   =========================== */


/* .intro-video {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 30px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  background: #000;
  opacity: 1;
  transition: opacity 1s ease; 
}
*/

/* Intro video container */
.intro-video {
  position: fixed;     /* zwevend, telt niet mee in de flow */
  bottom: 30px;          /* afstand vanaf de bovenkant, pas aan naar jouw smaak */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  background: #000;
  opacity: 0; /* start onzichtbaar */
  animation: fadeIn 1s ease forwards;
  animation-delay: 1s; /* fade in na 1 sec */
}

@media (max-width: 768px) {
  .intro-video {
    position: relative;   /* terug in de flow */
    bottom: auto;
    left: auto;
    transform: none;
    margin: 30px auto;    /* zelfde spacing als oud */
  }
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Zorg voor 16:9 aspect ratio */
.intro-video::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 9/16 * 100 */
}

/* Video zelf vult het vlak */
.intro-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Controls-balk onderaan video */
.custom-controls {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: center;        /* alles op 1 lijn */
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  background: linear-gradient(to top, rgba(128,94,0,0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.intro-video:hover .custom-controls {
  opacity: 1;
}

/* Buttons in de controls */
.custom-controls button {
  background: none;
  border: none;
  color: #ffffe6;
  font-size: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;    /* vaste box zodat niks verschuift */
  height: 40px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.custom-controls button:hover {
  transform: scale(1.1);
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
}

/* Play/pause icoon */
#playPauseIcon {
  background: transparent;   /* geen achtergrondkleur */
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.6));
}

/* Slider */
.custom-controls input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 30%;
  height: 8px;
  background: #ffffe6;
  outline: none;
  opacity: 0.7;
  transition: opacity 0.2s;
  border-radius: 50px;
}

.custom-controls input[type="range"]:hover {
  opacity: 1;
}

/* Slider thumb */
.custom-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background: rgba(255, 252, 221, 0.877);
  cursor: pointer;
  border-radius: 50%;
  margin-top: -3px; /* netjes centreren in track */
}
