/* Quick Navigation Links */
.pagination-container .text-muted a {
    color: #007bff !important;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 2px 6px;
    border-radius: 4px;
}

.pagination-container .text-muted a:hover {
    background-color: #007bff;
    color: white !important;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Enhanced container styling */
.pagination-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.pagination-info {
    text-align: center;
    margin-bottom: 15px;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.pagination-info strong {
    color: #007bff;
    font-weight: 600;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.pagination .page-item {
    list-style: none;
    margin: 0;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background: #ffffff;
    color: #007bff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    min-width: 40px;
    height: 40px;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pagination .page-link:hover {
    background: #e3f2fd;
    color: #007bff;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

.pagination .page-item.active .page-link {
    background: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.3);
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd;
    border-color: #dee2e6;
    background: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.pagination .page-item.disabled .page-link:hover {
    background: #f8f9fa;
    color: #adb5bd;
    transform: none;
    box-shadow: none;
}

/* Navigation arrows */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    font-weight: bold;
    font-size: 16px;
    min-width: 45px;
}

/* Ellipsis styling */
.pagination .page-item .page-link:contains("...") {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pagination-container {
        padding: 15px 10px;
        margin: 20px 0;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .pagination .page-link {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 35px;
        height: 35px;
    }
    
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        min-width: 40px;
        font-size: 14px;
    }
    
    .pagination-info {
        font-size: 12px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .pagination-container {
        padding: 12px 8px;
    }
    
    .pagination .page-link {
        padding: 5px 8px;
        font-size: 12px;
        min-width: 32px;
        height: 32px;
    }
    
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        min-width: 35px;
        font-size: 13px;
    }
    
    .pagination-info {
        font-size: 11px;
        margin-bottom: 10px;
    }
}

/* Loading state for pagination */
.pagination-loading {
    opacity: 0.6;
    pointer-events: none;
}

.pagination-loading .page-link {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
} 