/* CSS reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
}

/* ========== Header ========== */
/* Zorgt ervoor dat de header en navbar altijd in beeld blijven */
.KeepInPlace {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  pointer-events: none;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  pointer-events: auto;
  background: linear-gradient(
    90deg,
    rgb(200, 200, 202) 0%,
    rgb(234, 237, 238) 100%
  );
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  background: linear-gradient(
    90deg,
    rgb(47, 98, 209) 0%,
    rgb(121, 204, 231) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 20px;
  margin: 0;
  display: inline-block;
}

/* Hamburger menu button */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: rgb(47, 98, 209);
  cursor: pointer;
  padding: 8px;
  margin-right: 15px;
  z-index: 1001;
  pointer-events: auto;
}

.hamburger-menu:hover {
  color: rgb(121, 204, 231);
  transition: color 0.3s ease;
}

/* Rechterdeel van de header */
.header-right {
  display: flex;
  align-items: center;
  gap: 15px !important;
}
.header-input {
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 12px;
  border-radius: 5px;
}
.header-right input {
  padding: 8px 12px;
  border-radius: 8px;
  outline: none;
  width: 230px;
  border: none;
}

.header-right i.fa-bell {
  font-size: 20px;
  cursor: pointer;
  color: rgb(47, 98, 209);
}
.bell {
  font-size: 20px;
  cursor: pointer;
}
.profile {
  width: 35px;
  height: 35px;
  background-color: gray;
  border-radius: 50%;
  cursor: pointer;
}

/* ========== Navigatie links ==========  dit ziet er cooler uit*/
.Navbar {
  position: fixed;
  top: 66px;
  left: 0;
  display: flex;
  justify-content: left;
  align-items: flex-start;
  width: auto;
  width: 240px;
  height: calc(100vh - 66px);
  background-color: white;
  pointer-events: auto;
  transition: transform 0.3s ease;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

/* Overlay voor mobile menu */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  pointer-events: auto;
}

.menu-overlay.active {
  display: block;
}

/* Lijst in de navbar */
.Navbar ul {
  position: absolute;
  list-style-type: none;
  width: 100%;
  text-align: center;
}

.Navbar li {
  width: 220px;
  justify-self: center;
}

.Navbar a {
  /* border: 1px solid green; */
  padding: 10px 12px;
  margin: 10px 0;
  text-decoration: none;
  color: black;
  display: flex;
  justify-content: left;
  align-items: center;
  border-radius: 7px;
}

.Active a {
  background: linear-gradient(
    90deg,
    rgb(47, 98, 209) 0%,
    rgb(95, 188, 219) 100%
  );
  color: white;
}

.Navbar a:hover {
  background-color: rgb(47, 125, 209);
  color: white;
  transition: all 0.3s ease;
}

.Navbar i {
  font-size: 1.4em;
  margin-right: 30px;
}

.Navbar p {
  font-size: 0.9em;
}
/* ========== Main content ========== */
/* Jammer genoeg is hier nog niks..tragisch */

main {
  margin-top: 66px;
  margin-left: 240px;
  width: calc(100% - 240px);
}

.bg-video {
  z-index: -999;
  position: fixed;
  left: 0;
  top: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.bg-video iframe {
  width: 100%;
  height: 130%;
  object-fit: cover;
}

@media (max-aspect-ratio: 16/9) {
  .bg-video iframe {
    width: 100%;
    height: 100%;
  }
}

/* Perons change button */
.Person-change {
  display: flex;
  flex-direction: row;
  margin: 25px 0 30px;
  width: 100%;
}

.Person-change a {
  width: 50%;
}

.Person-change button {
  background-color: white;
  color: black;
  border: none;
  width: 100%;
  padding: 12px 0;
  font-size: 20px;
  cursor: pointer;
  margin-right: 15px;
  transition: background-color 0.2s ease;
}

.Person-change a:nth-child(1) button {
  border-radius: 8px 0 0 8px;
}

.Person-change a:nth-child(2) button {
  border-radius: 0 8px 8px 0;
}

.Active-btn-per button {
  background-color: royalblue !important;
  color: white;
}

/* ========== Responsive Design ========== */
/* Tablet en kleiner (max-width: 768px) */
@media (max-width: 768px) {
  header {
    padding: 12px 20px;
  }

  header h1 {
    font-size: 18px;
  }

  .hamburger-menu {
    display: block;
  }

  .header-input {
    display: none;
  }

  .header-right input {
    display: none;
  }

  /* Navbar verbergen op mobile, alleen tonen wanneer actief */
  .Navbar {
    transform: translateX(-100%);
    width: 280px;
    z-index: 1000;
  }

  .Navbar.active {
    transform: translateX(0);
  }

  /* Main content aanpassen voor mobile */
  main {
    margin-left: 0;
    width: 100%;
    padding: 10px;
  }

  .header-right {
    gap: 10px !important;
  }

  .header-right i.fa-bell {
    font-size: 18px;
  }

  .profile {
    width: 30px;
    height: 30px;
  }
}

/* Mobile phones (max-width: 480px) */
@media (max-width: 480px) {
  header {
    padding: 10px 15px;
  }

  header h1 {
    font-size: 16px;
  }

  .Navbar {
    width: 100%;
    max-width: 300px;
  }

  .Navbar li {
    width: 100%;
  }

  .Navbar a {
    padding: 12px 20px;
    margin: 5px 10px;
  }

  .Navbar i {
    font-size: 1.2em;
    margin-right: 20px;
  }

  .Navbar p {
    font-size: 0.95em;
  }

  .header-right {
    gap: 8px !important;
  }

  .profile {
    width: 28px;
    height: 28px;
  }

  main {
    padding: 8px;
  }
}

/* Kleine mobile phones (max-width: 360px) */
@media (max-width: 360px) {
  header h1 {
    font-size: 14px;
  }

  .hamburger-menu {
    font-size: 20px;
    padding: 6px;
    margin-right: 10px;
  }

  .profile {
    width: 26px;
    height: 26px;
  }
}
