/* =========================================
   MODULE: PAGINATION CONTROLS & SLIDER
   ========================================= */

.lelh-pagination-controls {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 20px; padding-top: 15px; border-top: 1px solid #f0f0f0;
}

.lelh-pagination-controls button {
    background: #fff; border: 1px solid #ddd; padding: 8px 16px; 
    border-radius: 4px; cursor: pointer; font-size: 14px; color: #555;
    transition: all 0.2s; position: relative; min-width: 110px; 
    display: inline-flex; align-items: center; justify-content: center;
}

.lelh-pagination-controls button:hover:not(:disabled) { 
    background: #f7f7f7; color: #000; border-color: #bbb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lelh-pagination-controls button:disabled { 
    opacity: 0.5; cursor: not-allowed; background-color: #f9f9f9;
}

.lelh-page-info { font-weight: 600; font-size: 14px; color: #777; }

/* --- STEPPED SLIDER --- */
.lelh-slider-wrapper {
    margin: 30px 0 20px 0; padding: 15px 0;
    cursor: pointer; user-select: none; touch-action: none; position: relative;
}

/* Thanh ray nền */
.lelh-slider-track {
    position: relative; height: 6px; 
    background: #e0e0e0; border-radius: 3px; width: 100%;
}

/* Phần đã chạy */
.lelh-slider-fill {
    position: absolute; top: 0; left: 0; bottom: 0;
    background: #ffb74d; border-radius: 3px; width: 0%; pointer-events: none;
    transition: width 0.15s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Vạch chia trang (Ticks) */
.lelh-slider-tick {
    position: absolute; top: 50%; transform: translate(-50%, -50%);
    width: 8px; height: 8px; 
    background: #fff; border: 2px solid #bdbdbd;
    border-radius: 50%; 
    z-index: 1;
    transition: background-color 0.15s, border-color 0.15s;
    
    /* [CẬP NHẬT] Cho phép nhận sự kiện chuột để hiện tooltip */
    pointer-events: auto; 
}

.lelh-slider-tick:hover {
    border-color: #fb8c00; /* Hiệu ứng hover nhẹ */
}

/* Tick đã được fill qua (Active) */
.lelh-slider-tick.is-active {
    background: #ffb74d; border-color: #ffb74d;
}

/* Nút kéo (Thumb) */
.lelh-slider-thumb {
    position: absolute; top: 50%; left: 0%;
    width: 22px; height: 22px; 
    background: #fff; border: 3px solid #fb8c00; 
    border-radius: 50%; transform: translate(-50%, -50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); z-index: 2;
    transition: left 0.15s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.lelh-slider-wrapper:hover .lelh-slider-thumb { transform: translate(-50%, -50%) scale(1.1); }
.lelh-slider-thumb.active { background: #ffb74d; transform: translate(-50%, -50%) scale(1.2); }

/* TOOLTIP CHÍNH (Hiện khi kéo/hover wrapper) */
.lelh-slider-tooltip {
    position: absolute; bottom: 35px; left: 0; transform: translateX(-50%);
    background-color: #333; color: #fff; padding: 4px 8px;
    border-radius: 4px; font-size: 12px; font-weight: bold; white-space: nowrap;
    opacity: 0; visibility: hidden; transition: opacity 0.2s;
    pointer-events: none; z-index: 10;
}
.lelh-slider-tooltip::after {
    content: ''; position: absolute; top: 100%; left: 50%; margin-left: -4px;
    border-width: 4px; border-style: solid; border-color: #333 transparent transparent transparent;
}
.lelh-slider-wrapper:hover .lelh-slider-tooltip,
.lelh-slider-wrapper.is-interacting .lelh-slider-tooltip {
    opacity: 1; visibility: visible;
}

/* KEYBOARD HINT OVERLAY */
.lelh-keyboard-hint-overlay {
    position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7); color: #fff; padding: 8px 16px;
    border-radius: 20px; font-size: 13px; pointer-events: none;
    opacity: 0; transition: opacity 0.5s ease; z-index: 5; white-space: nowrap;
}
.lelh-keyboard-hint-overlay.visible { opacity: 1; }