/* Styling for the search results container */
#search-results-container {
    display: none; /* Hide the container by default */
    position: absolute; /* Make the container position absolute */
    z-index: 9999; /* Ensure it stays on top */
    background: white; /* Background color */
    width: 100%; /* Make it the same width as the search bar */
    max-height: 300px; /* Limit height */
    overflow-y: auto; /* Allow scrolling if results overflow */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add some shadow */
    font-family: "Roboto";
}

#search-results-container::-webkit-scrollbar {
    display: none;  
}

/* Styling for each search result item */
.ajax-search-results {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ajax-search-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ajax-search-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Image styling */
.ajax-search-image {
    margin-right: 10px;
}

.ajax-search-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
}

/* Text information styling */
.ajax-search-info {
    flex: 1;
}

.ajax-search-info h4 {
    font-size: 16px;
    margin: 0;
    padding: 0;
    font-weight: 600;
}

.ajax-search-info a {
    color: #0073e6;
    text-decoration: none;
}

.ajax-search-info a:hover {
    text-decoration: underline;
}

.search-field {
    transition: background-color 0.3s ease; /* Smooth transition for background color */
}

.search-wrapper {
    display: inline-block;
    width: 100%; /* Ensures full width alignment control works */
}

.search-submit {
    background-color: rgba(0, 0, 0, 0.5); /* For example, button with some transparency */
}