/* App-Style Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}

.bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 10px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #757575;
  transition: all 0.3s ease;
  padding: 6px 8px;
  border-radius: 12px;
  min-width: 50px;
  position: relative;
}

.bottom-nav-item.active {
  color: #05501a;
  background: rgba(5, 80, 26, 0.1);
}

.bottom-nav-item:hover {
  color: #05501a;
  background: rgba(5, 80, 26, 0.05);
}

.nav-icon {
  position: relative;
  margin-bottom: 2px;
}

.nav-icon i {
  font-size: 20px;
  display: block;
}

.nav-label {
  font-size: 10px;
  font-weight: 500;
  text-align: center;
  line-height: 1;
}

.nav-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #e74c3c;
  color: white;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid white;
}

/* Add bottom padding to body to prevent content overlap */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 70px;
  }
}

/* Hide badges when count is 0 */
.nav-badge:empty,
.nav-badge[data-count="0"] {
  display: none;
}