/* Enhanced dropdown styling */
.dropdown-menu {
    min-width: 8rem;
}

/* Better focus states for accessibility */
#search-input:focus,
#search-button:focus,
#search-category-dropdown:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .input-group > .form-control {
        width: 60%;
    }
    .input-group > .search-bar-button-container {
        width: 30%;
    }
    .input-group > #search-button {
        width: 10%;
        min-width: 80px;
    }
}

/* Animation for smoother dropdown */
.dropdown-menu {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Better suggestion item hover states */
#suggestions-container .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(2px);
    transition: all 0.2s ease;
}


/* Search container improvements */
.search-container {
    position: relative;
    margin-bottom: 1rem;
}

#suggestions-container {
    max-height: 300px;
    overflow-y: auto;
    margin-top: -1px;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    z-index: 1000;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#suggestions-container a {
    cursor: pointer;
    border-left: none;
    border-right: none;
    padding: 0.75rem 1.25rem;
    transition: all 0.2s ease;
}

#suggestions-container a:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
    transform: translateX(2px);
}

/* Loading state improvements */
#search-spinner {
    margin-right: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .input-group .form-control {
        font-size: 1rem;
    }

    #suggestions-container {
        max-height: 200px;
    }
}


.pagination {
    margin-bottom: 0;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-link {
    color: #007bff;
}
