/* Базовые стили пагинации */
.pagination {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
    justify-content: center;
}

.page-item {
    margin: 0 2px;
}

.page-link {
    position: relative;
    display: block;
    padding: 0.5rem 0.75rem;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    color: #007bff;
    cursor: pointer;
}

.page-link:hover {
    z-index: 2;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #fff;
    border-color: #dee2e6;
}

/* Стиль 1: Закругленные углы */
.pagination-rounded .page-link {
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 3px;
}

.pagination-rounded .page-item:first-child .page-link,
.pagination-rounded .page-item:last-child .page-link {
    border-radius: 50% !important;
}

/* Стиль 2: Минималистичный */
.pagination-minimal .page-link {
    background: transparent;
    border: none;
    color: #666;
    font-weight: 500;
    padding: 8px 12px;
}

.pagination-minimal .page-link:hover {
    background: #f8f9fa;
    border-radius: 4px;
}

.pagination-minimal .page-item.active .page-link {
    background: #007bff;
    color: white;
    border-radius: 4px;
}

.pagination-minimal .page-item.disabled .page-link {
    color: #ccc;
    background: transparent;
}

/* Стиль 3: Material Design */
.pagination-material .page-link {
    background: #fff;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0 4px;
    color: #5f6368;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-material .page-link:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
    background: #f8f9fa;
}

.pagination-material .page-item.active .page-link {
    background: #4285f4;
    color: white;
    box-shadow: 0 2px 4px rgba(66,133,244,0.3);
}

.pagination-material .page-item.disabled .page-link {
    box-shadow: none;
    color: #dadce0;
    background: #fff;
}

/* Стиль 4: Современный */
.pagination-modern .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    margin: 0 3px;
    padding: 10px 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-modern .page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pagination-modern .page-item.active .page-link {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.pagination-modern .page-item.disabled .page-link {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    color: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Стиль 5: Темная тема */
.pagination-dark .page-link {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
}

.pagination-dark .page-link:hover {
    background: #4a5568;
    border-color: #718096;
}

.pagination-dark .page-item.active .page-link {
    background: #4299e1;
    border-color: #4299e1;
    color: white;
}

.pagination-dark .page-item.disabled .page-link {
    background: #1a202c;
    color: #718096;
}

/* Стиль 6: Пагинация с точками */
.pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-dots .page-item {
    margin: 0 4px;
}

.pagination-dots .page-link {
    width: 12px;
    height: 12px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: #dee2e6;
    transition: all 0.3s ease;
}

.pagination-dots .page-link:hover {
    background: #adb5bd;
    transform: scale(1.2);
}

.pagination-dots .page-item.active .page-link {
    background: #007bff;
    transform: scale(1.3);
}

.pagination-dots .page-item.disabled .page-link {
    background: #f8f9fa;
}

/* Анимация при переключении */
@keyframes paginationClick {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.page-link:active {
    animation: paginationClick 0.2s ease;
}

/* Адаптивность */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-item {
        margin: 2px;
    }

    .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
    }

    .pagination-rounded .page-link {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    .pagination {
        font-size: 0.85rem;
    }

    .page-link {
        padding: 0.3rem 0.5rem;
        min-width: 32px;
        text-align: center;
    }

    .pagination-dots .page-link {
        width: 10px;
        height: 10px;
    }
}