/* chat-widget.css */

/* Container for the entire chat widget */
#chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 300px;
    font-family: Arial, sans-serif;
}

/* Chat logo that floats at the bottom right */
#chat-logo {
    width: 82px;
    height: 60px;
    background: url('chat-icon.png') no-repeat center center;
    background-size: cover;
    cursor: pointer;
    float: right;
}

/* Chat box hidden by default */
#chat-box {
    width: 100%;
    height: 400px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    position: absolute;
    bottom: 80px;
    right: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
}

/* Chat box header */
#chat-header {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Chat messages container */
#chat-messages {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #f9f9f9;
    border-bottom: 1px solid #ddd;
}

/* Message styling */
.message {
    margin: 5px 0;
    padding: 8px;
    border-radius: 5px;
    width: fit-content;
    max-width: 80%;
}

/* User message */
.message.user {
    background-color: #4CAF50;
    color: white;
    align-self: flex-end;
}

/* AI message */
.message.ai {
    background-color: #eee;
    color: #333;
    align-self: flex-start;
}

/* Loader (thinking animation) */
#chat-loader {
    padding: 10px;
    text-align: center;
    color: gray;
    font-style: italic;
}

/* Hidden state */
.hidden {
    display: none;
}

/* Chat input */
#chat-input {
    padding: 10px;
    border: none;
    border-radius: 0 0 10px 10px;
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
    border-top: 1px solid #ddd;
}

/* Slide open/close animation */
#chat-box.hidden {
    height: 0;
    overflow: hidden;
}