/* Laravel Pagination Styles with Tailwind CSS */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    width: 100%;
    text-align: center;
}

.pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.pagination .page-link:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #e2e6ed2c;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.pagination .page-item.active .page-link {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3), 0 2px 4px -1px rgba(37, 99, 235, 0.2);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .page-link:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Previous/Next buttons */
.pagination .page-link[rel="prev"],
.pagination .page-link[rel="next"] {
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .pagination {
        gap: 0.25rem;
    }

    .pagination .page-link {
        min-width: 2rem;
        height: 2rem;
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .pagination .page-link {
        color: #aecfffac;
        background-color: #f1f1f1;
        border-color: #fdfdfd;
    }

    .pagination .page-link:hover {
        background-color: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }

    .pagination .page-item.active .page-link {
        background-color: #3b82f6;
        border-color: #3b82f6;
    }
}
