.chatbot-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background-color: var(--color-accent);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-standard), background-color var(--transition-standard);
    z-index: 1000;
}

.chatbot-toggle:hover {
    background-color: var(--color-accent-dark);
    transform: scale(1.1);
}

.chatbot-icon {
    width: 30px;
    height: 30px;
    margin: 0 auto;
}

.chatbot-container {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 650px;
    height: 550px;
    display: none;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.chatbot-container.active {
    display: flex;
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: var(--color-text-strong);
    color: #ffffff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.chatbot-header h3 {
    font-size: 18px;
}

.close-chatbot {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
}

.chatbox {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
    border-bottom: 1px solid #dddddd;
}

.message {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
}

.bot-message {
    align-self: flex-start;
    background-color: #e0f7fa;
    color: var(--color-text-strong);
}

.user-message {
    align-self: flex-end;
    background-color: #ffe0b2;
    color: var(--color-text-strong);
}

.chat-input {
    display: flex;
    gap: 10px;
    padding: 10px;
}

#chat-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #dddddd;
    border-radius: 5px;
    font-size: 14px;
}

.send-chat {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background-color: var(--color-accent);
    color: #ffffff;
    cursor: pointer;
    transition: background-color var(--transition-standard);
}

.send-chat:hover {
    background-color: var(--color-accent-dark);
}

@media (max-width: 768px) {
    .chatbot-toggle {
        right: 15px;
        bottom: 15px;
        width: 50px;
        height: 50px;
    }

    .chatbot-container {
        right: 5%;
        bottom: 70px;
        width: 90%;
        height: 600px;
    }

    .chatbot-header h3 {
        font-size: 16px;
    }

    #chat-input {
        padding: 6px;
        font-size: 12px;
    }

    .send-chat {
        padding: 6px 12px;
        font-size: 12px;
    }

    .message {
        max-width: 80%;
    }
}

@media (max-width: 320px) {
    .chatbot-container {
        height: 350px;
    }

    .chatbox {
        padding: 10px;
    }

    .chat-input {
        padding: 5px;
    }

    .message {
        max-width: 85%;
        padding: 8px 12px;
    }
}
