/* General container for the search application */
#homepage-search-app {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh; /* Occupy most of the viewport height */
    /*background-color: #f0f4f8;  Light background */
    font-family: 'Inter', sans-serif;
    /*padding: 20px;*/
    box-sizing: border-box;
}

/* Main search content container */
.search-container {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px;
    text-align: center;
    width: 100%;
    max-width: 700px; /* Max width for the search box */
    box-sizing: border-box;
    position: relative; /* For positioning suggestions list */
}

.search-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
}

.search-subtitle {
    font-size: 1.1rem;
    color: #607d8b;
    margin-bottom: 30px;
}

/* Search input and button wrapper */
.search-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #a7d9f7; /* Light blue border */
    border-radius: 12px; /* Rounded corners */
    overflow: hidden;
    margin-bottom: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: #3498db; /* Darker blue on focus */
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2); /* Focus ring */
}

#toolSearchInput {
    flex-grow: 1;
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
    outline: none;
    color: #34495e;
    background-color: #fcfcfc;
    border-radius: 10px 0 0 10px; /* Match wrapper radius */
}

#toolSearchInput::placeholder {
    color: #95a5a6;
}

.search-button {
    background-color: #3498db; /* Blue button */
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 0 10px 10px 0; /* Match wrapper radius */
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background-color: #2980b9; /* Darker blue on hover */
    transform: scale(1.02); /* Slight scale effect */
}

.search-button:active {
    transform: scale(0.98); /* Slight press effect */
}

.search-icon {
    width: 24px;
    height: 24px;
}

/* Suggestions List */
.suggestions-list {
    list-style: none;
    padding: 0;
    margin: -15px 0 20px 0; /* Adjust margin to overlap a bit with input */
    position: absolute;
    top: calc(100% - 20px); /* Position below the search input */
    left: 0;
    right: 0;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 12px 12px; /* Rounded bottom corners */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    max-height: 250px; /* Limit height for scroll */
    overflow-y: auto;
    z-index: 100; /* Ensure it's above other content */
    text-align: left; /* Align text left */
}

.suggestions-list li {
    padding: 12px 20px;
    font-size: 1.05rem;
    color: #34495e;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.suggestions-list li:hover {
    background-color: #eaf6fd; /* Light blue on hover */
}

.suggestions-list li:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Message Display */
.message-display {
    padding: 12px 20px;
    margin-top: 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    background-color: #f0f8ff; /* Light blue background */
    border: 1px solid #a7d9f7;
    color: #3498db;
    transition: all 0.3s ease;
}

/* Utility class for hiding elements */
.hidden {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-container {
        padding: 30px;
        margin: 15px;
    }
    .search-title {
        font-size: 2.2rem;
    }
    .search-subtitle {
        font-size: 1rem;
    }
    #toolSearchInput {
        padding: 12px 15px;
        font-size: 1rem;
    }
    .search-button {
        padding: 10px 15px;
    }
    .search-icon {
        width: 20px;
        height: 20px;
    }
    .suggestions-list li {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    .message-display {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .search-container {
        padding: 20px;
        margin: 10px;
    }
    .search-title {
        font-size: 1.8rem;
    }
    .search-subtitle {
        font-size: 0.9rem;
    }
    .search-input-wrapper {
        flex-direction: column; /* Stack input and button */
        border-radius: 12px;
    }
    #toolSearchInput {
        border-radius: 10px 10px 0 0; /* Rounded top corners for input */
        width: 100%;
        padding-right: 20px; /* Give space for potential internal icon if needed */
    }
    .search-button {
        width: 100%;
        border-radius: 0 0 10px 10px; /* Rounded bottom corners for button */
        padding: 10px;
    }
    .suggestions-list {
        border-radius: 12px; /* Full rounded corners for list when input is stacked */
        top: calc(100% - 40px); /* Adjust position for stacked input/button */
    }
}
