.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    height: 400px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    z-index: 1000;
}

.chatbot-container.maximized {
    width: 80vw;
    height: 80vh;
}

.chatbot-header {
    padding: 10px 15px;
    background: var(--primary-color, #007bff);
    color: white;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 0 5px;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
}

.chatbot-input-area {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background: white;
}

.chatbot-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.chatbot-send {
    padding: 8px 15px;
    background: var(--primary-color, #007bff);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.chatbot-send:hover {
    opacity: 0.9;
}

.message {
    margin: 8px 0;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.message-icon {
    font-size: 24px;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.message-bubble {
    flex: 1;
    padding: 8px 12px;
    border-radius: 12px;
}

.user-message {
    flex-direction: row-reverse;
    margin-left: auto;
}

.bot-message {
    margin-right: auto;
}

.user-message .message-bubble {
    background: var(--user-message-bg, #007bff);
    color: var(--user-message-color, #fff);
}

.bot-message .message-bubble {
    background: var(--bot-message-bg, #f1f1f1);
    color: var(--bot-message-color, #000);
}

.message-content {
    margin-bottom: 4px;
}

.message-timestamp {
    font-size: 0.75em;
    opacity: 0.7;
    text-align: right;
}

.user-message .message-timestamp {
    color: rgba(255, 255, 255, 0.8);
}

.bot-message .message-timestamp {
    color: rgba(0, 0, 0, 0.6);
}

/* Optional: Add hover effect on icons */
.message-icon {
    transition: transform 0.2s ease;
}

.message-icon:hover {
    transform: scale(1.1);
} 
/* Keep the chat widget clear of the mobile bottom CTA bar */
@media (max-width: 760px){.chatbot-container{bottom:78px;right:12px}}
