/**
 * Swim Lane Scrollbar Styling
 * Enhanced scrolling experience for swim lane views
 */

/* Custom scrollbar styling for swim lanes */
.swim-lane-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.5) transparent;
}

.swim-lane-scroll::-webkit-scrollbar {
    width: 8px;
}

.swim-lane-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.swim-lane-scroll::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.swim-lane-scroll::-webkit-scrollbar-thumb:hover {
    background-color: rgba(156, 163, 175, 0.7);
}

/* Todo lane scrollbar */
.swim-lane-scroll.todo::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
}

.swim-lane-scroll.todo::-webkit-scrollbar-thumb:hover {
    background-color: rgba(156, 163, 175, 0.7);
}

/* In Progress lane scrollbar */
.swim-lane-scroll.in-progress::-webkit-scrollbar-thumb {
    background-color: rgba(59, 130, 246, 0.5);
}

.swim-lane-scroll.in-progress::-webkit-scrollbar-thumb:hover {
    background-color: rgba(59, 130, 246, 0.7);
}

/* Done lane scrollbar */
.swim-lane-scroll.done::-webkit-scrollbar-thumb {
    background-color: rgba(34, 197, 94, 0.5);
}

.swim-lane-scroll.done::-webkit-scrollbar-thumb:hover {
    background-color: rgba(34, 197, 94, 0.7);
}

/* Dark mode scrollbar adjustments */
@media (prefers-color-scheme: dark) {
    .swim-lane-scroll {
        scrollbar-color: rgba(75, 85, 99, 0.5) transparent;
    }
    
    .swim-lane-scroll::-webkit-scrollbar-thumb {
        background-color: rgba(75, 85, 99, 0.5);
    }
    
    .swim-lane-scroll::-webkit-scrollbar-thumb:hover {
        background-color: rgba(75, 85, 99, 0.7);
    }
    
    .swim-lane-scroll.todo::-webkit-scrollbar-thumb {
        background-color: rgba(75, 85, 99, 0.5);
    }
    
    .swim-lane-scroll.todo::-webkit-scrollbar-thumb:hover {
        background-color: rgba(75, 85, 99, 0.7);
    }
    
    .swim-lane-scroll.in-progress::-webkit-scrollbar-thumb {
        background-color: rgba(37, 99, 235, 0.5);
    }
    
    .swim-lane-scroll.in-progress::-webkit-scrollbar-thumb:hover {
        background-color: rgba(37, 99, 235, 0.7);
    }
    
    .swim-lane-scroll.done::-webkit-scrollbar-thumb {
        background-color: rgba(22, 163, 74, 0.5);
    }
    
    .swim-lane-scroll.done::-webkit-scrollbar-thumb:hover {
        background-color: rgba(22, 163, 74, 0.7);
    }
}

/* Ensure proper height constraints for scrolling */
.swim-lane-container {
    height: calc(100vh - 8rem);
    min-height: 400px;
}

.swim-lane-tasks {
    max-height: calc(100vh - 12rem);
    min-height: 200px;
}

/* Smooth scrolling behavior */
.swim-lane-scroll {
    scroll-behavior: smooth;
}

/* Add subtle fade effect at top/bottom when scrolling */
.swim-lane-scroll::before,
.swim-lane-scroll::after {
    content: '';
    position: sticky;
    display: block;
    height: 8px;
    left: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
}

.swim-lane-scroll::before {
    top: 0;
    background: linear-gradient(to bottom, 
        rgba(249, 250, 251, 1) 0%, 
        rgba(249, 250, 251, 0) 100%);
}

.swim-lane-scroll::after {
    bottom: 0;
    background: linear-gradient(to top, 
        rgba(249, 250, 251, 1) 0%, 
        rgba(249, 250, 251, 0) 100%);
}

/* Dark mode fade effects */
@media (prefers-color-scheme: dark) {
    .swim-lane-scroll::before {
        background: linear-gradient(to bottom, 
            rgba(31, 41, 55, 1) 0%, 
            rgba(31, 41, 55, 0) 100%);
    }
    
    .swim-lane-scroll::after {
        background: linear-gradient(to top, 
            rgba(31, 41, 55, 1) 0%, 
            rgba(31, 41, 55, 0) 100%);
    }
}
