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

.container {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.enter-chat {
    margin-bottom: 30px;
}

#room-input {
    padding: 10px;
    font-size: 1em;
    width: 300px;
    margin-right: 10px;
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 5px;
}

button {
    padding: 10px 20px;
    font-size: 1em;
    background-color: #ffeb3b;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #fdd835;
}

.recent-chats h2 {
    color: #ccc;
}

#chat-list {
    list-style: none;
    padding: 0;
}

#chat-list li {
    margin: 10px 0;
    cursor: pointer;
    color: #fff;
}

#chat-list li:hover {
    color: #ffeb3b;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
}

.messages {
    flex: 0.8;
    overflow-y: auto;
    padding: 10px;
    border-bottom: 1px solid #555;
}

.message {
    margin-bottom: 10px;
    padding: 5px;
    background-color: #222;
    border-radius: 5px;
    position: relative;
}

.message .user {
    font-weight: bold;
    color: #ffeb3b;
}

.message .time {
    font-size: 0.8em;
    color: #ccc;
}

.delete-btn {
    display: none;
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1em;
}

.message:hover .delete-btn {
    display: block;
}

.delete-btn:hover {
    color: #ff4444;
}

.input-area {
    flex: 0.2;
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 10px;
}

#name-input, #message-input {
    padding: 10px;
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 5px;
}

#message-input {
    flex-grow: 1;
    resize: none;
}

#send-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}