/* Instructor table drag functionality - only for index page */

/* Add visual indicator for scrollable tables */
.table-responsive::after {
    content: "⟷ Scroll horizontally";
    display: block;
    text-align: center;
    padding: 5px;
    font-size: 12px;
    color: #111c43;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0.8;
}

/* Hide the indicator when not needed */
.table-responsive.no-scroll::after {
    display: none;
}

/* DataTables horizontal scrolling enhancements */
.dataTables_scrollBody {
    overflow-x: auto !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #111c43 #f0f0f0;
}

.dataTables_scrollBody::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.dataTables_scrollBody::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb {
    background-color: #111c43;
    border-radius: 4px;
    border: 2px solid #f0f0f0;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb:hover {
    background-color: #1a2a6c;
}

/* Make sure all columns are visible without plus icon */
.dataTables_wrapper .table {
    width: 100% !important;
    max-width: none !important;
}

/* Add shadow to indicate more content is available */
.dataTables_scrollBody::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 20px;
    background: linear-gradient(to right, transparent, rgba(17, 28, 67, 0.05));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.dataTables_scrollBody:hover::after {
    opacity: 1;
}
