/* Roobet-style persistent left navigation */

:root {
  --rb-sidebar-width: 248px;
  --rb-sidebar-width-collapsed: 76px;
}

html[data-rb-sidebar-collapsed="true"] {
  --rb-sidebar-width: var(--rb-sidebar-width-collapsed);
}

.rb-sidebar-76750dea {
  --rb-sidebar-current: var(--rb-sidebar-width, 248px);
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rb-sidebar-current);
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: #12141c;
  border-right: 1px solid #252836;
  transition: width 0.28s ease, transform 0.28s ease;
}

@media (max-width: 1279px) {
  .rb-sidebar-76750dea {
    width: min(288px, 86vw);
    transform: translateX(-105%);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
  }

  .rb-sidebar-76750dea.is-mobile-open-76750dea {
    transform: translateX(0);
  }
}

.rb-sidebar__backdrop-76750dea {
  display: none;
}

@media (max-width: 1279px) {
  .rb-sidebar__backdrop-76750dea {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 119;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .rb-sidebar__backdrop-76750dea.is-visible-76750dea {
    opacity: 1;
    pointer-events: auto;
  }
}

.rb-sidebar__head-76750dea {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 64px;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #252836;
}

.rb-sidebar__toggle-76750dea {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #1c1f2b;
  color: var(--color-text-light);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.rb-sidebar__toggle-76750dea:hover {
  background: #2a2f42;
  color: var(--color-text);
}

.rb-sidebar__toggle-76750dea svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

html[data-rb-sidebar-collapsed="true"] .rb-sidebar__toggle-76750dea svg {
  transform: rotate(180deg);
}

.rb-sidebar__brand-76750dea {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  text-decoration: none;
  color: var(--color-text);
  overflow: hidden;
}

.rb-sidebar__brand-76750dea img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.rb-sidebar__brand-text-76750dea {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

html[data-rb-sidebar-collapsed="true"] .rb-sidebar__brand-text-76750dea {
  opacity: 0;
  width: 0;
}

.rb-sidebar__scroll-76750dea {
  flex: 1;
  overflow-y: auto;
  padding: 0.65rem 0.55rem 1rem;
  scrollbar-width: thin;
}

.rb-sidebar__group-label-76750dea {
  margin: 0.65rem 0.55rem 0.35rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7287;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

html[data-rb-sidebar-collapsed="true"] .rb-sidebar__group-label-76750dea {
  opacity: 0;
  height: 0;
  margin: 0;
  overflow: hidden;
}

.rb-sidebar__link-76750dea {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.62rem 0.75rem;
  margin: 0.12rem 0;
  border-radius: 10px;
  color: #e5e9f2;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.rb-sidebar__link-76750dea:hover {
  background: rgba(124, 58, 237, 0.14);
  color: #fff;
}

.rb-sidebar__link-76750dea.is-active-76750dea {
  background: linear-gradient(90deg, rgba(88, 28, 135, 0.55), rgba(67, 56, 202, 0.35));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.25);
}

.rb-sidebar__icon-76750dea {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rb-sidebar__icon-76750dea svg {
  width: 22px;
  height: 22px;
  color: #b6bfd4;
}

.rb-sidebar__link-76750dea.is-active-76750dea .rb-sidebar__icon-76750dea svg {
  color: #fbbf24;
}

.rb-sidebar__label-76750dea {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.2s ease, width 0.2s ease;
}

html[data-rb-sidebar-collapsed="true"] .rb-sidebar__label-76750dea {
  opacity: 0;
  width: 0;
}

html[data-rb-sidebar-collapsed="true"] .rb-sidebar__link-76750dea {
  justify-content: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.rb-sidebar__footer-76750dea {
  padding: 0.75rem;
  border-top: 1px solid #252836;
}

.rb-sidebar__cta-76750dea {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1200;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: filter 0.2s ease;
}

.rb-sidebar__cta-76750dea:hover {
  filter: brightness(1.05);
}

html[data-rb-sidebar-collapsed="true"] .rb-sidebar__cta-76750dea {
  font-size: 0;
  padding: 0.65rem;
}

html[data-rb-sidebar-collapsed="true"] .rb-sidebar__cta-76750dea::after {
  content: "→";
  font-size: 1rem;
}

@media (min-width: 1280px) {
  .site-wrapper-76750dea.with-sidebar-76750dea {
    margin-left: var(--rb-sidebar-width, 248px);
  }

  .main-nav-logo-76750dea {
    display: none;
  }
}

@media (min-width: 1280px) {
  .main-nav-content-toggle-76750dea {
    display: none;
  }
}
