/* Reset and override any conflicting styles */
#mainNavbar {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  height: auto;
  min-height: 90px;
  max-height: 90px; /* Set a fixed height for the navbar */
  padding: 0;
  margin: 0;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  width: 100%;
  /* max-width: 1200px; */
  margin: 0;
  height: 70px;
}

.navbar-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
}

.logo-image {
  width: auto;
  margin-right: 10px;
}

.logo-text {
  font-size: 1.55rem;
  font-weight: 700;
  color: #4a6fff;
}

/* Navigation menu styling */
.navbar-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 2rem;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  height: 100%;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  height: 100%;
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link:focus {
  color: #4a6fff;
}

/* Buttons styling */
.navbar-actions {
  display: flex;
  justify-content: center;
  align-items: center;
}
#temp{
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn {
  display: inline-block;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: 0.75rem;
  text-align: center;
}

.btn-primary {
  background-color: #4a6fff;
  color: #fff;
  border: 1px solid #4a6fff;
}

.btn-primary:hover {
  background-color: #3a57e8;
  border-color: #3a57e8;
}

.btn-outline-primary {
  background-color: transparent;
  color: #4a6fff;
  border: 1px solid #4a6fff;
}

.btn-outline-primary:hover {
  background-color: #4a6fff;
  color: #fff;
}

/* User profile menu */
.user-profile-menu {
  display: flex;
  align-items: center;
  height: 100%;
  cursor: pointer;
  position: relative;
  margin-left: 1rem;
}

.avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
}

.username {
  font-weight: 500;
}

.username:hover {
  color: #4a6fff;
}

.user-profile-menu {
  /* background-color: #3a57e8; */
  right: 0;
  left: auto;
  padding: 1em 0;

  /* height: 100%; */
}

.dropdown-menu{
  display:none;
  opacity: 0;
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  transition: all 0.2s ease-in-out;
  /* margin-top: 0.8em; */
}

.dropdown-menu.show-dropdown {
  display: block;
}

.show-dropdown {
  opacity: 1;
  /* display: block; */
}

.d-none {
  display: none !important;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.mobile-menu-toggle .bar {
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 10px;
  transition: all 0.3s ease;
}

/* Add spacing below navbar for content */
body {
  padding-top: 90px;
  font-family: 'Poppins', sans-serif;
}
.nav-link , #navUsername{
  font-size: 1em;
  font-weight: 500;
}

/* Responsive styles */
@media (max-width: 991px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .navbar-menu {
    position: fixed;
    top: -100%;
    left: 0;
    /* right: -100%; */
    width: 100vw;
    /* height: calc(100vh - 70px); */
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 1rem;
    transition: top 0.5s ease;
    overflow-y: auto;
    margin-left: 0;
    box-shadow: 2px 10px 15px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-menu.active {
    /* right: 0; */
    top: 70px;
  }
  
  .navbar-nav {
    flex-direction: column;
    width: 100%;
    margin-bottom: 1rem;
    align-items: flex-start;
  }
  
  .nav-item {
    width: 100%;
    margin: 0;
    height: auto;
  }
  
  .nav-link {
    padding: 1rem 0;
    width: 100%;
    justify-content: space-between;
  }
  
  .dropdown-menu {
    position: static;
    box-shadow: none;
    display: block;
    opacity: 1;
    width: 100%;
    padding-left: 1rem;
    background-color: #f8f9fa;
    bottom: 0;
    margin-top: 0.7em;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .navbar-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn {
    width: 100%;
    margin: 0.5rem 0;
  }
  
  .user-profile-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    padding: 0.5rem 0;
  }
  
  .user-profile-menu .dropdown-menu {
    width: 100%;
    /* padding: 0.5rem 0; */
  }
  body {
    padding-top: 86px;
  }
}

