/* ============================================ */
/* TABLE CONTROLS & PAGINATION */
/* ============================================ */

/* Main Control Bar */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

/* Filter Group */
.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.select-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 0.5rem 2rem 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
}

.select-input:hover {
    border-color: var(--primary);
    background-color: rgba(99, 102, 241, 0.1);
}

.select-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-controls .btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.pagination-controls .btn-icon:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.pagination-controls .btn-icon:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .table-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .filter-group {
        flex-wrap: wrap;
    }

    .select-input {
        flex: 1;
    }

    .pagination {
        justify-content: space-between;
        width: 100%;
    }
}