/* 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 */
}


