/* Fixed Table Scrollbar Styles */
.fixed-table-container {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.fixed-table-content {
    overflow-y: auto;
    margin-bottom: 10px;
}

.fixed-table-scrollbar {
    position: fixed;
    bottom: 20px;
    left: var(--sidebar-width);
    right: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    height: 12px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.fixed-table-scrollbar:hover {
    height: 14px;
}

.fixed-table-scrollbar::-webkit-scrollbar {
    height: 8px;
}

.fixed-table-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.fixed-table-scrollbar::-webkit-scrollbar-thumb {
    background: #b8b9be;
    border-radius: 10px;
}

.fixed-table-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #8c8d91;
}

.fixed-table-scrollbar .table-scroll-content {
    height: 1px;
}

@media (max-width: 991.98px) {
    .fixed-table-scrollbar {
        left: 20px;
    }
}

/* Make sure tables don't show their own horizontal scrollbar */
.fixed-table-container .table-responsive {
    overflow-x: hidden !important;
}

/* Add a small indicator for tables with horizontal scroll */
.table-responsive {
    position: relative;
}

.table-responsive::after {
    content: '';
    display: none;
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: rgba(99, 102, 241, 0.8);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9.29 15.88L13.17 12 9.29 8.12a.996.996 0 111.41-1.41l4.59 4.59c.39.39.39 1.02 0 1.41L10.7 17.3a.996.996 0 01-1.41 0c-.38-.39-.39-1.03 0-1.42z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.table-responsive.has-overflow::after {
    display: block;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    100% { opacity: 0.8; }
} 