/* Estilos mejorados para la UI */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #5e0490;
}

/* Estilos para niveles educativos y categorías */
.nivel-checkbox:checked + span {
    color: #5e0490;
    font-weight: 600;
}

.nivel-checkbox:checked ~ span {
    background-color: #5e0490;
    color: white;
}

.categoria-item[data-nivel-id].highlighted {
    border-left: 2px solid #5e0490;
    background-color: #f9f5ff;
}

/* Transición suave para las categorías */
.categoria-item {
    transition: all 0.3s ease;
}

/* Animación de nivel seleccionado */
@keyframes pulse-border {
    0% {
        border-color: #5e0490;
        box-shadow: 0 0 0 0 rgba(94, 4, 144, 0.4);
    }
    70% {
        border-color: #5e0490;
        box-shadow: 0 0 0 4px rgba(94, 4, 144, 0);
    }
    100% {
        border-color: #5e0490;
        box-shadow: 0 0 0 0 rgba(94, 4, 144, 0);
    }
}

.nivel-checkbox:checked + .pulse-animation {
    animation: pulse-border 2s infinite;
}

/* Estilos para noUiSlider */
.noUi-connect {
    background: #5e0490 !important;
}

.noUi-handle {
    border-radius: 50% !important;
    background-color: #5e0490 !important;
    border: 2px solid #fff !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    width: 20px !important;
    height: 20px !important;
    right: -10px !important;
    top: -7px !important;
    cursor: pointer !important;
}

.noUi-handle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

.noUi-handle:active {
    transform: scale(1.2);
}

.noUi-handle:before, .noUi-handle:after {
    display: none !important;
}

.noUi-target {
    border-radius: 4px !important;
    border: none !important;
    background-color: #e2e8f0 !important;
    box-shadow: none !important;
    height: 8px !important;
}

.noUi-horizontal {
    height: 8px !important;
}

.noUi-tooltip {
    display: none !important;
}

/* Texto de los valores mínimo y máximo */
.flex.justify-between.text-sm.text-gray-600 {
    margin-top: 8px; /* Espacio entre el slider y los valores */
}

/* Estilos para la paginación */
.pagination-container nav {
    display: flex;
    justify-content: center;
}

.pagination-container .flex.justify-between.flex-1 {
    display: none; /* Ocultar el texto de paginación */
}

.pagination-container .relative.inline-flex.items-center {
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: #4b5563;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.pagination-container .relative.inline-flex.items-center:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.pagination-container .relative.z-0.inline-flex.shadow-sm {
    border-radius: 0.375rem;
    overflow: hidden;
}

.pagination-container span[aria-current="page"] .relative.inline-flex.items-center {
    background-color: #5e0490;
    color: white;
    border-color: #5e0490;
}

/* Traducción de la paginación */
.pagination div:first-child p {
    position: relative;
    font-size: 0;
}

.pagination div:first-child p::after {
    content: "Mostrando " attr(data-from) " a " attr(data-to) " de " attr(data-total) " resultados";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.875rem;
    color: #4b5563;
} 