﻿/* ==========================================================================
   AJAX SEARCH WRAPPER / LOADING
   ========================================================================== */

#ajaxSearchWrapper {
    position: relative;
    min-height: 180px;
}

#ajaxSearchLoadingOverlay {
    position: absolute;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(2px);
}

    #ajaxSearchLoadingOverlay.is-visible {
        display: flex;
    }

.ajax-search-loading-box {
    min-width: 180px;
    padding: 1rem 1.25rem;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 0 18px rgba(0, 0, 0, 0.10);
    text-align: center;
}


/* ==========================================================================
   PAGINATION SEARCH
   ========================================================================== */

.pagination-search-wrap {
    padding-top: 10px;
    padding-bottom: 10px;
}

.pagination {
    gap: 8px;
    margin-top: 1.5rem;
}

    .pagination .page-item {
        margin: 0;
    }

    .pagination .page-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        height: 44px;
        padding: 0 14px;
        color: #1f2d3d;
        background-color: #fff;
        border: 1px solid #d7dbe2;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        font-size: 15px;
        font-weight: 600;
        line-height: 1;
        text-decoration: none;
        transition: color 0.20s ease, background-color 0.20s ease, border-color 0.20s ease, box-shadow 0.20s ease, transform 0.20s ease;
    }

        .pagination .page-link:hover {
            color: #0d6efd;
            background-color: #f5f8ff;
            border-color: #0d6efd;
            transform: translateY(-1px);
        }

        .pagination .page-item.active .page-link,
        .pagination .page-link.active {
            color: #fff;
            background-color: #0d6efd;
            border-color: #0d6efd;
            box-shadow: 0 6px 14px rgba(13, 110, 253, 0.22);
        }

    .pagination .page-item.disabled .page-link {
        color: #9aa4b2;
        background-color: #f3f4f6;
        border-color: #e5e7eb;
        box-shadow: none;
        cursor: not-allowed;
    }

    .pagination .page-link:focus {
        box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.18);
    }


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 576px) {
    .pagination {
        gap: 6px;
    }

        .pagination .page-link {
            min-width: 40px;
            height: 40px;
            padding: 0 12px;
            border-radius: 8px;
            font-size: 14px;
        }
}
