/* Styles for the pagination container */
#pagination-controls {
    margin-top: 30px; /* Space above pagination */
    margin-bottom: 30px; /* Space below pagination */
    text-align: center; /* Center the buttons */
    width: 100%; /* Ensure it takes full width */
    overflow-x: auto; /* Allow horizontal scrolling on small screens */
    padding-bottom: 10px; /* Space for scrollbar on mobile */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
}

.pagination-container {
    display: inline-flex;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    background-color: #f8f8f8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    flex-direction: row;
    align-content: center;
    justify-content: center;
    align-items: center;
	
	}

/* Styles for individual pagination buttons */
.pagination-container button {
    padding: 5px 10px; /* Comfortable padding */
    border: 1px solid #ddd; /* Light border */
    background-color: #fff; /* White background */
    color: #333; /* Dark text color */
    font-size: 1rem; /* Standard font size */
    font-weight: 500;
    cursor: pointer; /* Indicate clickable */
    border-radius: 6px; /* Rounded corners for buttons */
    transition: all 0.3s ease; /* Smooth transitions for hover/active states */
    white-space: nowrap; /* Prevent text from wrapping */
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

.pagination-container button:hover:not(:disabled) {
    background-color: #e9e9e9; /* Lighter background on hover */
    border-color: #bbb;
}

.pagination-container button.active {
    background-color: #007bff; /* Blue background for active page */
    color: white; /* White text for active page */
    border-color: #007bff; /* Blue border for active page */
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3); /* More prominent shadow for active */
}

.pagination-container button:disabled {
    cursor: not-allowed; /* Change cursor for disabled buttons */
    opacity: 0.5; /* Dim disabled buttons */
    background-color: #f0f0f0;
    color: #999;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .pagination-container button {
        padding: 5px 10px; /* Slightly smaller padding */
        font-size: 0.9rem; /* Smaller font size */
    }

    .pagination-container {
        gap: 10px; /* Reduce gap between buttons */
    }
}

@media (max-width: 480px) {
    .pagination-container button {
        padding: 5px 10px; /* Even smaller padding */
        font-size: 0.85rem; /* Further reduced font size */
    }

    .pagination-container {
        gap: 5px; /* Smaller gap */
    }
}
/* ... Your existing pagination CSS ... */

.pagination-ellipsis {
    padding: 10px 0px; /* Adjust padding as needed */
    color: #666;
    font-size: 1rem;
    cursor: default;
    user-select: none; /* Prevent selection */
}

/* Ensure ellipsis also has flex-shrink behavior */
.pagination-container .pagination-ellipsis {
    flex-shrink: 0;
}

/* Responsive adjustments for smaller screens (add to your existing media queries) */
@media (max-width: 480px) {
    .pagination-ellipsis {
        padding: 6px 0px;
        font-size: 0.85rem;
    }
}