/* Conversational Search Container */
#conversational-search-container {
    position: absolute;
    top: 73%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99;
    width: 60%;
    max-width: 800px;
    text-align: center;
}

.search-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

#search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    padding: 15px 20px;
    font-size: 18px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Typed.js Cursor */
.typed-cursor {
    color: #09c4ab;
    font-size: 20px;
    opacity: 1;
    animation: typedjsBlink 0.7s infinite;
}

@keyframes typedjsBlink {
    50% { opacity: 0.0; }
}

#search-response {
    position: relative; /* For positioning the close button */
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    color: #e0e0e0;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    display: none; /* Hidden by default */
    max-height: 60vh; /* Limit height to 60% of the viewport height */
    overflow-y: auto; /* Add scroll on overflow */
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s ease-in-out;
}

.close-btn:hover {
    color: #09c4ab; /* Theme color */
}

#search-response ol {
    padding-left: 20px;
}

#search-response li {
    margin-bottom: 10px;
}

#search-response strong {
    color: #75DAB4; /* A highlight color */
}

/* Loader Styles */
.loader {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #09c4ab; /* Theme color */
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1.5s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
