/* 페이지네이션 컨트롤 컨테이너 */
#pagination-controls {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 50px;
    display: flex;
    justify-content: center;
}

/* 좌측 다음 페이지 버튼 */
.next-page-btn-wrap {
    margin-bottom: 30px;
}

.btn-next-page {
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 500;
    color: #444141;
    background-color: white;
    border: 1px solid #444141;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-next-page:hover {
    border-color: #338fed;
    color: #338fed;
    background-color: #f8f9fa;
}

.btn-next-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-next-page svg {
    transition: transform 0.3s ease;
    display: block;
    flex-shrink: 0;
}

.btn-next-page svg path {
    transition: fill 0.3s ease;
}

.btn-next-page:hover svg path {
    fill: #338fed;
}

.btn-next-page:hover svg {
    transform: translateX(4px);
}

.btn-next-page:disabled svg path {
    fill: #D6CDCD;
}

/* 우측 페이지 네비게이션 */
.page-navigation {
    width: 280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background-color: #ffffff;
    padding: 8px;
    border-radius: 50px;
}

.btn-page-prev,
.btn-page-next {
    width: 40px;
    height: 40px;
    border: none;
    background-color: #444141;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
}

.btn-page-prev:hover:not(:disabled),
.btn-page-next:hover:not(:disabled) {
    background-color: #a0a0a0;
}

.btn-page-prev svg path,
.btn-page-next svg path {
    fill: white;
}

.btn-page-prev:disabled,
.btn-page-next:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background-color: #d6cdcd;
}

/* 페이지 입력 영역 */
.page-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    flex: 1;
    justify-content: center;
}

.page-input {
    width: 60px;
    height: 32px;
    text-align: center;
    border: 1px solid #e7e7e7;
    background-color: white;
    border-radius: 4px;
    font-size: 14px;
    color: #444141;
    font-weight: 400;
    outline: none;
    transition: box-shadow 0.3s ease;
    padding: 0 8px;
}

.page-input:focus {
    box-shadow: 0 0 0 2px #338fed;
}

.page-input::-webkit-inner-spin-button,
.page-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.page-separator {
    color: #827B7B;
    font-size: 14px;
}

.total-pages {
    color: #827B7B;
    font-size: 14px;
    min-width: 40px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .page-navigation {
        right: 50%;
        transform: translateX(50%);
        bottom: 20px;
    }

    .next-page-btn-wrap {
        margin-bottom: 80px;
    }
}
