/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    height: 100vh;
}

.username-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-color: #1f1f1f;
}

.username-form-container form {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.username-form-container form input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: none;
    background-color: #1e1e1e;
    color: #e0e0e0;
}

.username-form-container form button {
    background-color: #03dac6;
    border: none;
    padding: 10px;
    color: #fff;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.username-form-container form button:hover {
    background-color: #018786;
}

.container {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.sidebar {
    background-color: #1f1f1f;
    padding: 20px;
    width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar h2 {
    margin: 0;
    font-size: 1.5em;
}

.sidebar h3 {
    margin: 20px 0 10px;
    font-size: 1.2em;
}

.user-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.user-list li {
    padding: 5px;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
}

.user-list .status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.user-list .online {
    background-color: #4caf50;
}

.user-list .offline {
    background-color: #f44336;
}

.user-list .admin {
    font-weight: bold;
}

button {
    background-color: #6200ea;
    border: none;
    color: white;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

button:hover {
    background-color: #3700b3;
}

.chat-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background-color: #121212;
    padding: 20px;
}

.messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #333;
    background-color: #1e1e1e;
    border-radius: 5px;
}

.message {
    margin: 5px 0;
}

.message.user1 {
    color: #03dac6;
}

.message.user2 {
    color: #bb86fc;
}

.input-container {
    display: flex;
    border-top: 1px solid #333;
    padding-top: 10px;
    margin-top: 10px;
}

#messageInput {
    flex-grow: 1;
    border: none;
    padding: 10px;
    border-radius: 5px;
    margin-right: 10px;
    background-color: #1e1e1e;
    color: #e0e0e0;
}

#sendMessage, #clearChat {
    background-color: #03dac6;
}

#sendMessage:hover, #clearChat:hover {
    background-color: #018786;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .chat-container {
        width: 100%;
    }
}
