/**
 * Paginacja GridView – backend: duże, czytelne przyciski (cyfry, prev/next).
 */
.backend-grid-pager-top,
.backend-grid-pager-bottom {
    margin: 1rem 0;
    clear: both;
}

.backend-grid-pager-top .pagination,
.backend-grid-pager-bottom .pagination {
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
    gap: 0.35rem;
}

.backend-grid-pager-top .page-item,
.backend-grid-pager-bottom .page-item {
    margin: 0;
}

.backend-grid-pager-top .page-item .page-link,
.backend-grid-pager-bottom .page-item .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    min-height: 3rem;
    padding: 0.6rem 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    color: #212529;
    background-color: #f8f9fa;
    border: 1px solid #adb5bd;
    border-radius: 8px;
    box-shadow: 0 2px 0 rgba(73, 80, 87, 0.18), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, transform 0.05s ease;
    box-sizing: border-box;
}

.backend-grid-pager-top .page-item .page-link:active,
.backend-grid-pager-bottom .page-item .page-link:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 rgba(73, 80, 87, 0.12), inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.backend-grid-pager-top .page-item.active .page-link,
.backend-grid-pager-bottom .page-item.active .page-link {
    background: linear-gradient(180deg, #0d6efd 0%, #0b5ed7 100%);
    border-color: #0a58ca;
    color: #fff;
    box-shadow: 0 2px 0 #084298, 0 2px 6px rgba(13, 110, 253, 0.35);
    z-index: 1;
    cursor: default;
}

.backend-grid-pager-top .page-item.disabled .page-link,
.backend-grid-pager-bottom .page-item.disabled .page-link {
    opacity: 0.5;
    background-color: #e9ecef;
    border-color: #ced4da;
    color: #868e96;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.backend-grid-pager-top .page-item:not(.disabled):not(.active) .page-link:hover,
.backend-grid-pager-bottom .page-item:not(.disabled):not(.active) .page-link:hover {
    background-color: #fff;
    border-color: #495057;
    color: #000;
    box-shadow: 0 3px 0 rgba(73, 80, 87, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.backend-grid-pager-top .page-item.active .page-link:hover,
.backend-grid-pager-bottom .page-item.active .page-link:hover {
    background: linear-gradient(180deg, #0b5ed7 0%, #0a58ca 100%);
    border-color: #084298;
    color: #fff;
    box-shadow: 0 2px 0 #06357a, 0 2px 8px rgba(13, 110, 253, 0.4);
}

/* Podsumowanie (np. „Wyświetlono 1–20 z 100”) – nieco lepszy kontrast */
.grid-view .summary {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: #343a40;
}
