#chat-input-wrapper {
    position: relative; 
    width: 60%;
    max-width: 800px;
    margin: 0 auto;
    padding-right: 350px;
}

#chat-input-area {
    display: flex;
    padding: 5px;
    background-color: #fff;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

#chat-input {
    flex: 1;
    margin-right: 10px;
    padding: 10px;
    border: none;
    border-radius: 20px;
    outline: none;
    background-color: transparent;
    font-size: 18px;
}

#chat-box {
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    border-radius: 15px;
    z-index: 2000; 
    height: 600px; 
    overflow-y: auto;
    padding: 15px;   
    display: flex;
    flex-direction: column;
    min-height: 0;
}

#chat-box.hidden {
    display: none;
}

#chat-clear-button {
    position: absolute;
    bottom: 15px;
    right: 20px;
    z-index: 10;
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0.7;
}

#chat-clear-button:hover {
    opacity: 1;
    transform: scale(1.05);
}

.chat-message {
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
    margin-bottom: 12px;
    font-size: 18px;
}
.user-message {
    background-color: #007bff;
    color: white;
    margin-left: auto;
}
.ai-message {
    background-color: #e9e9eb;
    color: #333;
    margin-right: auto;
}
.error-message {
    background-color: #ffdddd;
    color: #d8000c;
    margin-right: auto;
}

#chat-send-button {
    background-color: #FDD100;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

#chat-send-button img {
    height: 18px;
}