* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: Inter, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 13px;
  color: #1f2937;
  background: #ffffff;
}

.nav {
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 16px 12px;
  border-right: 1px solid #e5e7eb;
}

.nav__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.nav__logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #0d7ff2;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.nav__title {
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav__body {
  flex: 1;
  min-height: 0;
  padding-top: 12px;
  overflow-y: auto;
}

.nav__section {
  margin: 12px 4px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}

.nav__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 2px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #4b5563;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

.nav__item:hover {
  background: #f3f4f6;
  color: #111827;
}

.nav__item:focus-visible {
  outline: 2px solid #0d7ff2;
  outline-offset: 1px;
}

.nav__item--active,
.nav__item--active:hover {
  background: #e7f2fe;
  color: #0d7ff2;
  font-weight: 600;
}

.nav__icon {
  flex: none;
  width: 18px;
  text-align: center;
}

.nav__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav__empty {
  padding: 8px 4px;
  color: #9ca3af;
}

.nav__footer {
  padding: 12px 4px 0;
  border-top: 1px solid #e5e7eb;
  font-size: 11px;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav__footer:empty {
  display: none;
}
