/* This styling generated by ChatGPT 9 February 2025 */

.unread {
    font-weight: bold;
  }
  
  .read {
    font-weight: normal;
  }

.chat-container {
    max-width: 500px;
    margin: auto;
    font-family: Arial, sans-serif;
}

.message {
    padding: 10px 15px;
    border-radius: 15px;
    margin: 10px 0;
    width: fit-content;
    max-width: 80%;
}

.sender {
    background-color: #007bff;
    color: white;
    align-self: flex-start;
    text-align: left;
}

.receiver {
    background-color: #e5e5e5;
    color: black;
    align-self: flex-end;
    text-align: left;
}

.chat-container .message.sender {
    margin-left: auto;
}

.chat-container .message.receiver {
    margin-left: 0;
}

/* thread reply styling */
.reply-container {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

#reply-input {
    flex-grow: 1;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    min-height: 40px;
    max-height: 200px; /* Prevents it from growing indefinitely */
    overflow-y: auto; /* Enables scrolling when needed */
    resize: none; /* Prevents manual resizing */
    word-wrap: break-word;
    white-space: pre-wrap; /* Ensures text wraps properly */
}

button {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

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