/**
 * Modern Pagination Styles
 *
 * Clean, modern pagination design with smooth transitions and hover effects.
 */

.pagination-container {
    margin: 2rem 0;
}

.pagination {
    gap: 0.25rem;
}

.pagination .page-link {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    color: #0d6efd;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    min-width: 40px;
    text-align: center;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination .page-link:hover {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.25);
}

.pagination .page-link:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-color: #0d6efd;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
    transform: translateY(-1px);
}

.pagination .page-item.disabled .page-link {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Icon-only buttons (First, Previous, Next, Last) */
.pagination .page-link i {
    font-size: 0.9rem;
}

/* Ellipsis styling */
.pagination .page-item.disabled .page-link {
    pointer-events: none;
}

/* Page info text */
.pagination-container .text-muted {
    font-size: 0.875rem;
    letter-spacing: 0.02em;
}

.pagination-container .text-muted strong {
    color: #495057;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .pagination {
        font-size: 0.875rem;
    }

    .pagination .page-link {
        padding: 0.375rem 0.5rem;
        min-width: 35px;
    }

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

/* Animation for page transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pagination-container {
    animation: fadeIn 0.3s ease-in-out;
}

/* Modern glassmorphism effect (optional) */
.pagination-container nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Hover effect for page info */
.pagination-container .text-muted {
    transition: color 0.2s ease-in-out;
}

.pagination-container:hover .text-muted {
    color: #495057 !important;
}
