Returns the 0-based start index for the current page.
int startIndex(int totalItems) { if (!enabled) return 0; return (currentPage - 1) * pageSize; }