/* css/navbar.css */

/* Hover effect - bounce to bottom */
.hvr-bounce-to-bottom {
  display: inline-block;
  vertical-align: middle;
  transform: perspective(1px) translateZ(0);
  position: relative;
  transition-property: color;
  transition-duration: 0.5s;
}

.hvr-bounce-to-bottom:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #2098D1;
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition-property: transform;
  transition-duration: 0.5s;
  transition-timing-function: ease-out;
}

.hvr-bounce-to-bottom:hover,
.hvr-bounce-to-bottom:focus,
.hvr-bounce-to-bottom:active {
  color: white;
}

.hvr-bounce-to-bottom:hover:before,
.hvr-bounce-to-bottom:focus:before,
.hvr-bounce-to-bottom:active:before {
  transform: scaleY(1);
  transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
}

/* Dropdown items hover effect */
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #2098D1;
  color: white;
}

/* Navbar compact styling */
.navbar-nav .nav-item {
  padding: 0;
  margin: 0 2px;
}

.navbar-nav .nav-link {
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
}

/* Compact dropdown */
.dropdown-menu {
  padding: 0.25rem 0;
  min-width: 12rem;
}

.dropdown-item {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

/* Mobile-specific adjustments */
@media (max-width: 991.98px) {
  .navbar-nav .nav-item {
    padding: 0.25rem 0;
  }

  .dropdown-menu {
    border: none;
    box-shadow: none;
    padding-left: 1rem;
    background-color: transparent;
  }

  .navbar-nav .dropdown-menu.show {
    display: block !important;
  }

  .dropdown-toggle:after {
    float: right;
    margin-top: 0.5rem;
  }

  .hvr-bounce-to-bottom {
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .hvr-bounce-to-bottom:before {
    display: none;
  }

  .navbar-nav .nav-link.hvr-bounce-to-bottom:active,
  .navbar-nav .nav-link.hvr-bounce-to-bottom:focus {
    background-color: #2098D1;
    color: white;
  }

  .navbar-nav .nav-link.active {
    background-color: rgba(32, 152, 209, 0.15);
    color: #2098D1;
  }

  .navbar-collapse {
    max-height: 85vh;
    overflow-y: auto;
  }
}
