body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f4f4f4;
}

.chatbot-container {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(0);
    opacity: 0;
}

.chatbot-container.show {
    transform: scale(1);
    opacity: 1;
}

.chatbot-header {
    background-color: #4a90e2;
    color: #fff;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 18px;
}

.chatbot-header button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

.chatbot-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

.chatbot-footer {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
}

#user-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
    outline: none;
    transition: border 0.3s ease;
}

#user-input:focus {
    border-color: #4a90e2;
}

#send-message {
    border: none;
    padding: 10px 20px;
    
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#send-message:hover {
    background-color: #357ab8;
}

#chatbot-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4a90e2;
    color: #fff;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

#chatbot-button:hover {
    background-color: #357ab8;
}

.message {
    margin: 10px 0;
    padding: 12px 18px;
    border-radius: 20px;
    max-width: 75%;
    font-size: 14px;
    line-height: 1.4;
}

.bot-message {
    background-color: #e3f2fd;
    color: #333;
    align-self: flex-start;
}

.user-message {
    background-color: #4a90e2;
    color: #fff;
    align-self: flex-end;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e3f2fd;
    color: #333;
    padding: 12px 18px;
    border-radius: 20px;
    max-width: 75%;
    align-self: flex-start;
}

.loading::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #4a90e2;
    animation: loading 1s infinite;
    margin-right: 8px;
}

.loading::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #4a90e2;
    animation: loading 1s infinite;
    animation-delay: 0.5s;
}

@keyframes loading {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}
