body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#chat-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 400px;
    max-width: 100%;
    overflow: hidden;
}

#input-section {
    display: flex;
    padding: 10px;
    border-bottom: 1px solid #eee; /* Or remove if no border needed above message input */
    flex-wrap: wrap; /* Allow items to wrap if not enough space */
}

#input-section input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
    margin-bottom: 5px; /* Add some space if they wrap */
}

#input-section button {
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    margin-bottom: 5px; /* Add some space if they wrap */
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#input-section button:hover {
    background-color: #0056b3;
}

#messages-section {
    padding: 10px;
    height: 300px;
    overflow-y: auto;
    border-bottom: 1px solid #eee;
}

#message-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#message-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

#message-list li:last-child {
    border-bottom: none;
}

#message-list .timestamp {
    font-size: 0.8em;
    color: #888;
    margin-left: 10px;
}

#message-list .nickname {
    font-weight: bold;
    color: #333;
}
.delete-button {
    margin-left: 10px;
    padding: 2px 5px;
    font-size: 0.8em;
    color: #fff;
    background-color: #dc3545;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.delete-button:hover {
    background-color: #c82333;
}
.delete-icon {
    margin-left: 10px;
    padding: 2px 5px;
    font-size: 0.9em; /* Slightly larger for an icon */
    color: #fff;
    background-color: #dc3545; /* Red color for delete */
    border: none;
    border-radius: 50%; /* Circular for an 'X' icon often looks good */
    cursor: pointer;
    display: inline-block; /* To allow padding and sizing */
    width: 20px; /* Fixed width */
    height: 20px; /* Fixed height */
    line-height: 20px; /* Center the 'X' vertically */
    text-align: center; /* Center the 'X' horizontally */
    font-weight: bold;
}

.delete-icon:hover {
    background-color: #c82333; /* Darker red on hover */
}