/* Modern Pagination Styling */
.pagination-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    font-family: 'Poppins', sans-serif;
}

.pagination-info {
    margin-bottom: 15px;
    font-weight: 500;
}

.current-page {
    color: #3498db;
    font-size: 18px;
    font-weight: 700;
}

.total-pages {
    color: #95a5a6;
    font-size: 16px;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    padding: 10px 18px;
    background: #f8f9fa;
    border-radius: 30px;
    color: #34495e;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.prev-btn {
    padding-left: 15px;
}

.next-btn {
    padding-right: 15px;
}

.pagination-btn i {
    font-size: 14px;
}

.prev-btn i {
    margin-right: 8px;
}

.next-btn i {
    margin-left: 8px;
}

.pagination-btn:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #dfe6e9;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}

.pagination-dot:hover {
    background-color: #74b9ff;
    transform: scale(1.2);
}

.pagination-dot.active {
    background-color: #3498db;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

/* Animation for dots */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.pagination-dot.active {
    animation: pulse 1.5s infinite;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .pagination-dots {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        flex-wrap: wrap;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 14px;
    }

    /* Only show max 5 dots on mobile */
    .pagination-dots .pagination-dot:nth-child(n+6) {
        display: none;
    }
}
