/* Filtros de búsqueda para préstamos - Estilo moderno */
.card-filtros-prestamos {
    background: linear-gradient(135deg, #2d2d2d 0%, #323232 100%);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #3d3d3d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.filtros-titulo-prestamos {
    color: #f3f4f6;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #3d3d3d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    user-select: none;
}

.filtros-titulo-prestamos:hover {
    color: #d4af37;
}

.filtros-titulo-prestamos i {
    color: #d4af37;
    font-size: 1rem;
}

.filtros-titulo-prestamos i:last-child {
    transition: transform 0.3s ease;
}

.card-filtros-prestamos .collapse {
    padding-top: 1rem;
}

.filtros-grid-prestamos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.filtro-item-prestamos {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filtro-label-prestamos {
    color: #d4af37;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.filtro-label-prestamos i {
    font-size: 0.85rem;
}

.filtro-input-prestamos {
    background: #1a1a1a;
    border: 1px solid #3d3d3d;
    color: #f3f4f6;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    width: 100%;
}

.filtro-input-prestamos:focus {
    background: #1f1f1f;
    border-color: #d4af37;
    color: #f3f4f6;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    outline: none;
}

.filtro-input-prestamos::placeholder {
    color: #6b7280;
}

.filtro-estado-container {
    display: flex;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.filtro-estado-container .filtro-item-prestamos {
    width: 100%;
    max-width: 300px;
}

.filtro-limpiar-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.btn-limpiar-prestamos {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.25);
}

.btn-limpiar-prestamos:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
    color: white;
    text-decoration: none;
}

.btn-limpiar-prestamos i {
    font-size: 0.9rem;
}

/* Mensaje de scroll */
.scroll-hint-prestamos {
    background: rgba(212, 175, 55, 0.1);
    border: 1px dashed #d4af37;
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #d4af37;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse-hint 2s ease-in-out infinite;
}

.scroll-hint-prestamos i {
    font-size: 1rem;
}

@keyframes pulse-hint {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Contenedor con scroll para préstamos */
.prestamos-scroll-container {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
    margin-bottom: 1rem;
}

.prestamos-scroll-container .row {
    margin-left: 0;
    margin-right: 0;
}

.prestamos-scroll-container::-webkit-scrollbar {
    width: 4px;
}

.prestamos-scroll-container::-webkit-scrollbar-track {
    background: #1f1f1f;
    border-radius: 10px;
}

.prestamos-scroll-container::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 10px;
}

.prestamos-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #b8942c;
}

/* Paginación personalizada - Préstamos */
.pagination-custom-prestamos {
    background: linear-gradient(135deg, #2d2d2d 0%, #323232 100%);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #3d3d3d;
}

.pagination-info-prestamos {
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.pagination-buttons-prestamos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.btn-pagination-prestamos {
    background: linear-gradient(135deg, #3d3d3d, #2d2d2d);
    color: #d4af37;
    border: 1px solid #4d4d4d;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-pagination-prestamos:hover:not(:disabled) {
    background: linear-gradient(135deg, #d4af37, #b8942c);
    color: #1a1a1a;
    border-color: #d4af37;
    transform: scale(1.1);
    text-decoration: none;
}

.btn-pagination-prestamos:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-indicator-prestamos {
    color: #f3f4f6;
    font-weight: 700;
    font-size: 1rem;
    min-width: 70px;
    text-align: center;
}

/* Responsive */
@media (max-width: 767px) {
    .card-filtros-prestamos {
        padding: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .filtros-titulo-prestamos {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .filtros-titulo-prestamos i {
        font-size: 0.9rem;
    }

    .filtros-grid-prestamos {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .filtro-label-prestamos {
        font-size: 0.7rem;
    }

    .filtro-input-prestamos {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .filtro-estado-container .filtro-item-prestamos {
        max-width: 100%;
    }

    .btn-limpiar-prestamos {
        font-size: 0.8rem;
        padding: 0.45rem 1rem;
    }

    .scroll-hint-prestamos {
        font-size: 0.75rem;
        padding: 0.4rem;
    }

    .prestamos-scroll-container {
        max-height: calc(100vh - 280px);
    }

    .pagination-custom-prestamos {
        padding: 0.75rem;
    }

    .pagination-info-prestamos {
        font-size: 0.75rem;
        margin-bottom: 0.6rem;
    }

    .btn-pagination-prestamos {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .page-indicator-prestamos {
        font-size: 0.85rem;
        min-width: 60px;
    }
}
