.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}



.filter-checkbox {
    cursor: pointer;
}

.filter-checkbox:hover {
    background-color: #f8f9fa;
}

.item-card {
    transition: box-shadow 0.2s ease-in-out;
}

.item-card:hover {
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.text-truncate-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* Improve dropdown appearance */
.dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

.dropdown-item .badge {
    font-size: 0.7rem;
}

/* Better checkbox styling */
.form-check-input {
    cursor: pointer;
}

/* Card hover effects */
.item-card {
    border: 1px solid rgba(0, 0, 0, .125);
    transition: all 0.2s ease-in-out;
}

.item-card:hover {
    border-color: #0d6efd;
}

/* Modal improvements */
.modal-body {
    max-height: calc(100vh - 210px);
    overflow-y: auto;
}

/* Loading overlay */
#results.htmx-request {
    position: relative;
}

#results.htmx-request::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sticky-lg-top {
        position: static !important;
    }

    .modal-dialog {
        margin: 0.5rem;
    }
}

.search-sort-results {
    box-shadow: 0px 1px 2px 0px #8383832b;
    padding: 0.5rem 0.5rem;
    border-top: unset;
    border-right: unset;
    border-left: unset;
    border-radius: 0px;
    z-index: 1021;
    flex-direction: row;
}