/* Table scroll indicators styles */
.table-scroll-indicators {
    position: relative;
}

.table-scroll-shadow {
    position: absolute;
    top: 0;
    bottom: 2.5rem; /* Leave space for scrollbar */
    width: 2rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.table-scroll-shadow--start {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.08), transparent);
}

.table-scroll-shadow--end {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.08), transparent);
}

.table-scroll-bar {
    position: relative;
    height: 2rem;
    margin-top: 0.5rem;
    display: none; /* Hidden by default, shown by JS when scrollable */
}

.table-scroll-bar-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 0.5rem;
    background: #e5e5e5;
    border-radius: 0.25rem;
    transform: translateY(-50%);
}

.table-scroll-bar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #999;
    border-radius: 0.25rem;
    cursor: grab;
    transition: background 0.2s ease;
}

.table-scroll-bar-thumb:hover {
    background: #666;
}

.table-scroll-bar-thumb:active {
    cursor: grabbing;
    background: #444;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .table-scroll-shadow {
        bottom: 2rem;
    }

    .table-scroll-bar {
        height: 1.5rem;
    }

    .table-scroll-bar-track {
        height: 0.375rem;
    }
}
