/* css/nav.css */
#nav-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}

.nav-bottom {
  display: flex;
  height: var(--nav-height);
  align-items: center;
  justify-content: space-around;
  padding: 0 var(--s-2);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  text-decoration: none;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 500;
  min-width: 48px;
  min-height: 48px;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.15s, background 0.15s, transform 0.1s, opacity 0.1s;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-item svg { width: 22px; height: 22px; }

.nav-item.active {
  color: var(--accent);
  background: var(--accent-subtle);
}

.nav-item:hover { color: var(--accent); }

.nav-item:active {
  opacity: 0.65;
  transform: scale(0.92);
}

/* Badge för notiser */
.nav-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--loss);
  border-radius: 50%;
  border: 2px solid var(--surface);
}

