/* Search Functionality Styles */

/* Search icon container styling */
#search-icon-container {
    position: relative;
}

/* Search icon styling */
#search-icon {
    cursor: pointer;
    padding: 0.5rem 1rem;
}

#search-icon i {
    font-size: 18px;
}

/* Search dropdown menu styling */
#searchLinks {
    position: absolute;
    right: 0;
    width: 300px;
    padding: 10px;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
    z-index: 1000;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Search text input styling */
#search-text {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Suggested links container */
#suggestedLinks {
    margin-top: 10px;
    max-height: 300px;
    overflow-y: auto;
    background-color: white;
}

#suggestedLinks p {
    font-weight: bold;
    margin-bottom: 8px;
}

#suggestedLinks a {
    display: inline-block;
    margin: 5px 0;
    color: #333;
    text-decoration: none;
    padding: 2px 10px 0 0;
}

#suggestedLinks a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Prevent background color change on link click */
#suggestedLinks a:active {
    background-color: transparent;
}

/* Prevent the parent container from changing color */
#suggestedLinks:active {
    background-color: white;
}

/* Show search when active */
#search-icon.show {
    background-color: rgba(0, 0, 0, 0.05);
}

#searchLinks.show,
#searchLinks[style*="visible"] {
    visibility: visible !important;
    opacity: 1 !important;
}