/* Navigation identity, grouping and layout containment for the admin workspace. */
.admin-shell {
  grid-template-columns: 270px minmax(0, 1fr);
  overflow: hidden;
}

.admin-sidebar {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 25px 17px 18px;
  background:
    radial-gradient(ellipse at 0 0, #1b5a7638, transparent 42%),
    linear-gradient(165deg, #0c2944, #102f4c 58%, #0d2943);
  scrollbar-color: #315977 transparent;
  scrollbar-width: thin;
}

.admin-sidebar-identity {
  display: grid;
  gap: 13px;
  padding: 0 7px 18px;
  border-bottom: 1px solid #ffffff17;
}

.admin-sidebar-identity .admin-brand {
  min-height: 50px;
  padding: 0;
}

.admin-sidebar-identity .admin-brand img {
  width: min(205px, 100%);
}

.admin-workspace-status {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid #ffffff16;
  border-radius: 999px;
  background: #ffffff09;
  color: #bdd2df;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}

.admin-workspace-status i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #32b653;
  box-shadow: 0 0 0 4px #32b65320;
}

.admin-sidebar > .admin-overline {
  margin: 23px 11px 9px;
  color: #91adbf;
  font-size: 9px;
  letter-spacing: .14em;
}

.admin-sidebar > .admin-nav-group {
  margin: 19px 11px 8px !important;
  padding-top: 15px;
  border-top: 1px solid #ffffff13;
  color: #a8c4d5 !important;
  font-size: 9px !important;
}

.admin-nav-section {
  min-width: 0;
  margin: 3px 0;
}

.admin-nav-toggle {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 31px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #d6e5ee;
  cursor: pointer;
  text-align: left;
  transition: background .22s, border-color .22s, color .22s;
}

.admin-nav-toggle:hover,
.admin-nav-section.is-open .admin-nav-toggle {
  border-color: #ffffff12;
  background: #ffffff0b;
}

.admin-nav-toggle:focus-visible {
  outline: 2px solid #72d47a;
  outline-offset: 2px;
}

.admin-nav-toggle-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid #ffffff14;
  border-radius: 10px;
  background: #ffffff09;
  color: #86b4cc;
  transition: background .22s, color .22s, border-color .22s;
}

.admin-nav-toggle-mark svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-nav-section.is-open .admin-nav-toggle-mark {
  border-color: #32b65335;
  background: #32b65318;
  color: #75d181;
}

.admin-nav-toggle-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-nav-toggle-copy strong {
  overflow: hidden;
  color: #f2f7fa;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-nav-toggle-copy small {
  overflow: hidden;
  color: #91aabb;
  font-size: 8px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-nav-count {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  padding: 0 6px;
  border: 1px solid #ffffff15;
  border-radius: 999px;
  background: #ffffff0a;
  color: #a9c1d0;
  font-size: 9px;
  font-weight: 800;
}

.admin-nav-chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #93adbd;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .28s cubic-bezier(.2,.75,.25,1), stroke .2s;
}

.admin-nav-section.is-open .admin-nav-chevron {
  transform: rotate(180deg);
  stroke: #75d181;
}

.admin-nav-items {
  max-height: 0;
  overflow: hidden;
  padding-left: 10px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: max-height .34s cubic-bezier(.2,.75,.25,1), opacity .2s, visibility 0s linear .34s;
}

.admin-nav-section.is-open .admin-nav-items {
  max-height: 380px;
  padding-top: 5px;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: max-height .34s cubic-bezier(.2,.75,.25,1), opacity .2s, visibility 0s;
}

.admin-nav-section.is-active > .admin-nav-toggle .admin-nav-toggle-mark {
  border-color: #32b65335;
  color: #75d181;
}

.admin-nav-unread {
  margin-left: 0 !important;
}

.admin-nav-item {
  min-width: 0;
  height: 46px;
  margin: 3px 0;
  padding: 0 12px;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #c4d5e0;
  font-size: 12px;
  transition: transform .24s cubic-bezier(.2,.75,.25,1), background .24s, border-color .24s, color .24s, box-shadow .24s;
}

.admin-nav-item svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #91b0c4;
  transition: color .24s, transform .24s;
}

.admin-nav-item:hover {
  transform: translateX(2px);
  border-color: #ffffff0d;
  background: #ffffff0c;
  color: #fff;
}

.admin-nav-item:hover svg {
  color: #d7e9f3;
}

.admin-nav-item.active {
  border-color: #7bcf6a24;
  background: linear-gradient(100deg, #1b4b68, #174260);
  box-shadow: inset 3px 0 #32b653, 0 7px 18px #061b2d24;
  color: #fff;
}

.admin-nav-item.active svg {
  color: #72d47a;
}

.admin-nav-item:focus-visible {
  outline: 2px solid #72d47a;
  outline-offset: 2px;
}

.admin-main,
.admin-content {
  min-width: 0;
}

.admin-main {
  overflow-x: hidden;
}

.sidebar-bottom {
  margin-top: 18px;
}

.admin-online {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #ffffff11;
  border-radius: 11px;
  background: #ffffff08;
}

@media (max-width: 1150px) and (min-width: 721px) {
  .admin-shell {
    grid-template-columns: 245px minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-sidebar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -270px;
    z-index: 2;
    width: 260px;
    padding-top: 22px;
    transition: left .3s cubic-bezier(.2,.75,.25,1);
  }

  .admin-shell.sidebar-open .admin-sidebar {
    left: 0;
  }

  .admin-main {
    min-width: 0;
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-nav-item,
  .admin-nav-item svg,
  .admin-nav-toggle,
  .admin-nav-toggle-mark,
  .admin-nav-chevron,
  .admin-nav-items,
  .admin-sidebar {
    transition-duration: .01ms !important;
  }
}
