/* Styling for the chat widget */
#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    font-family: Arial, sans-serif;
    z-index: 9999;
}

#chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #007bff;
    color: white;
    font-size: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

#chat-header {
    background-color: #4a96e1;
    color: white;
    padding: 10px 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-header h1 {
    font-size: 16px;
    margin: 0;
    font-weight: bold;
}

#close-popup {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

#chat-box {
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: 400px;
    overflow-y: auto;
}

#messages {
    flex: 1;
    padding: 10px;
    margin-bottom: 10px;
}

.chat-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-bubble {
    background-color: #007bff;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.bot-bubble {
    background-color: #f1f1f1;
    color: black;
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

#chat-footer {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #ddd;
}

#userInput {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    font-size: 14px;
    outline: none;
}

#send-button {
    background-color: #3f96ee;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    margin-left: 10px;
    font-size: 16px;
    cursor: pointer;
}

#send-button:hover {
    background-color: #3488dd;
}

#hint-section {
    padding: 10px;
    background-color: #f8f9fa;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 12px;
    color: #6c757d;
}

#hint-message {
    margin: 0;
    font-style: italic;
}
