body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    text-align: center;
    margin: 0;
    padding: 0;
}

.chat-container {
    width: 40%;
    margin: 30px auto;
    background: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.chat-header {
    background: #007bff;
    color: white;
    padding: 15px;
    font-size: 20px;
    text-align: center;
}

.chat-box {
    height: 400px;
    overflow-y: auto;
    padding: 10px;
}

.chat-message {
    margin: 10px;
    padding: 10px;
    border-radius: 10px;
    max-width: 70%;
    display: inline-block;
    transition: transform 0.2s ease-in-out;
}

.user-message {
    background: #007bff;
    color: white;
    text-align: right;
    float: right;
    clear: both;
}

.bot-message {
    background: #e0e0e0;
    color: black;
    text-align: left;
    float: left;
    clear: both;
}

.chat-message:hover {
    transform: scale(1.05);
}

.chat-input {
    width: 100%;
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: white;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.chat-input button {
    background: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.chat-input button:hover {
    background: #0056b3;
}
