nav {
  border-radius: 12px;
  padding: 16px;
  z-index: 1000; 
  position: absolute; 
  bottom: 5px;
  right: 10px;
  background-color: #f9f9f9;
  min-width: 270px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: default;
}

.nav-title-container {
  display: flex;
  justify-content: center;
}

nav h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
  margin-right: 4px;
}

.aqi-scale {
  list-style: none;
  padding: 0;
}

.aqi-scale li {
  display: flex;
  align-items: center;
  background-color: var(--color);
  padding: 6px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aqi-scale li:hover {
  transform: scale(1.02);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
}

.aqi-scale li span {
  font-weight: 600;
}

.info-btn {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-icon {
  height: 15px;
}

.info-btn .tooltip {
    position: absolute;
    bottom: -15px;
    right: 0;
    background-color: rgb(97, 95, 95);
    font-size: 12px;
    color: white;
    padding: 4px 8px;
    border-radius: 2px;
    pointer-events: none;
    transition: opacity 0.2s;
    opacity: 0;
    white-space: nowrap;
}

.info-btn:hover .tooltip {
  opacity: 1;
}

