/* ============================================================
   Sidebar nav
   ============================================================ */
.sidebar {
  width: 240px;
  background: #f7f8f9;
  border-right: 1px solid #eceef1;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width var(--dur-base) var(--ease-std);
}
.sidebar--collapsed { width: 56px; }

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 14px 16px;
  border-bottom: 1px solid #eceef1;
  height: 56px;
  flex-shrink: 0;
}
.sidebar__brand-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--assh-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--assh-blue), var(--assh-teal));
}
.sidebar__brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: #0c1116;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar__brand-name small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: #6b7480;
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.sidebar--collapsed .sidebar__brand-name { display: none; }
.sidebar--collapsed .sidebar__brand { padding: 14px 12px; }
.sidebar--collapsed .sidebar__brand-mark { margin: 0 auto; }

.sidebar__collapse-btn {
  margin-left: auto;
  width: 24px; height: 24px;
  border-radius: 5px;
  border: 0;
  background: transparent;
  color: #6b7480;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast) var(--ease-std);
}
.sidebar__collapse-btn:hover { background: #eceef1; color: #1a1d21; }
.sidebar--collapsed .sidebar__collapse-btn { display: none; }

.sidebar__nav {
  flex: 1;
  overflow: auto;
  padding: 12px 8px;
}
.sidebar__section {
  margin-bottom: 20px;
}
.sidebar__section-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93a0aa;
  padding: 4px 10px 8px;
}
.sidebar--collapsed .sidebar__section-label { display: none; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  color: #475260;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-std), color var(--dur-fast) var(--ease-std);
  user-select: none;
  position: relative;
}
.nav-item:hover { background: #eceef1; color: #1a1d21; }
.nav-item--active {
  background: #fff;
  color: #0c1116;
  box-shadow: 0 0 0 1px #e3e7eb, 0 1px 2px rgba(0,0,0,.04);
}
.nav-item--active .nav-item__icon { color: var(--accent-color, var(--assh-teal)); }
.nav-item__icon {
  width: 16px; height: 16px;
  color: #6b7480;
  flex-shrink: 0;
  transition: color var(--dur-fast) var(--ease-std);
}
.nav-item__label {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-item__count {
  font-size: 11px;
  font-weight: 600;
  color: #93a0aa;
  background: transparent;
  padding: 1px 6px;
  border-radius: 999px;
  font-family: var(--font-body);
}
.nav-item--active .nav-item__count {
  background: var(--assh-teal-c);
  color: var(--assh-teal-dark);
}
.nav-item__chevron {
  width: 12px; height: 12px;
  color: #93a0aa;
  transition: transform var(--dur-fast) var(--ease-std);
}
.nav-item--expanded .nav-item__chevron { transform: rotate(90deg); }

.sidebar--collapsed .nav-item__label,
.sidebar--collapsed .nav-item__count,
.sidebar--collapsed .nav-item__chevron { display: none; }
.sidebar--collapsed .nav-item { justify-content: center; padding: 7px; }
.sidebar--collapsed .sidebar__subnav { display: none; }

.sidebar__subnav {
  margin: 2px 0 4px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  position: relative;
}
.sidebar__subnav::before {
  content: "";
  position: absolute;
  left: 18px; top: 4px; bottom: 4px;
  width: 1px;
  background: #e0e3e7;
}
.subnav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 12.5px;
  color: #6b7480;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease-std), color var(--dur-fast) var(--ease-std);
  position: relative;
}
.subnav-item:hover { color: #1a1d21; background: #eceef1; }
.subnav-item--active { color: var(--accent-color, var(--assh-teal)); font-weight: 600; }
.subnav-item--active::before {
  content: "";
  position: absolute;
  left: -22px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 16px;
  background: var(--accent-color, var(--assh-teal));
  border-radius: 0 2px 2px 0;
}

.nav-item--soon { opacity: 0.5; cursor: not-allowed; }
.nav-item--soon .nav-item__count { background: transparent; color: #93a0aa; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.05em; }

.sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-top: 1px solid #eceef1;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: background var(--dur-fast) var(--ease-std);
}
.sidebar__user:hover { background: #eceef1; }
.sidebar__user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--assh-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11.5px;
  flex-shrink: 0;
}
.sidebar__user-info { flex: 1; min-width: 0; }
.sidebar__user-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 12.5px;
  color: #0c1116;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar__user-email {
  font-size: 11px;
  color: #6b7480;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar--collapsed .sidebar__user-info { display: none; }
.sidebar--collapsed .sidebar__user { justify-content: center; padding: 12px 8px; }
