aside.sticky {
  background: linear-gradient(135deg,
          rgba(255, 255, 255, 0.1) 0%,
          rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

html[data-mode="dark"] aside.sticky {
  background: linear-gradient(135deg,
          rgba(17, 18, 20, 0.95) 0%,
          rgba(32, 33, 35, 0.9) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-mode="light"] aside.sticky {
  background: linear-gradient(135deg, rgb(255 255 255 / 90%) 0%, rgb(243 243 243 / 80%) 100%);
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

aside.sticky:hover {
  transform: translateX(0);
}

aside.sticky .relative.flex.items-center.justify-between.px-4 {
  background: linear-gradient(135deg,
          rgba(245, 138, 6, 0.1) 0%,
          rgba(245, 138, 6, 0.05) 100%);
  border-radius: 16px;
  margin: 0 8px;
  padding: 10px;
  border: 1px solid rgba(245, 138, 6, 0.1);
  transition: 0.3s;
}

aside.sticky .relative.flex.items-center.justify-between.px-4:hover {
  background: linear-gradient(135deg,
          rgba(245, 138, 6, 0.15) 0%,
          rgba(245, 138, 6, 0.08) 100%);
  border-color: rgba(245, 138, 6, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 138, 6, 0.1);
}

aside.sticky .relative.flex.items-center.justify-between.px-4>a {
  overflow: visible;
}

aside.sticky mode-switcher button[type="button"] {
  height: 35px;
  background: linear-gradient(135deg,
          rgba(255, 255, 255, 0.1) 0%,
          rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

aside.sticky mode-switcher button[type="button"]:hover {
  background: linear-gradient(135deg,
          rgba(245, 138, 6, 0.2) 0%,
          rgba(245, 138, 6, 0.1) 100%);
  border-color: rgba(245, 138, 6, 0.3);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(245, 138, 6, 0.2);
}

aside.sticky nav,
aside.sticky .flex.flex-col.gap-4.px-4.mt-auto {
  background: linear-gradient(135deg,
          rgba(255, 255, 255, 0.05) 0%,
          rgba(255, 255, 255, 0.02) 100%);
  border-radius: 16px;
  margin: 0 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

html[data-mode="dark"] aside.sticky nav,
html[data-mode="dark"] aside.sticky .flex.flex-col.gap-4.px-4.mt-auto {
  z-index: -1;
  gap: 7px;
  padding: 12px;
  margin-top: auto;
  background: linear-gradient(135deg,
          rgba(255, 255, 255, 0.03) 0%,
          rgba(255, 255, 255, 0.01) 100%);
  border-color: rgba(255, 255, 255, 0.03);
}

html[data-mode="light"] aside.sticky nav,
html[data-mode="light"] aside.sticky .flex.flex-col.gap-4.px-4.mt-auto {
  z-index: -1;
  padding: 12px;
  margin-top: auto;
  background: rgb(245 245 245);
  border-color: rgba(0, 0, 0, 0.05);
}

aside.sticky nav a,
aside.sticky nav .button {
  border-radius: 12px;
  transition: 0s;
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

aside.sticky nav a:not(.bg-main):hover,
aside.sticky nav .button:not(.bg-main):hover {
  background: rgba(0, 0, 0, 0.4) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

html[data-mode="light"] aside.sticky nav a:not(.bg-main):hover,
html[data-mode="light"] aside.sticky nav .button:not(.bg-main):hover {
  background: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.025) !important;
}

aside.sticky::-webkit-scrollbar {
  width: 6px;
}

aside.sticky::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

aside.sticky::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg,
          rgba(245, 138, 6, 0.6) 0%,
          rgba(245, 138, 6, 0.4) 100%);
  border-radius: 3px;
  border: 1px solid rgba(245, 138, 6, 0.2);
}

aside.sticky::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg,
          rgba(245, 138, 6, 0.8) 0%,
          rgba(245, 138, 6, 0.6) 100%);
}

aside.sticky > div.relative.mx-4{
  margin: 0 8px;
}

aside.sticky > div.relative.mx-4 > button{
  padding-right: 10px;
  padding-left: 10px;
  border-radius: 16px;
}

aside.sticky>*:nth-child(1) {
  animation-delay: 0.1s;
}

aside.sticky>*:nth-child(2) {
  animation-delay: 0.2s;
}

aside.sticky>*:nth-child(3) {
  animation-delay: 0.3s;
}

aside.sticky>*:nth-child(4) {
  animation-delay: 0.4s;
}

@media (max-width: 1024px) {
  aside.sticky {
      background: linear-gradient(135deg,
              rgba(17, 18, 20, 0.98) 0%,
              rgba(32, 33, 35, 0.95) 100%);
      backdrop-filter: blur(25px);
      -webkit-backdrop-filter: blur(25px);
      border-right: none;
      box-shadow:
          0 20px 60px rgba(0, 0, 0, 0.4),
          inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  html[data-mode="light"] aside.sticky {
      background: linear-gradient(135deg,
              rgba(255, 255, 255, 0.98) 0%,
              rgba(248, 250, 252, 0.95) 100%);
      box-shadow:
          0 20px 60px rgba(0, 0, 0, 0.15),
          inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

aside button.flex.items-center.group.w-full.gap-2.p-2.text-start.border-line .whitespace-nowrap {
  max-width: unset;
}

aside button.flex.items-center.group.w-full.gap-2.p-2.text-start.border-line .whitespace-nowrap .text-xs.text-intermediate-content-dimmed {
  font-size: 12px !important;
}

div[x-ref="wsmenu"], div[x-ref="usermenu"]{
  border-radius: 16px;
}

div[x-ref="wsmenu"]{
  right: 0;
  left: 0;
  width: 100%;
}

div[x-ref="usermenu"]{
  right: 0;
  left: -13px;
  width: 220px;
}

div[x-ref="wsmenu"] .text-xs.text-content-dimmed {
  font-size: 12px !important;
}

div[x-ref="wsmenu"] x-avatar {
  background-color: #383a42;
  color: #ffffff;
}

html[data-mode="dark"] div[x-ref="wsmenu"],
html[data-mode="dark"] div[x-ref="usermenu"] {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html[data-mode="light"] div[x-ref="wsmenu"],
html[data-mode="light"] div[x-ref="usermenu"] {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

aside a.button[href="app/billing"] {
  height: 50px;
}

html[data-mode='dark'] aside button.flex.items-center.group.w-full.gap-2.p-2.text-start.border-line {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border-color: rgba(255, 255, 255, 0.03);
}

nav.flex.overflow-y-auto ul.flex.flex-col {
  gap: 8px;
}

@media (min-width: 1024px) {
  nav.flex.overflow-y-auto ul.flex.flex-col {
      gap: 3px;
  }
}

@media (max-height: 750px) {
  nav.flex.overflow-y-auto ul.flex.flex-col {
      gap: 2px;
  }
}

nav[x-ref="menu"] ul{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

nav[x-ref="menu"] a[href="app/workspace"] x-avatar {
  background-color: #383a42;
  color: #ffffff;
}
