/* AnimatedList — vanilla port (React Bits) */

.scroll-list-container,
.animated-list-container {
  position: relative;
  width: 100%;
}

.animated-list-scroll,
.scroll-list {
  overflow-y: auto;
  padding: 4px 2px 8px;
  scroll-behavior: smooth;
}

.animated-list-scroll::-webkit-scrollbar,
.scroll-list::-webkit-scrollbar {
  width: 8px;
}

.animated-list-scroll::-webkit-scrollbar-track,
.scroll-list::-webkit-scrollbar-track {
  background: rgba(8, 12, 20, 0.55);
  border-radius: 4px;
}

.animated-list-scroll::-webkit-scrollbar-thumb,
.scroll-list::-webkit-scrollbar-thumb {
  background: rgba(129, 140, 248, 0.35);
  border-radius: 4px;
}

.animated-list-scroll::-webkit-scrollbar-thumb:hover,
.scroll-list::-webkit-scrollbar-thumb:hover {
  background: rgba(56, 242, 216, 0.45);
}

.animated-list-scroll.no-scrollbar,
.scroll-list.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.animated-list-scroll.no-scrollbar::-webkit-scrollbar,
.scroll-list.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.animated-list-item {
  opacity: 1;
  transform: translateY(10px) scale(0.98);
  transform-origin: center top;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.animated-list-item.is-inview {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.animated-list-top-gradient,
.top-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, rgba(8, 10, 16, 0.92), transparent);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.animated-list-bottom-gradient,
.bottom-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: linear-gradient(to top, rgba(8, 10, 16, 0.92), transparent);
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

html[data-theme="alt"] .animated-list-scroll.logs-list {
  max-height: min(68vh, 720px) !important;
  overflow-y: auto !important;
  gap: 10px;
}

html[data-theme="alt"] .animated-list-scroll.users-list {
  max-height: min(52vh, 520px) !important;
  overflow-y: auto !important;
  gap: 6px;
}

html[data-theme="alt"] .animated-list-scroll.profile-checks-history-list {
  max-height: min(42vh, 420px) !important;
  overflow-y: auto !important;
  gap: 8px;
}

html[data-theme="alt"] .animated-list-container .audit-table-wrap {
  max-height: min(58vh, 520px) !important;
}

html[data-theme="alt"] .animated-list-selected.log-item {
  border-color: rgba(56, 242, 216, 0.42) !important;
  box-shadow:
    inset 0 0 0 1px rgba(56, 242, 216, 0.16),
    0 8px 24px rgba(56, 242, 216, 0.08) !important;
}

html[data-theme="alt"] .animated-list-selected.user-row {
  border-color: rgba(129, 140, 248, 0.45) !important;
  background: rgba(129, 140, 248, 0.1) !important;
}
