#bottom-bar-container {
  position: fixed;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 70px;
  background-color: #0f1923;
  display: none;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #1e2c3a;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
  width: 100%;
}

.bottom-nav {
  display: flex;
  width: 100%;
}

.nav-item {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 33.333%;
  height: 100%;
  text-decoration: none;
  color: #a2a9b4;
  transition: all 0.3s ease;
  padding: 8px 0;
  position: relative;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.nav-item:focus,
.nav-item:active {
  outline: none;
  box-shadow: none;
}

/* Active state for toggles */
.nav-item.active {
  color: #ff9d45;
  background-color: rgba(255, 157, 69, 0.1);
}

.nav-item.active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #ff9d45, #ff8f32);
  border-radius: 0 0 3px 3px;
  animation: slideDown 0.3s ease-out;
}

/* Hover effect */
.nav-item:hover:not(.active) {
  color: #c2c9d4;
  background-color: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

/* Pressed effect */
.nav-item:active {
  transform: translateY(1px);
  background-color: rgba(255, 157, 69, 0.15);
}

.nav-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 5px;
  transition: transform 0.3s ease;
}

.nav-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.nav-item.active .nav-label {
  font-weight: 600;
}

/* Animation keyframes */
@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.nav-item.active .nav-icon {
  animation: pulse 2s infinite;
  color: #ff9d45;
}

/* Ripple effect on touch */
.nav-item::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 157, 69, 0.3);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
  opacity: 0;
}

.nav-item:active::after {
  opacity: 1;
  animation: ripple 0.6s ease-out;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@media (min-width: 1440px) {
  .bottom-nav {
    display: none !important;
  }
}

/* Enhanced styles for menu and chat panels */
#left-menu-container {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.3s ease;
}

#left-menu-container.visible {
  transform: translateX(0);
}

#left-menu-container.hidden {
  transform: translateX(-100%);
}

#chat_menu {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 0.3s ease;
}

#chat_menu.active {
  transform: translateX(0) !important;
}

#chat_menu:not(.active) {
  transform: translateX(-100%) !important;
}

/* Mobile-specific overrides */
@media (max-width: 1440px) {
  #left-menu-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 70px !important; /* Account for bottom bar */
    width: 280px !important;
    max-width: 80vw !important;
    z-index: 1001 !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
  }

  #left-menu-container.active {
    transform: translateX(0) !important;
  }

  #left-menu-container.hidden {
    transform: translateX(-100%) !important;
  }

  #chat_menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 70px !important;
    width: 320px !important;
    max-width: 85vw !important;
    z-index: 1001 !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
