/* Animated List Styles */
.scroll-list-container {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}

.scroll-list {
    height: 100%;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
}

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

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

/* Custom scrollbar */
.scroll-list::-webkit-scrollbar {
    width: 6px;
}

.scroll-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.scroll-list::-webkit-scrollbar-thumb {
    background: rgba(138, 100, 255, 0.5);
    border-radius: 3px;
}

.scroll-list::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 100, 255, 0.7);
}

/* Animated item */
.animated-item {
    margin-bottom: 1rem;
    cursor: pointer;
    opacity: 0.4;
    transform: scale(0.9) translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.animated-item.in-view {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.animated-item .item {
    padding: 15px 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.animated-item .item:hover,
.animated-item .item.selected {
    background: var(--hover-bg);
    border-color: rgba(138, 100, 255, 0.5);
    transform: translateX(5px);
}

.animated-item .item-text {
    margin: 0;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
}

/* Gradient overlays */
.top-gradient,
.bottom-gradient {
    position: absolute;
    left: 0;
    right: 0;
    height: 50px;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.top-gradient {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-color) 0%, transparent 100%);
}

.bottom-gradient {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
}

/* Light mode adjustments */
body.light-mode .scroll-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .scroll-list::-webkit-scrollbar-thumb {
    background: rgba(138, 100, 255, 0.4);
}

body.light-mode .scroll-list::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 100, 255, 0.6);
}
