.sidebar {
  background: #ffffff;
  border: 1px solid #e4e7ed;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  padding: 12px 0;
  position: sticky;
  top: 96px;
  align-self: start;
}

.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-section {
  border-bottom: 1px solid #f1f2f6;
}

.sidebar-section:last-child {
  border-bottom: none;
}

.sidebar-section__title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: transparent;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.sidebar-section__title:hover {
  color: #0f62fe;
  background: rgba(15, 98, 254, 0.08);
}

.sidebar-section__icon {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f62fe 0%, #32d1ff 100%);
  box-shadow: 0 0 0 4px rgba(15, 98, 254, 0.08);
}

.sidebar-section__label {
  flex: 1;
  text-align: left;
}

.sidebar-section__caret {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.sidebar-section.is-opened .sidebar-section__caret {
  transform: rotate(225deg);
}

.sidebar-submenu {
  list-style: none;
  margin: 0;
  padding: 4px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-item {
  margin: 0;
}

.sidebar-link {
  position: relative;
  display: block;
  padding: 10px 24px 10px 44px;
  font-size: 13px;
  color: #4b5563;
  text-decoration: none;
  border-radius: 8px;
  margin: 2px 12px;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.sidebar-link:hover {
  color: #0f62fe;
  background: rgba(15, 98, 254, 0.08);
  padding-left: 48px;
}

.sidebar-item.is-active .sidebar-link {
  color: #0f62fe;
  font-weight: 600;
  background: rgba(15, 98, 254, 0.12);
  padding-left: 48px;
}

.sidebar-item.is-active .sidebar-link::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f62fe 0%, #32d1ff 100%);
}

.sidebar-link::before {
  position: absolute;
  content: '';
  left: 24px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #d0d7e2;
  transition: background 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.sidebar-link:hover::before {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: linear-gradient(135deg, #0f62fe 0%, #32d1ff 100%);
}

.sidebar-menu:focus-within .sidebar-section__title {
  outline: none;
}

.sidebar-section__title:focus-visible {
  outline: 2px solid #0f62fe;
  outline-offset: 2px;
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .sidebar {
    top: 72px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: static;
    width: 100%;
  }

  .sidebar-section__title {
    padding: 12px 16px;
  }

  .sidebar-link {
    margin: 0 16px;
    padding: 10px 18px 10px 40px;
  }
}
