/* Bottom navigation container */
.app-nav--bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  overflow-x: auto; /* scroll if too many items */
  justify-content: space-between;
  background: #fff;
  border-top: 1px solid #ddd;
  padding: 5px 0;
  z-index: 9999;
  scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome/Safari */
.app-nav--bottom::-webkit-scrollbar {
  display: none;
}

/* Individual nav item */
.app-nav--bottom .nav-item {
  flex: 0 0 20%; /* 5 icons per viewport width */
  text-align: center;
  font-size: 1.5rem;
  color: #444;
  position: relative;
  padding: 5px 0;
  transition: all 0.3s ease;
}

/* Active state highlight */
.app-nav--bottom .nav-item.active {
  color: #0073e6;
}

.app-nav--bottom .nav-item.active::after {
  content: '';
  display: block;
  width: 50%;
  height: 3px;
  background: #0073e6;
  margin: 0 auto;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Optional: increase spacing on hover */
.app-nav--bottom .nav-item:hover {
  color: #0073e6;
  transform: translateY(-3px);
  transition: all 0.2s ease;
}

/* Ensure responsiveness for more than 5 items */
@media (max-width: 480px) {
  .app-nav--bottom .nav-item {
    flex: 0 0 auto; /* let items scroll horizontally */
  }
}
