:root {
  --primary-color: #3067a2;
  --primary-color-light: #4273a7;
  --secondary-color: #dee1e2;
  --black-color: #000000;
}

/* ------------------- Navbar ------------------- */
.navbar {
  background-color: var(--secondary-color) !important;
  border-bottom: 3px solid var(--primary-color);
  height: 80px; /* Betere vaste hoogte ipv vh */
  transition: all 0.3s ease-in-out;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 20px; 
  margin-left: 1rem;
}

.navbar-logo {
  height: 60px;
  width: auto; 
}

.navbar-brand h2 {
  margin: 0; 
  font-size: 1.8rem;
  line-height: 1; 
  font-weight: bolder;
  color: var(--primary-color);
}

/* Navigatielinks */
.nav-link {
  font-size: 1.2rem !important;
  color: var(--primary-color) !important;
  font-weight: bold !important;
  padding: 15px !important;
  position: relative;
}

/* Hover-underline effect */
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  background-color: var(--primary-color);
  left: 50%;
  bottom: 5px;
  transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* Dropdown menu */
.dropdown-menu {
  background-color: var(--secondary-color) !important;
  border: none;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  color: var(--primary-color) !important;
  font-weight: bold !important;
  font-size: 1.1rem !important;
}

.dropdown-item:hover {
  background-color: var(--primary-color-light) !important;
  color: #fff !important;
}

/* Responsive Toggler Button */
.navbar-toggler {
  border: none !important;
  outline: none !important;
  transition: all 0.3s ease-in-out;
}

.navbar-toggler:focus,
.navbar-toggler:hover {
  box-shadow: none;
  transform: scale(1.1);
}

/* Mobile Navbar Fix */
@media (max-width: 992px) {
  .navbar {
    height: 70px; /* Kleinere navbar op mobiel */
  }

  .navbar-collapse {
    position: absolute;
    top: 70px; /* Past zich aan de navbar hoogte aan */
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    padding: 10px 0;
  }

  .navbar-nav {
    text-align: center;
  }

  .nav-link {
    display: block;
    padding: 12px;
  }

  /* Fix dropdown-menu voor touchscreens */
  .dropdown-menu {
    text-align: center;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .navbar-logo {
    height: 40px;
  }

  .navbar-brand h2 {
    font-size: 1.2rem;
  }
}

