/* General styles for the search container */

@media (max-width: 830px) {
    .search-container {
        margin-top: 50px;
        min-width: 98% !important;
        margin-left: 0;
        margin-right: 0;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    }

    .search-header {
        gap: 1% !important;
    }

    .toolbar-search {
        padding: 0 !important;
        width: 25% !important;
    }

    .toolbar-search img {
        width: 15px !important;
        height: 15px !important;
        padding-left: 3px !important;
    }

    #toolbar-search-input::placeholder {
        font-size: 12px !important;
    }




}



.search-container {
    margin-top: 1%;
    margin-left: 1%;
    margin-right: 1%;
    display: flex;
    min-width: 43%;
    max-width: 43%;
    flex-direction: column;
    align-items: center;
    background-color: rgba(70, 75, 89, 0.15);
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    color: white;
    text-decoration: none;

}


.searchBtn {
    background-color: rgba(130,140,166,0.49);
    box-sizing: border-box; /* Ensure padding is included in the width */
    border: none; /* Remove default border */
    box-shadow: #ffffff 0px 0px 1px; /* Add a subtle shadow */
    color: #fff; /* White text color */
    padding: 10px 20px; /* Padding for button */
    border-radius: 4px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor for interactivity */
    transition: background-color 0.3s; /* Transition for color change */
}

.toolbar-search {
    display: flex; /* Flex layout for search bar */
    flex-direction: row;
    width: 18%;
    margin-left:10%;
    border: none;
    border-radius: 10px; /* Rounded corners for the input */
    background: rgba(60, 67, 84, 0.24);
    align-items: center;
    padding: 5px;


}
.toolbar-search img {
    width: 20px;
    height: 20px;
}

.searchBtn:hover {
    background-color: rgb(51, 50, 50); /* Darker blue on hover */
}

.search-header {
    display: none; /* Flex layout for header */

    align-items: center; /* Center items vertically */
    flex-direction: row;
    margin-top: 10px;
    margin-bottom: 30px; /* Space below header */
    gap: 20px;
}



#toolbar-search-input {
    width: 80%;
    font-size: 16px; /* Font size for readability */
    background: rgba(0, 0, 0, 0);
    border:none;
    color: white;

}

#toolbar-search-input::placeholder {
    font-size: 14px;
}

#toolbar-search-input:focus {
    border: none;
    outline: none; /* Remove default outline */
}


/* Input field styling */
#searchInput {
    width: 100%;
    min-width: 300px;
    max-width: 400px; /* Limit the width */
    padding: 10px;
    font-size: 16px; /* Font size for readability */
    border: 1px solid #ccc; /* Border color */
    border-radius: 4px; /* Rounded corners for the input */
    transition: border-color 0.3s; /* Transition for border color */
    background: black;
    color: white;
}

#searchInput:focus {
    border-color: #eee8e8; /* Change border color on focus */
    outline: none; /* Remove default outline */
}

.search-results-container {
    max-width: 98%; /* Limit width of results container */
    min-width: 98%;
    text-align: left;
    margin-top: 30px;
    word-wrap: break-word; /* Ensure long words wrap */
    word-break: break-word; /* Alternative for compatibility */
    overflow-wrap: break-word;
    padding-right: 2%;

}

/* Search results container */
.search-results {
    min-width: 100%;
    margin-top: 10px; /* Space above results */
    min-height: 1000px; /* Limit height */
    padding-left: 10px;
    padding-right: 10px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: white;
    word-wrap: break-word; /* Ensure long words wrap */
    word-break: break-word; /* Alternative for compatibility */
    overflow-wrap: break-word;

}

.poll {

    background-color: rgba(0, 0, 0, 0.33);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;

}

/* Individual search result item */
.searchResults div {
    padding: 10px; /* Space inside result items */
    border-bottom: 1px solid #eee; /* Light separator */
    cursor: pointer; /* Pointer cursor for interactivity */
    min-width: 100%;
}

.search-result-title {
    font-size: 18px; /* Larger font size for titles */
    font-weight: bold; /* Bold text for emphasis */
    text-decoration: none;

}

.searchResults div:last-child {
    border-bottom: none; /* Remove border from last item */
}

.searchResults div:hover {
    background-color: #f0f0f0; /* Highlight on hover */
}

