/* Table sorting styles */
.sortable {
    position: relative;
    user-select: none;
}

.sortable:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s ease;
}

.sortable [role="button"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    cursor: pointer;
}

.sortable [role="button"]:hover .fa-sort {
    color: #6B7280 !important;
}

.sortable .sort-icon,
.sortable .fas {
    opacity: 0.6;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.sortable:hover .sort-icon,
.sortable:hover .fas {
    opacity: 1;
}

/* Active sort states */
.sortable [role="button"].text-primary .fas {
    opacity: 1;
    color: var(--kt-primary) !important;
}

/* Animation on hover */
.sortable [role="button"]:hover {
    transform: translateY(-1px);
}

/* Responsive sorting */
@media (max-width: 768px) {
    .sortable [role="button"] {
        padding: 6px 8px;
    }
    
    .sortable .fas {
        font-size: 0.625rem;
    }
}

/* Dark mode support */
.dark .sortable:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark .sortable [role="button"]:hover .fa-sort {
    color: #9CA3AF !important;
}