body {
  background: linear-gradient(120deg, #fdfbfb, #ebedee);
  font-family: 'Poppins', sans-serif;
  color: #333;
}

.navbar {
  background-color: #6a9f8f;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link, .navbar .navbar-brand {
  color: white;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.navbar .nav-link:hover {
  color: #ffdd40;
}

.navbar-toggler {
  border: none;
  position: absolute;
  right: 20px;
}

.navbar-toggler .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
  transition: all 0.3s ease;
}

.navbar-toggler.active .bar {
  background-color: #ffdd40;
}

.navbar-nav {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-outline-light {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border: 2px solid #fff;
  color: white;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-outline-light:hover {
  background-color: #ffdd40;
  border-color: #ffdd40;
  color: #333;
}

.btn-outline-light i {
  font-size: 16px;
}

.btn-outline-light span {
  font-weight: 500;
  font-size: 16px;
}

/* Notification Icon Style */
.notification-icon {
  position: relative;
  display: inline-block;
  color: #ffffff;
}

/* Change the bell icon color when there are unread notifications */
.notification-icon .fa-bell.has-unread {
  color: red; /* Change to any color you prefer */
}

/* Badge Styling */
.notification-icon .badge {
  position: absolute;
  top: -5px;
  right: 15px; /* Increased space from the icon */
  font-size: 12px;
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 0 5px;
  display: inline-block;
}

/* Notification Icon Hover Color */
.notification-icon:hover {
  color: #ffdd40; /* Change this to your preferred hover color */
}

/* Dropdown Menu - Desktop */
.navbar-nav .dropdown:hover .dropdown-menu {
  display: block;
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.navbar-nav .dropdown-menu {
  display: none;
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #6a9f8f;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  z-index: 1050;
  width: 100%;  /* Ensure dropdown takes full width */
  min-width: 200px;  /* Optional, to prevent very small widths */
}

/* Prevent dropdown from going off the page on the right */
.navbar-nav .dropdown-menu {
  left: auto;
  right: 0;
}

/* Dropdown Item Styles */
.navbar-nav .dropdown-item {
  color: white;
  padding: 8px 20px;
  transition: background-color 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
  color: #ffdd40;
  background-color: #6a9f8f;
}

/* Mobile View */
@media (max-width: 992px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: -250px;
    height: 100vh;
    width: 550px;
    /* width: 70%;  */
    background-color: #6a9f8f;
    transition: left 0.55s ease;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    z-index: 999; /* Ensure the menu is above other content */
  }

  .navbar-collapse.show {
    left: 0;
  }

  /* Ensure the button stays on top of the menu */
  .navbar-toggler {
    position: fixed; /* Make the button fixed at the top */
    top: 30px; /* Space from the top of the screen */
    z-index: 1001; /* Higher than navbar-collapse */
  }

  .navbar-toggler.active .bar {
    background-color: #ffdd40;
  }

  .navbar-toggler.active .bar:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 7px;
  }

  .navbar-toggler.active .bar:nth-child(2) {
    opacity: 0;
  }

  .navbar-toggler.active .bar:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -7px;
  }

  /* Notification and Button in Mobile Menu */
  .navbar-collapse .d-flex {
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }

  .navbar-collapse .notification-icon,
  .navbar-collapse .btn {
    margin-top: 10px;
  }

  .navbar-collapse ul.navbar-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 30px;
  }

  .navbar-collapse ul.navbar-nav .nav-item {
    margin-bottom: 15px;
  }

  /* Mobile dropdown handling */
  .navbar-nav .dropdown-menu {
    position: static;
    width: 100%; /* Ensure it takes the full width on mobile */
    min-width: 100%; /* Optional, prevents the dropdown from being too small */
  }
}

.btn-custom {
  background-color: #e28101;
  border-color: #e28101;
  color: white; /* Ensure the text is visible */
}

.btn-custom:hover {
  background-color: #d57201; /* Slightly darker color on hover */
  border-color: #d57201;
}

