/* Custom Pagination Styles */
.custom-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
}

.custom-pagination-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.custom-page-item {
    display: inline-block;
}

.custom-page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.custom-page-link:hover {
    color: #1f2937;
    background-color: #f9fafb;
    border-color: #9ca3af;
    text-decoration: none;
}

.custom-page-item.active .custom-page-link {
    color: #ffffff;
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.custom-page-item.active .custom-page-link:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.custom-page-item.disabled .custom-page-link {
    color: #9ca3af;
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    cursor: not-allowed;
    pointer-events: none;
}

.custom-page-link.dots {
    border: none;
    background: transparent;
    cursor: default;
    pointer-events: none;
}

.custom-pagination-info {
    text-align: center;
}

.custom-pagination-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-pagination-list {
        gap: 0.25rem;
    }

    .custom-page-link {
        min-width: 36px;
        height: 36px;
        padding: 0.375rem 0.5rem;
        font-size: 0.8rem;
    }

    /* Hide some page numbers on mobile */
    .custom-pagination-list .custom-page-item:not(.active):not(:first-child):not(:last-child):not(:nth-child(2)):not(:nth-last-child(2)) {
        display: none;
    }
}

@media (max-width: 480px) {
    .custom-page-link {
        min-width: 32px;
        height: 32px;
        padding: 0.25rem 0.375rem;
        font-size: 0.75rem;
    }

    .custom-pagination-info p {
        font-size: 0.8rem;
    }
}
