/* ===================================================
   공통 페이지네이션 스타일 (CI create_links 호환)
   =================================================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0 0.5rem;
}

.pagination-wrapper a,
.pagination-wrapper strong,
.pagination-wrapper span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    margin: 0 3px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #dee2e6;
    color: #495057;
    background: #fff;
}

.pagination-wrapper a:hover {
    background: #e7f1ff;
    color: #0d6efd;
    border-color: #0d6efd;
}

/* 현재 페이지 (strong 태그) */
.pagination-wrapper strong {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

/* 비활성 링크 (이전/다음 끝에 도달 시) */
.pagination-wrapper span.inactive {
    color: #adb5bd;
    background: #f8f9fa;
    border-color: #e9ecef;
    cursor: default;
}

/* ===================================================
   인피니트 스크롤 로딩 인디케이터
   =================================================== */
.infinite-scroll-sentinel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    min-height: 80px;
}

.infinite-scroll-spinner {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.infinite-scroll-spinner.loading {
    display: flex;
}

.infinite-scroll-spinner .spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.2em;
}

.infinite-scroll-end {
    display: none;
    text-align: center;
    color: #adb5bd;
    font-size: 0.85rem;
    padding: 1rem 0;
}

.infinite-scroll-end.show {
    display: block;
}
