* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
}

.chat-container {
    max-width: 800px;
    margin: 20px auto;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chat-header {
    padding: 20px;
    background-color: #0084ff;
    color: white;
    border-radius: 10px 10px 0 0;
}

.chat-header h1 {
    font-size: 24px;
    text-align: center;
}

.chat-messages {
    height: 400px;
    padding: 20px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    max-width: 70%;
}

.message.received {
    background-color: #e9ecef;
    float: left;
    clear: both;
}

.message.sent {
    background-color: #0084ff;
    color: white;
    float: right;
    clear: both;
}

.message .sender {
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.message .time {
    font-size: 0.8em;
    opacity: 0.7;
}

.chat-input {
    padding: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
}

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

#nameInput {
    width: 150px;
}

#messageInput {
    flex-grow: 1;
}

button {
    padding: 10px 20px;
    background-color: #0084ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0073e6;
} 