body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.chat-container {
    width: 80%;
    height: 80vh;
    background: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}

.chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    flex-direction: column;
}

.message-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 10px;
}

.name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.message {
    max-width: 60%;
    word-wrap: break-word;
    padding: 15px;
    border-radius: 10px;
}

.received-container {
    align-self: flex-start;
}

.sent-container {
    align-self: flex-end;
    align-items: flex-end;
    text-align: right;
}

.received {
    background: #e0e0e0;
    align-self: flex-start;
}

.sent {
    background: #007bff;
    color: white;
    align-self: flex-end;
}

.input-container {
    display: flex;
    padding: 15px;
    border-radius: 10px;
    background: #fff;
}

.input-container input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    font-size: 16px;
}

.input-container button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
