body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}
.container {
    max-width: 1200px; /* Increase max-width */
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow-x: auto; /* Add horizontal scroll for wide content */
}
h1 {
    color: #333;
}
label {
    display: block;
    margin-top: 20px;
}
textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
}
button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
button:hover {
    background-color: #45a049;
}
#loginForm {
    margin-bottom: 20px;
}
#adminContent {
    display: none;
}
#adminTabs {
    margin-bottom: 20px;
}
#adminTabs button {
    background-color: #f1f1f1;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 20px;
    transition: 0.3s;
    font-size: 17px;
}
#adminTabs button:hover {
    background-color: #ddd;
}
#adminTabs button.active {
    background-color: #ccc;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    min-width: 100%;
    width: auto;
}
th, td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}
th {
    background-color: #f2f2f2;
    font-weight: bold;
    cursor: pointer;
}
th:hover {
    background-color: #e0e0e0;
}
tr:nth-child(even) {
    background-color: #f9f9f9;
}
tr:hover {
    background-color: #f5f5f5;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}
.modal-buttons {
    margin-top: 20px;
    text-align: right;
}
.modal-buttons button {
    margin-left: 10px;
}
#messageText {
    width: 100%;
    margin-top: 10px;
}
#conversationsList {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}
#conversationsList a {
    display: block;
    padding: 5px;
    text-decoration: none;
    color: #333;
}
#conversationsList a:hover {
    background-color: #f0f0f0;
}
#conversationDetails {
    border-top: 1px solid #ccc;
    padding-top: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
#conversationDetails img {
    max-width: 100%;
    height: auto;
}

th.sort-asc::after {
    content: " ▲";
}

th.sort-desc::after {
    content: " ▼";
}