/* Sortable Table Header Styles */
.sortable-header {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease-in-out;
}

.sortable-header:hover {
    background-color: #f8f9fa !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.15s ease-in-out;
}

.sortable-header:active {
    background-color: #e9ecef !important;
    transform: scale(0.98);
    transition: all 0.1s ease-in-out;
}

/* Sort icon styling */
.sort-icon {
    margin-left: 5px;
    opacity: 0.5;
    transition: opacity 0.15s ease-in-out;
}

.sort-icon.active {
    opacity: 1;
}

/* Visual feedback for sorted column */
.sortable-header.sorted {
    background-color: #e7f3ff !important;
    font-weight: 600;
    transition: all 0.15s ease-in-out;
}

/* Font Awesome icon colors for sorting */
.sort-icon.fa-sort-up {
    color: #198754; /* Green for ascending */
}

.sort-icon.fa-sort-down {
    color: #dc3545; /* Red for descending */
}

.sort-icon.fa-sort {
    color: #6c757d; /* Gray for unsorted */
}

/* Responsive styling */
@media (max-width: 768px) {
    .sortable-header {
        font-size: 0.75rem;
    }
    
    .sort-icon {
        font-size: 0.7em;
        margin-left: 3px;
    }
}
