* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chatbot-container {
    height: 500px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}


.chatbot-header {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-title i {
    font-size: 1.5rem;
}

.chatbot-title h2 {
    font-weight: 500;
    font-size: 1.2rem;
}

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

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.message-content {
    padding: 12px 15px;
    border-radius: 18px;
    margin-bottom: 5px;
}

.bot-message .message-content {
    background-color: #f0f0f5;
    border-top-left-radius: 5px;
}

.user-message .message-content {
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    border-top-right-radius: 5px;
}

.message-time {
    font-size: 0.7rem;
    color: #999;
    padding: 0 5px;
}

.chatbot-input {
    padding: 15px 20px;
    border-top: 1px solid #eee;
}

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

#user-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    transition: border-color 0.3s;
}

#user-input:focus {
    border-color: #a777e3;
}

#send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

#send-btn:hover {
    transform: scale(1.05);
}

/* Responsive styles */
@media (max-width: 768px) {
    .chatbot-container {
        width: 90%;
        right: 5%;
        bottom: 80px;
        height: 70vh;
    }

}

@media (max-width: 480px) {
    .chatbot-container {
        width: 95%;
        right: 2.5%;
        height: 65vh;
    }

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