.chat-room-container {
    display: flex;
    flex-direction: column;
    /* height: 100vh; */
    max-width: 900px;
    margin: 0 auto;
}

#chat-main-header {
    background-color: #000;
    color: white;
    padding: 00px;
    text-align: center;
    font-size: 24px;
    flex-shrink: 0;
    border-bottom: 5px solid white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#chat-header-icons {
    display: flex;
    gap: 10px;
}

#chat-header-icons svg {
    width: 35px;
    height: 35px;
    fill: #ffffff;
    /* Adjust color as needed */
}

.content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.room-list {
    background-color: #f4f4f4;
    width: 20%;
    padding: 0px;
    overflow-y: auto;
    transition: width 0.5s ease;
}

.chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #fff;
    padding: 0px;
    overflow: hidden;

}

.chat-header {
    background-color: #ddd;
    padding: 10px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


#toggle-rooms-list {
    position: absolute;
    left: 10px;
    display: flex;
    gap: 10px;
}

#toggle-rooms-list svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    cursor: pointer;
}

.chat-messages {
    /* flex: 1; */
    overflow-y: auto;
    padding: 10px;
    border: 0px solid #ddd;
    margin-bottom: 10px;
    height: 300px;
    max-height: 300px;
}

.chat-form {
    padding: 10px;
    display: flex;
    align-items: center;
}

.chat-form textarea {
    flex-grow: 1;
    padding: 5px;
    border: 1px solid #ddd;
    resize: vertical;
    /* Allows the user to resize the textarea vertically */
}


.chat-form button {
    padding: 5px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    cursor: pointer;
}

.chat-form button:hover {
    background-color: #0056b3;
}

.message-menu-button {
    cursor: pointer;
}

#send-message {
    align-self: stretch;
    /* Stretches the button to match sibling heights */
}

.chat-image-icon {
    cursor: pointer;
    margin-left: 5px;
}

#room-menu-button {
    cursor: pointer;
}

.room,
.dm-room {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    /* Light grey separator between rooms */
    cursor: pointer;
    /* transition: background-color 0.3s; /* Smooth transition for hover effect */
}

.room:hover,
.dm-room:hover {
    background-color: #e9ecef;
    /* Slightly darker grey for hover effect */
}

.selected-room {
    /* background-color: #0056b3; /* A calming blue background for the selected room 
        color: white; /* White text color for better contrast */
    font-weight: bold;
    /* Make the room name bold */
    border-left: 4px solid #0056b3;
    /* A darker blue border on the left for emphasis */
    padding-left: 16px;
    /* Extra padding to align text after the border */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* A more subtle shadow for depth */
}


.chat-message-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-user-name {
    color: green;
    font-weight: bold;
    font-size: 13px;
}

.decryption-error {
    color: red;
}

/*.dm-enabled:hover {
        cursor: pointer;
    }
        */

.chat-message {
    font-size: 13px;
    padding-top: 0;
    margin-top: 1px;
}

.timestamp {
    font-size: 12px;
    color: #222222;
    margin-left: auto;
    padding-right: 20px;
}

.chat-date {
    color: #007baa;
    font-weight: bold;
    font-size: 15px;
    /* font-style: italic; */
}

#context-menu-user,
#context-menu-message,
#context-menu-room {
    position: absolute;
    z-index: 1000;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
}

#context-menu-user ul,
#context-menu-message ul,
#context-menu-room ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#context-menu-user ul li,
#context-menu-message ul li,
#context-menu-room ul li {
    padding: 5px;
    cursor: pointer;
}

#context-menu-user ul li:hover,
#context-menu-message ul li:hover,
#context-menu-room ul li:hover {
    background-color: #e0e0e0;
}