/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #e9ecef;
    color: #343a40;
}

.container {
    display: flex;
    height: 100vh;
}

/* Room List Styles */
.room-list {
    width: 30%;
    background: #ffffff;
    padding: 20px;
    border-right: 1px solid #dee2e6;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.room-list:hover {
    transform: scale(1.02);
}

.room-list h2 {
    margin-top: 0;
    color: #007bff;
    text-align: center;
}

.room-list ul {
    list-style-type: none;
    padding: 0;
}

.room-list li {
    padding: 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.room-list li:hover {
    background: #007bff;
    color: white;
    transform: translateY(-2px);
}

/* Chat Area Styles */
.chat-area {
    width: 70%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.messages {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    padding: 10px;
    background: #f8f9fa;
    margin-bottom: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

.messages div {
    margin-bottom: 10px;
}

.messages div span {
    font-weight: bold;
    color: #007bff;
}

/* Input and Button Styles */
input[type="text"] {
    width: calc(100% - 100px);
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    margin-top: 10px;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-color: #007bff;
    outline: none;
}

button {
    padding: 10px;
    border: none;
    border-radius: 5px;
    background: #007bff;
    color: white;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .room-list {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }

    .chat-area {
        width: 100%;
    }
}