 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-size: cover;
    background-position: center;
    transition: background 1s ease-in-out;
    flex-direction: column;
}

/* Chatbot Name */
.chatbot-name {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
    text-align: center;
}

/* Chat Container */
.chat-container {
    width: 90%;
    max-width: 400px;
    height: 500px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Chat Box */
#chat-box {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    max-height: 400px;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
}

/* User & Bot Messages */
.message {
    padding: 8px 12px;
    margin: 8px 0;
    border-radius: 10px;
    max-width: 80%;
}

/* User Messages (Left Side) */
.user {
    background: #6d9dc5;
    align-self: flex-start;
    text-align: left;
}

/* Bot Messages (Right Side) */
.bot {
    background: #282828;
    align-self: flex-end;
    text-align: right;
}

/* Input Box */
.input-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: #111;
}

#user-input {
    flex: 1;
    padding: 12px;
    border: none;
    outline: none;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
}

#send-btn {
    margin-left: 10px;
    padding: 12px 15px;
    background: #0b93f6;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .chat-container {
        width: 95%;
        height: 450px;
    }
}
