.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0b6310;
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    background-color: #0b6310;
    transform: scale(1.05);
}

.chatbot-modal {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chatbot-modal.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.chatbot-header {
    padding: 15px 20px;
    background-color: #0b6310;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #f5f7ff;
}

.message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.user-message {
    align-items: flex-end;
}

.bot-message {
    align-items: flex-start;
}

.message-content {
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

.user-message .message-content {
    background-color: #0b6310;
    color: white;
    border-bottom-right-radius: 4px;
}

.bot-message .message-content {
    background-color: #e9ecef;
    color: #212529;
    border-bottom-left-radius: 4px;
}

.chatbot-input-container {
    padding: 10px 15px;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
}

.chatbot-input {
    flex: 1;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 8px 15px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
    max-height: 100px;
    overflow-y: auto;
}

.chatbot-input:focus {
    outline: none;
    border-color: #0b6310;
}

.chatbot-send {
    background: none;
    border: none;
    color: #0b6310;
    margin-left: 10px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-send:hover {
    color: #3a5bd9;
}

.chatbot-send svg {
    width: 20px;
    height: 20px;
}

/* Loading indicator */
.typing-indicator {
    display: flex;
    padding: 10px 15px;
    background-color: #e9ecef;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: #888;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing-animation 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing-animation {
    0%, 80%, 100% { 
        transform: scale(0);
    }
    40% { 
        transform: scale(1);
    }
}

/* Style for markdown content in messages */
.bot-message .message-content p {
    margin-top: 0;
    margin-bottom: 10px;
}

.bot-message .message-content p:last-child {
    margin-bottom: 0;
}

.bot-message .message-content code {
    background-color: #f0f0f0;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 90%;
}

.bot-message .message-content pre {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 10px 0;
}

.bot-message .message-content a {
    color: #0b6310;
    text-decoration: none;
}

.bot-message .message-content a:hover {
    text-decoration: underline;
}

.bot-message .message-content ul,
.bot-message .message-content ol {
    margin-top: 0;
    padding-left: 20px;
}