/* Sidebar nav — nhóm mở/đóng kiểu Twilio */

.nav-section {
  margin-bottom: 4px;
}

.nav-section-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255,255,255,0.92);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.nav-section-toggle:hover {
  background: rgba(255,255,255,0.08);
}

.nav-section.is-open > .nav-section-toggle,
.nav-section.has-active > .nav-section-toggle {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
}

.nav-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
}

.nav-section-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nav-section-label {
  flex: 1;
  min-width: 0;
}

.nav-chevron {
  font-size: 14px;
  line-height: 1;
  color: rgba(255,255,255,0.5);
  transition: transform 0.15s;
}

.nav-section.is-open .nav-chevron {
  transform: rotate(90deg);
}

.nav-section-items {
  display: none;
  padding: 4px 0 6px 8px;
}

.nav-section.is-open .nav-section-items {
  display: block;
}

.nav-sub {
  display: block;
  width: 100%;
  margin: 1px 0;
  padding: 7px 10px 7px 28px;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: rgba(255,255,255,0.78);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.nav-sub:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.nav-sub:focus {
  outline: none;
}

.nav-sub:focus-visible {
  outline: 2px solid rgba(255,255,255,0.45);
  outline-offset: 1px;
}

.nav-sub.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 600;
}
