/* Pagination controls styling */
.scholar-scraper-pagination {
    margin: 2rem 0;
    text-align: center;
}

.scholar-scraper-pagination-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.scholar-scraper-page-link {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    min-width: 2.5rem;
    text-align: center;
    text-decoration: none;
    color: #333;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.95rem;
}

.scholar-scraper-page-link:hover:not(.disabled):not(.active) {
    background: #e0e0e0;
    border-color: #bbb;
    color: #000;
}

.scholar-scraper-page-link.active {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
    font-weight: 600;
    cursor: default;
}

.scholar-scraper-page-link.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.scholar-scraper-page-prev,
.scholar-scraper-page-next {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Ellipsis with jump-to-page input (click-toggle) */
.scholar-scraper-page-ellipsis {
    display: inline-block;
    position: relative;
    padding: 0.5rem 0.75rem;
    min-width: 2.5rem;
    text-align: center;
    color: #666;
}

.scholar-scraper-ellipsis-dots {
    cursor: pointer;
    user-select: none;
    font-weight: 600;
}

.scholar-scraper-ellipsis-dots:hover {
    color: #007bff;
}

.scholar-scraper-ellipsis-input-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    z-index: 100;
    background: #fff;
    padding: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.scholar-scraper-ellipsis-input-wrapper.active {
    display: block;
}

.scholar-scraper-page-jump {
    width: 5rem !important;
    max-width: 5rem !important;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #007bff;
    border-radius: 4px;
    font-size: 0.9rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.scholar-scraper-page-jump:focus {
    outline: none;
    border-color: #0056b3;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
    .scholar-scraper-page-link {
        padding: 0.4rem 0.6rem;
        min-width: 2rem;
        font-size: 0.85rem;
    }

    .scholar-scraper-page-jump {
        width: 3.5rem;
        font-size: 0.85rem;
    }
}
