body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.dashboard-container {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
}

.logout {
    display: block;
    text-align: right;
    color: #007bff;
    text-decoration: none;
}

.logout:hover {
    text-decoration: underline;
}

.layout {
    display: flex;
    margin-top: 20px;
}

.senders-column {
    width: 30%;
    border-right: 1px solid #ccc;
    padding-right: 20px;
}

.senders-column h2 {
    margin-top: 0;
}

.senders-column ul {
    list-style: none;
    padding: 0;
}

.senders-column li {
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 5px;
    background-color: #f9f9f9;
}

.senders-column li:hover {
    background-color: #e3f2fd;
}

.messages-column {
    width: 70%;
    padding-left: 20px;
}

.messages-column h2 {
    margin-top: 0;
}

#messages-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
}

.message.received {
    background-color: #e3f2fd; /* Light blue for received messages */
}

.message.sent {
    background-color: #d1f4e0; /* Light green for sent messages */
    text-align: right;
}

.reply-form {
    margin-top: 20px;
}

textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}
/* Existing styles... */

.senders-column li {
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 5px;
    background-color: #f9f9f9;
}

.senders-column li:hover {
    background-color: #e3f2fd;
}

.senders-column li strong {
    font-size: 16px;
    color: #333;
}

.senders-column li .last-message {
    font-size: 14px;
    color: #555;
}

.senders-column li .timestamp {
    font-size: 12px;
    color: #777;
}


/* Existing styles... */

.messages-column {
    width: 70%;
    padding-left: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 80vh; /* Set a fixed height for the messages column */
}

#messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
}

#reply-form {
    position: sticky;
    bottom: 0;
    background-color: #fff;
    padding: 10px;
    border-top: 1px solid #ccc;
    z-index: 10;
}

#reply-form textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#reply-form button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

#reply-form button:hover {
    background-color: #218838;
}