.pagination {
    display: flex;
    flex-wrap: wrap;
    row-gap: 8px;
    column-gap: 4px;
    align-items: center;
    justify-content: center;
}

.pagination .page-item {
    flex-shrink: 0;
}

.pagination .page-item .page-link {
    border: none !important;
    background-color: transparent !important;
    color: #334155;
    font-weight: 500;
    font-size: 0.95rem;
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    box-shadow: none !important;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 6px !important;
}

.pagination .page-item:not(.active) a.page-link[href]:not(.prev):not(.next):hover {
    color: #0088ff;
}

.pagination .page-item.active .page-link,
.pagination .page-link.current,
.pagination .page-item.disabled .page-link {
    color: var(--text-disabled, #94a3b8) !important;
    font-weight: 600;
    cursor: default;
}

.pagination .page-link.prev,
.pagination .page-link.next {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50% !important;
    border: 2px solid currentColor !important;
    padding: 0 !important;
    line-height: 24px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #cbd5e1;
}

.pagination a.page-link.prev[href],
.pagination a.page-link.next[href] {
    cursor: pointer;
    color: #64748b;
}

.pagination .page-link.prev:not([href]),
.pagination .page-link.next:not([href]) {
    cursor: default;
    color: #cbd5e1;
}

.pagination a.page-link.prev[href]:hover,
.pagination a.page-link.next[href]:hover {
    color: #0088ff;
    border-color: #0088ff !important;
    transform: scale(1.08);
}