/* Убираем стандартные эффекты Bootstrap для списков */
.list-group-item-action:hover {
background-color: rgba(255, 255, 255, 0.05) !important;
color: var(--secondary) !important;
opacity: 1 !important;
}

/* Линия вложенности */
.border-start {
border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Поворот стрелочки при раскрытии */
[aria-expanded="true"] .chevron-arrow {
transform: rotate(180deg);
transition: transform 0.2s;
}

.chevron-arrow {
transition: transform 0.2s;
}

/* Убираем синюю обводку при клике */
.list-group-item:focus {
background-color: transparent;
}

.list-group-item-action:focus {
box-shadow: none;
background-color: inherit;
}

/* Фиксированная левая колонка со своим скроллом */
@media (min-width: 992px) {
  .kb-desktop-layout {
    position: relative;
  }

  .kb-sidebar-fixed {
    position: fixed;
    top: 96px;
    width: calc(25% - 1rem);
    max-width: 320px;
    height: calc(100vh - 96px - 24px);
    z-index: 10;
  }

  .kb-sidebar-fixed #kbSidebarDesktop,
  .kb-sidebar-fixed .card {
    height: 100%;
  }

  .kb-sidebar-fixed .card {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .kb-content-area {
    margin-left: auto;
  }
}

@media (min-width: 1200px) {
  .kb-sidebar-fixed {
    width: calc(25% - 1rem);
    max-width: 300px;
  }
}

/* Красивый скроллбар для левой навигации */
@media (min-width: 992px) {
  .kb-sidebar-fixed .card {
    scrollbar-width: thin;
    scrollbar-color: rgba(136, 211, 206, 0.45) rgba(255, 255, 255, 0.04);
  }

  .kb-sidebar-fixed .card::-webkit-scrollbar {
    width: 10px;
  }

  .kb-sidebar-fixed .card::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
    margin: 10px 0;
  }

  .kb-sidebar-fixed .card::-webkit-scrollbar-thumb {
    background: linear-gradient(
      180deg,
      rgba(136, 211, 206, 0.75) 0%,
      rgba(110, 69, 226, 0.65) 100%
    );
    border-radius: 999px;
    border: 2px solid rgba(17, 17, 17, 0.25);
  }

  .kb-sidebar-fixed .card::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
      180deg,
      rgba(136, 211, 206, 0.95) 0%,
      rgba(110, 69, 226, 0.85) 100%
    );
  }

  .kb-sidebar-fixed .card::-webkit-scrollbar-corner {
    background: transparent;
  }
}

@media (min-width: 992px) {
  .kb-sidebar-fixed .card {
    overflow-y: auto;
      overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
  }

  .kb-sidebar-fixed .card:hover {
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  }

  .kb-sidebar-fixed .card::-webkit-scrollbar {
    width: 8px;
  }

  .kb-sidebar-fixed .card::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
  }

  .kb-sidebar-fixed .card::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
  }

  .kb-sidebar-fixed .card:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
  }

  .kb-sidebar-fixed .card:hover::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.28);
  }
}

.btn-link:hover {
    opacity: 0.8;
    color: var(--bs-secondary) !important;
}