.chatbot-wrapper {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    width: 350px;
    max-width: 90vw;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.16);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chatbot-container {
    display: flex;
    flex-direction: column;
    height: 450px;
    background-color: #fff;
}

.chatbot-header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbot-message {
    display: flex;
    margin-bottom: 10px;
    align-items: flex-start;
}

.chatbot-message.bot {
    justify-content: flex-start;
}

.chatbot-message.user {
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f1f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 8px;
}

.chatbot-message.bot .message-avatar {
    background-color: var(--primary-color);
    color: white;
}

.chatbot-message.user .message-avatar {
    background-color: var(--secondary-color);
    color: white;
}

.message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.message-sender {
    font-weight: bold;
    font-size: 12px;
    margin-bottom: 4px;
    color: #555;
}

.chatbot-message.bot .message-content {
    background-color: #f1f0f0;
    color: black;
    border-top-left-radius: 4px;
}

.chatbot-message.user .message-content {
    background-color: var(--primary-color);
    color: blue;
    border-top-right-radius: 4px;
    text-align: right;
}

.chatbot-message.user .message-sender {
    color: #e0e0e0;
}

.chatbot-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

.chatbot-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chatbot-send {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.chatbot-send:hover {
    background-color: var(--secondary-color);
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.chatbot-toggle:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

.chatbot-toggle i {
    font-size: 24px;
}

@media (max-width: 576px) {
    .chatbot-wrapper {
        width: 300px;
        bottom: 70px;
    }
    
    .chatbot-container {
        height: 400px;
    }
}
