.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  max-width: 100%;
  width: 100%;
  border-top: 1px solid var(--gray-200);
}

.nav-item {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 24px;
  color: var(--gray-400);
  transition: all var(--transition);
  flex: 1;
  min-width: 0;
  max-width: 200px;
  border-radius: var(--radius);
  position: relative;
}

.nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 0 0 3px 3px;
  transition: width var(--transition);
}

.nav-item:hover {
  color: var(--primary);
  background: rgba(91, 157, 217, 0.05);
}

.nav-item:active {
  transform: scale(0.95);
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active::before {
  width: 30%;
}

.nav-item svg {
  width: 26px;
  height: 26px;
  transition: transform var(--transition);
}

.nav-item.active svg {
  transform: scale(1.1);
}

.nav-label {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .bottom-nav {
    padding: 10px 12px;
  }

  .nav-item {
    padding: 6px 16px;
  }

  .nav-item svg {
    width: 24px;
    height: 24px;
  }
  
  .nav-label {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .bottom-nav {
    padding: 8px 8px;
  }

  .nav-item {
    padding: 5px 8px;
  }

  .nav-item svg {
    width: 22px;
    height: 22px;
  }
  
  .nav-label {
    font-size: 10px;
  }
}

/* Safe area for iOS devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-nav {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}
