.sidebar {
  width: 292px;
  padding: 22px 16px 16px;
  background:
    radial-gradient(circle at 20% 0%, rgba(30, 199, 181, 0.08), transparent 28%),
    linear-gradient(180deg, #0b141e 0%, #09111a 58%, #070d14 100%);
  border-right: 1px solid rgba(126, 151, 173, 0.14);
  box-shadow: 18px 0 48px rgba(0, 0, 0, 0.2);
  gap: 18px;
}

.brand-block {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  padding: 10px 10px 14px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(126, 151, 173, 0.12);
}

.brand-block::after {
  content: '';
  position: absolute;
  left: 10px;
  bottom: -1px;
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, #24d2c0, transparent);
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(62, 224, 205, 0.28);
  background:
    linear-gradient(145deg, rgba(31, 105, 105, 0.44), rgba(9, 31, 42, 0.88));
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.05),
    0 12px 30px rgba(0, 0, 0, 0.25);
}

.brand-mark::before {
  width: 40px;
  height: 40px;
}

.brand {
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0.02em;
  color: #f4f8fb;
  line-height: 1.2;
}

.brand::before {
  content: 'OME ';
  color: #32d6c4;
}

.brand-caption {
  margin-top: 5px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #708599;
}

.main-nav,
.sub-nav {
  display: grid;
  gap: 7px;
}

.main-nav {
  padding: 2px 0 0;
}

.nav-button {
  position: relative;
  min-height: 46px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #8ea2b5;
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0.005em;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.nav-button::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #31d4c2;
  opacity: 0;
  transform: scaleY(0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-button:hover {
  color: #dbe7ef;
  background: rgba(133, 169, 193, 0.065);
  border-color: rgba(133, 169, 193, 0.09);
  transform: translateX(2px);
}

.nav-button.active {
  color: #f4fbfc;
  background:
    linear-gradient(90deg, rgba(35, 207, 188, 0.16), rgba(35, 207, 188, 0.04));
  border-color: rgba(44, 213, 194, 0.22);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.025),
    0 8px 24px rgba(0, 0, 0, 0.16);
}

.nav-button.active::before {
  opacity: 1;
  transform: scaleY(1);
}

.nav-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  border-radius: 9px;
  background: rgba(124, 153, 174, 0.07);
  color: #8fa7b9;
  font-size: 15px;
  transition: inherit;
}

.nav-button.active .nav-icon {
  color: #43dfcd;
  background: rgba(47, 211, 192, 0.12);
  box-shadow: inset 0 0 0 1px rgba(47, 211, 192, 0.11);
}

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

.nav-badge {
  min-width: 25px;
  height: 23px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(135, 158, 177, 0.1);
  color: #9eb0bf;
  font-size: 10px;
  font-weight: 760;
}

.nav-button.active .nav-badge {
  color: #72eadc;
  background: rgba(49, 211, 193, 0.12);
}

.sidebar-section {
  position: relative;
  padding: 15px 8px 4px;
  border-top: 1px solid rgba(126, 151, 173, 0.1);
}

.sidebar-section-heading {
  min-height: 25px;
  padding: 0 4px 8px;
  color: #697f92;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sidebar-section-heading small {
  min-width: 32px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(49, 211, 193, 0.08);
  color: #54cbbb;
  text-align: center;
  letter-spacing: 0.02em;
}

.sub-nav .nav-button {
  min-height: 40px;
  border-radius: 11px;
  font-size: 12px;
}

.sub-nav .nav-icon {
  width: 27px;
  height: 27px;
  flex-basis: 27px;
  font-size: 12px;
}

.department-limit {
  margin: 9px 5px 0;
  padding: 9px 10px;
  border: 1px solid rgba(235, 174, 74, 0.15);
  border-radius: 10px;
  background: rgba(235, 174, 74, 0.055);
  color: #b79e78;
  font-size: 10px;
  line-height: 1.45;
}

.sidebar-status {
  position: relative;
  padding: 12px 13px;
  border: 1px solid rgba(127, 151, 171, 0.12);
  border-radius: 13px;
  background: rgba(118, 143, 162, 0.04);
  overflow: hidden;
}

.sidebar-status::after {
  content: '';
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(44, 207, 189, 0.055);
  filter: blur(2px);
}

.status-title {
  position: relative;
  z-index: 1;
  color: #d2dee7;
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.025em;
}

.sidebar-status > span {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  color: #718699;
  font-size: 10px;
}

.user-card {
  min-height: 68px;
  padding: 10px;
  gap: 10px;
  border: 1px solid rgba(128, 153, 174, 0.13);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(126, 153, 173, 0.075), rgba(126, 153, 173, 0.025));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.user-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(52, 214, 195, 0.22);
  background: linear-gradient(145deg, #173f45, #102731);
  color: #6be6d8;
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
}

.user-details {
  min-width: 0;
}

.user-details strong,
.user-details span,
.user-details small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-details strong {
  color: #edf4f8;
  font-size: 11px;
}

.user-details span {
  margin-top: 2px;
  color: #8398aa;
  font-size: 9px;
}

.user-details small {
  margin-top: 4px;
  color: #4fcbbb;
  font-size: 9px;
  font-weight: 650;
}

.sidebar-logout {
  min-width: 52px;
  padding: 7px 8px;
  border-radius: 9px;
  color: #8296a7;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  transition: color 160ms ease, background-color 160ms ease;
}

.sidebar-logout:hover {
  color: #ff9b9b;
  background: rgba(242, 98, 98, 0.08);
}

@media (max-width: 1050px) {
  .sidebar {
    width: 264px;
  }

  .brand-caption {
    display: none;
  }
}

@media (max-width: 760px) {
  .sidebar {
    width: 100%;
    min-height: auto;
    position: relative;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(126, 151, 173, 0.14);
  }

  .brand-block {
    min-height: 58px;
    grid-template-columns: 44px 1fr;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .brand-mark::before {
    width: 32px;
    height: 32px;
  }

  .main-nav {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .sidebar-section,
  .sidebar-status,
  .user-card {
    display: none;
  }
}
