
/* Essential SimpleBar base styles - needed for functionality */
[data-simplebar] {
  position: relative;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-content: flex-start;
  align-items: flex-start;
}

.simplebar-wrapper {
  overflow: hidden;
  width: inherit;
  height: inherit;
  max-width: inherit;
  max-height: inherit;
}

.simplebar-mask {
  direction: inherit;
  position: absolute;
  overflow: hidden;
  padding: 0;
  margin: 0;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  width: auto !important;
  height: auto !important;
  z-index: 0;
}

.simplebar-offset {
  direction: inherit !important;
  box-sizing: inherit !important;
  resize: none !important;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 0;
  margin: 0;
  -webkit-overflow-scrolling: touch;
}

.simplebar-content-wrapper {
  direction: inherit;
  box-sizing: border-box !important;
  position: relative;
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.simplebar-content-wrapper::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.simplebar-content:before,
.simplebar-content:after {
  content: ' ';
  display: table;
}

.simplebar-track {
  z-index: 1;
  position: absolute;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.simplebar-scrollbar {
  position: absolute;
  left: 0;
  right: 0;
  min-height: 10px;
}

.simplebar-scrollbar:before {
  position: absolute;
  content: '';
  background: rgba(0,0,0,.2);
  border-radius: 7px;
  left: 2px;
  right: 2px;
  opacity: 0;
  transition: opacity 0.2s 0.5s linear;
}

.simplebar-scrollbar.simplebar-visible:before {
  opacity: 1;
  transition-delay: 0s;
  transition-duration: 0s;
}

.simplebar-track.simplebar-vertical {
  top: 0;
  width: 11px;
}

.simplebar-track.simplebar-vertical .simplebar-scrollbar:before {
  top: 2px;
  bottom: 2px;
}

.simplebar-track.simplebar-horizontal {
  left: 0;
  height: 11px;
}

.simplebar-track.simplebar-horizontal .simplebar-scrollbar:before {
  left: 2px;
  right: 2px;
}

[data-simplebar].simplebar-dragging .simplebar-content {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

[data-simplebar].simplebar-dragging .simplebar-track {
  pointer-events: all;
}

/* Custom SimpleBar styling class - for specific components */
.custom-scrollbar {
  .simplebar-scrollbar::before {
    background-color: color('interactive');
    opacity: 1;
    transition: opacity 0.2s 0.5s linear;
    border-radius: 0;
  }

  .simplebar-scrollbar.simplebar-visible::before {
    opacity: 1;
    transition-delay: 0s;
    transition-duration: 0s;
  }

  .simplebar-scrollbar:hover::before {
    background-color: color('interactive-hover');
  }

  // Vertical scrollbar styling
  .simplebar-track.simplebar-vertical {
    width: 2px !important;
    background: transparent;
    border-radius: 0;
    right: calc(0px - (var(--spacing-m1) / 2) - 1px) !important; /* Center in container padding */
  }

  .simplebar-track.simplebar-vertical .simplebar-scrollbar {
    width: 2px !important;
    min-height: 10px !important;
  }

  .simplebar-track.simplebar-vertical .simplebar-scrollbar:before {
    width: 2px !important;
    border-radius: 0;
    left: 0;
    right: 0;
  }

  // Horizontal scrollbar styling to match vertical
  .simplebar-track.simplebar-horizontal {
    height: 2px !important;
    background: transparent;
    border-radius: 0;
  }

  .simplebar-track.simplebar-horizontal .simplebar-scrollbar {
    height: 2px !important;
    min-width: 10px !important;
  }

  .simplebar-track.simplebar-horizontal .simplebar-scrollbar:before {
    height: 2px !important;
    border-radius: 0;
    top: 0;
    bottom: 0;
  }
}