/* Pagination Container */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
    gap: 0.5rem;
}

/* Pagination Items */
.pagination li {
    margin: 0;
}

/* Page Links */
.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    color: #333; /* Teks default */
    background-color: #fff;
    border: 1px solid #f1f1f1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Hover State */
.pagination .page-link:hover {
    background-color: #c0392b; /* Merah gelap */
    color: #fff;
    border-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(192, 57, 43, 0.2);
    animation: paginationBounce 0.5s ease;
}

.pagination .page-link:hover {
    transform: scale(1.05) translateY(-2px);
}

.pagination .page-link:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

/* Active Page */
.pagination li.active .page-link {
    background-color: #e74c3c; /* Merah terang */
    color: #fff;
    border-color: #e74c3c;
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

/* Disabled State */
.pagination li.disabled .page-link {
    color: #adb5bd;
    background-color: #f8f9fa;
    border-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Dots Separator */
.pagination li.disabled[aria-disabled="true"] .page-link:not(svg) {
    background: transparent;
    border: none;
    box-shadow: none;
    width: auto;
    padding: 0 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .pagination .page-link {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 0.875rem;
    }
}

/* Icons in Pagination */
.pagination .page-link svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

/* Bounce Animation */
@keyframes paginationBounce {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
    100% {
        transform: translateY(0);
    }
}
