-
+
📊
-
+
Showing {startRecord} to {endRecord} of {totalCount} entries
@@ -717,7 +781,59 @@ const ProjectTracker = () => {
key={pageNum}
onClick={() => !loading && handlePageChange(pageNum)}
disabled={loading}
- className={isActive ? 'active' : ''}
+ style={{
+ background: loading
+ ? (isDarkMode ? 'linear-gradient(45deg, #7f8c8d, #95a5a6)' : 'linear-gradient(135deg, #f8f9fa, #e9ecef)')
+ : isActive
+ ? (isDarkMode ? 'linear-gradient(45deg, #f39c12, #e67e22)' : 'linear-gradient(135deg, #007bff, #0056b3)')
+ : (isDarkMode ? 'linear-gradient(45deg, #34495e, #2c3e50)' : 'linear-gradient(135deg, #ffffff, #f8f9fa)'),
+ border: isActive
+ ? (isDarkMode ? '2px solid #f39c12' : '2px solid #007bff')
+ : (isDarkMode ? '1px solid rgba(52, 152, 219, 0.3)' : '1px solid #dee2e6'),
+ borderRadius: '50%',
+ width: '32px',
+ height: '32px',
+ color: isActive
+ ? '#ffffff'
+ : (isDarkMode ? '#ffffff' : '#495057'),
+ fontSize: '14px',
+ fontWeight: '700',
+ cursor: loading ? 'not-allowed' : 'pointer',
+ transition: 'all 0.3s ease',
+ boxShadow: loading
+ ? 'none'
+ : isActive
+ ? (isDarkMode ? '0 4px 12px rgba(243, 156, 18, 0.4)' : '0 3px 8px rgba(0, 123, 255, 0.3)')
+ : (isDarkMode ? '0 2px 8px rgba(52, 73, 94, 0.3)' : '0 1px 3px rgba(0, 0, 0, 0.1)'),
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center',
+ opacity: loading ? 0.6 : 1
+ }}
+ onMouseEnter={(e) => {
+ if (!loading && !isActive) {
+ e.target.style.background = isDarkMode
+ ? 'linear-gradient(45deg, #3498db, #2980b9)'
+ : 'linear-gradient(135deg, #e9ecef, #f8f9fa)';
+ e.target.style.transform = isDarkMode ? 'scale(1.1)' : 'translateY(-1px) scale(1.05)';
+ e.target.style.boxShadow = isDarkMode
+ ? '0 4px 12px rgba(52, 152, 219, 0.4)'
+ : '0 3px 8px rgba(0, 0, 0, 0.15)';
+ e.target.style.borderColor = isDarkMode ? '#3498db' : '#adb5bd';
+ }
+ }}
+ onMouseLeave={(e) => {
+ if (!loading && !isActive) {
+ e.target.style.background = isDarkMode
+ ? 'linear-gradient(45deg, #34495e, #2c3e50)'
+ : 'linear-gradient(135deg, #ffffff, #f8f9fa)';
+ e.target.style.transform = 'scale(1)';
+ e.target.style.boxShadow = isDarkMode
+ ? '0 2px 8px rgba(52, 73, 94, 0.3)'
+ : '0 1px 3px rgba(0, 0, 0, 0.1)';
+ e.target.style.borderColor = isDarkMode ? 'rgba(52, 152, 219, 0.3)' : '#dee2e6';
+ }
+ }}
>
{pageNum}