html {
  background-color: #000000;
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #000000;
  color: #ffffff;
}

/* --- Nieuwe Navigatie & Pagina Structuur --- */
#app-container {
  display: none; /* Wordt zichtbaar na inloggen */
  padding: 20px;
}

#main-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.nav-btn {
  background-color: #333;
  border: 1px solid #555;
}
.nav-btn.active {
  background-color: #009900;
  border-color: #33ff33;
}

.pagina {
  display: none; /* Alle pagina's zijn standaard verborgen */
}
.pagina.active {
  display: block; /* Alleen de actieve pagina wordt getoond */
}
/* --- Einde Nieuwe Structuur --- */


#loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  display: none;
}

.spinner {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #009900;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#intro-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 1s ease-out;
}
#intro-container.hidden {
  opacity: 0;
  pointer-events: none;
}
lottie-player {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
}

#install-instructions-container {
  display: block;
}
  
@keyframes fadeIn {
from { opacity: 0; transform: scale(0.3); }
to { opacity: 1; transform: scale(1); }
}

#install-logo {
  display: block; 
  height: auto;   
  max-width: 100%;
  margin: 0 auto 10px auto;
  animation: fadeIn 5s ease-in-out;
} 
  
#login-container {
  display: none;
}

@media all and (display-mode: standalone) {
  #install-instructions-container {
    display: none;
  }
  #login-container {
    display: block;
  }
}

#install-instructions-container {
  padding: 20px;
  text-align: center;
}
#install-instructions-container h2 {
  color: #009900;
  font-size: 2.3em;
  margin-bottom: 10px;
}
#install-instructions-container .subtitle {
  max-width: 600px;
  margin: 0 auto 30px auto;
  line-height: 1.5;
}
.instructions-columns {
  background-color: #1a1a1a;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.instruction-column {
  background-color: #1a1a1a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 20px;
  width: 350px;
  max-width: 100%;
  text-align: left;
}
.instruction-column h3 {
  color: #ffffff;
  margin-top: 0;
}
.instruction-step {
  background-color: #282828;
  border: 1px solid #444;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 15px;
}
.instruction-step:last-child {
  margin-bottom: 0;
}
.instruction-footer {
  margin-top: 30px;
  font-style: italic;
  color: #ccc;
  font-size: 0.9em;
  text-align: left;
}
#login-container {
  background-color: #000000;
  color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  margin: 20px auto;
}
#login-container h2 {
  color: #005200;
  text-align: center;
}
#login-logo {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 200px;
    height: auto;
}
#login-container input {
  background-color: #009900;
  color: #ffffff;
  border: 1px solid #555555;
  width: 100%;
  box-sizing: border-box;
}
#login-container input::placeholder {
  color: #cccccc;
}
#login-form button {
    width: 100%;
}

#admin-panel {
    /* padding is verwijderd */
}

#admin-controls {
  margin-bottom: 20px; 
  padding: 15px; 
  background-color: #1a1a1a; 
  border: 1px solid #444; 
  border-radius: 8px;
}

#admin-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

#live-users-panel, #stats-panel {
  width: 100%;
  min-width: 300px;
}

#live-users-panel {
  background-color: #1a1a1a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 20px 15px;
}

#online-users-list {
  max-height: 400px;
  overflow-y: auto;
}

#stats-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 992px) {
  #admin-container {
    flex-wrap: nowrap;
  }
  #live-users-panel {
    flex: 1;
  }
  #stats-panel {
    flex: 2;
  }
}

.stats-box {
  background-color: #1a1a1a;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 20px 15px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

#header-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 20px;
}
.content-item {
  margin: 15px 0;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #1a1a1a;
  color: #ffffff;
  position: relative;
}
.text-item {
  background-color: #282828;
  color: #e0e0e0;
  border: 1px solid #444444;
  border-radius: 5px;
  margin: 15px 0;
  padding: 15px;
}
.image-item {
  background-color: #333333;
  border: none;
  padding: 0px;
  border-radius: 5px;
  margin: 15px 0;
  display: block;
  text-align: center;
}
.link-item {
  background-color: #282828;
  color: #e0e0e0;
  border: 1px solid #444444;
  border-radius: 5px;
  margin: 15px 0;
  padding: 15px;
}
.link-item a { color: #FFFFFF; text-decoration: underline; }
.link-item a:visited { color: #cccccc; text-decoration: underline; }
.link-item a:hover { color: #33ff33; text-decoration: none; }
.link-item a:active { color: #FF3333; text-decoration: underline; }
.video-item {
  background-color: #000000;
  border: 2px solid #000000;
  border-radius: 5px;
  margin: 0px 0;
  padding: 0px;
  display: block;
  text-align: center;
}
.content-item img { height: auto; }
.content-item .text-content { flex-grow: 1; }
button {
  padding: 10px;
  margin: 5px;
  background-color: #005200;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}
button:hover { background-color: #003d00; }
.delete-button { background-color: #dc3545; margin-left: 10px; }
.delete-button:hover { background-color: #c82333; }
.edit-button { background-color: #007bff; margin-left: 10px; }
.edit-button:hover { background-color: #0056b3; }
#logout-btn { background-color: #DC3545; }
#logout-btn:hover { background-color: #C82333; }
input, select, textarea {
  padding: 8px;
  margin: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #333333;
  color: #ffffff;
}
textarea { width: calc(100% - 10px); min-height: 100px; resize: vertical; }
.image-buttons {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
  z-index: 10;
}
.image-buttons button { padding: 5px 8px; font-size: 0.8em; }
.content-item iframe {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: none;
}
#bottom-buttons-container {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
@media (max-width: 600px) {
    #bottom-buttons-container {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    #bottom-buttons-container button { width: calc(100% - 10px); }
}
#content-list .content-item img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none;
  outline: none;
  padding: 0;
  margin: 0 auto;
  object-fit: contain;
}

#back-to-top-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #009900;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 10px;
  font-size: 18px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

#back-to-top-btn:hover {
  opacity: 1;
}
