/* ../../../../../../Views/Site/Sidebar.css */
:root {
  --side-w: 240px;
  --side-w-collapsed: 64px;
}
body:has(.sidebar) {
  --side-offset: var(--side-w);
  padding-left: calc(var(--side-offset) + 24px);
  transition: padding-left 0.2s ease;
}
body:has(.sidebar.collapsed) {
  --side-offset: var(--side-w-collapsed);
}
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  width: var(--side-w);
  overflow: hidden;
  color: var(--side-text);
  background: var(--side-bg);
  border-right: 1px solid var(--side-border);
  transition: width 0.2s ease, transform 0.2s ease;
}
.sidebar.collapsed {
  width: var(--side-w-collapsed);
}
.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: var(--bar-h);
  padding: 0 10px 0 14px;
  border-bottom: 1px solid var(--side-border);
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 0.975rem;
  font-weight: 650;
  color: var(--side-text);
  text-decoration: none;
}
.side-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 750;
  color: #ffffff;
  background: var(--side-folder);
}
.sidebar.collapsed .side-head {
  justify-content: center;
  padding: 0;
}
.sidebar.collapsed .side-brand {
  display: none;
}
.side-body {
  flex: 1;
  padding: 12px 8px 18px;
  overflow-x: hidden;
  overflow-y: auto;
}
.side-group + .side-group {
  margin-top: 4px;
}
.side-group ul {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}
.side-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  color: var(--side-text);
  background: transparent;
  border: none;
  border-radius: 8px;
}
.side-group-head:hover {
  background: var(--side-hover);
}
.side-group-head:active {
  transform: none;
}
.side-folder {
  flex: none;
  width: 16px;
  height: 16px;
  fill: var(--side-folder);
}
.side-chevron {
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: auto;
  stroke: var(--side-text-muted);
  transition: transform 0.15s ease;
}
.side-group.closed .side-chevron {
  transform: rotate(180deg);
}
.sidebar.collapsed .side-group-head {
  height: 1px;
  padding: 0;
  margin: 8px 10px;
  overflow: hidden;
  pointer-events: none;
  background: var(--side-border);
}
.sidebar.collapsed .side-group-head > * {
  display: none;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 36px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--side-text-muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.side-link:hover {
  background: var(--side-hover);
  color: var(--side-text);
}
.side-link.active {
  background: var(--side-active);
  color: var(--side-text);
  font-weight: 600;
}
.side-icon {
  flex: none;
  width: 17px;
  height: 17px;
  stroke: currentColor;
}
.sidebar.collapsed .side-link {
  justify-content: center;
  padding: 10px 0;
}
.sidebar.collapsed .side-icon {
  width: 19px;
  height: 19px;
}
.side-title {
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar.collapsed .side-title {
  display: none;
}
.side-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border: none;
}
.side-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}
.side-toggle:hover {
  color: var(--text);
  background: var(--icon-bg);
}
.sidebar .side-toggle {
  color: var(--side-text-muted);
}
.sidebar .side-toggle:hover {
  color: var(--side-text);
  background: var(--side-hover);
}
.side-toggle:focus {
  outline: none;
}
.side-toggle:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}
.bar-toggle {
  display: none;
}
.side-scrim {
  display: none;
}
.topbar-start {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
@media (max-width: 760px) {
  body:has(.sidebar),
  body:has(.sidebar.collapsed) {
    --side-offset: 0px;
  }
  .bar-toggle {
    display: flex;
    margin-left: -8px;
  }
  .sidebar.collapsed {
    width: var(--side-w);
    transform: translateX(-100%);
  }
  .sidebar.collapsed .side-head {
    justify-content: space-between;
    padding: 0 10px 0 14px;
  }
  .sidebar.collapsed .side-brand {
    display: flex;
  }
  .sidebar.collapsed .side-title {
    display: inline;
  }
  .side-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 11;
    background: rgba(0, 0, 0, 0.5);
  }
}
