/* Consolidated Tables, Pagination, and UI Elements CSS */

/* --- 1. General Table Utilities --- */
.table-header {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.checkbox-cell {
    width: 40px;
    text-align: center;
}

/* Checkbox styling */
input[type="checkbox"].row-checkbox,
input[type="checkbox"].select-all-checkbox {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #4f46e5; /* Indigo-600 */
}

/* Sortable Headers Behavior */
.sortable-header {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

/* Table Row Transitions */
.table-row {
    transition: background-color 0.2s ease;
}

/* --- 2. Loading Spinner --- */
.loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid currentColor; /* Uses text color context */
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

/* Ensure visibility in different themes if currentColor is problematic */
.text-indigo-600 .loading-spinner { border-top-color: #4f46e5; }
.text-white .loading-spinner { border-top-color: #ffffff; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- 3. Pagination --- */
.pagination-container {
    animation: fadeIn 0.3s ease-in-out;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.pagination-btn {
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- 4. Filter Select Inputs --- */
select.filter-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='[http://www.w3.org/2000/svg](http://www.w3.org/2000/svg)' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* --- 5. Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}