/* style.css */
body { font-family: Arial, sans-serif; }
#sidebar { width: 250px; float: left; border-right: 1px solid #ccc; padding: 10px; height: 100vh; overflow-y: auto; }
#chat { padding: 10px; }
.message { margin-bottom: 10px; }
.user-message { text-align: left; }
.operator-message { text-align: right; }
.user-name { font-weight: bold; }
.new-messages { color: red; }
.read-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: green;
    border-radius: 50%;
    position: relative;
    margin-left: 5px;
}
.read-icon::after {
    content: '✓';
    color: white;
    font-size: 12px;
    position: absolute;
    top: 2px;
    left: 2px;
    text-align: center;
    width: 12px;
    height: 12px;
}
.logout-button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px 15px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.logout-button:hover {
    background-color: #d32f2f;
}
.assigned-chat {
    background-color: #f0f0f0;
}
.assigned-by {
    font-size: 12px;
    color: #555;
    margin-left: 5px;
}
.sort-controls {
    margin-bottom: 10px;
}
.sort-controls label {
    margin-right: 10px;
}
.message-container {
    margin-bottom: 10px;
}
.message-bubble {
    max-width: 70%;
    padding: 10px;
    border-radius: 15px;
    display: inline-block;
}
.user-message .message-bubble {
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
}
.operator-message .message-bubble {
    background-color: #dcf8c6;
    border: 1px solid #c3e6cb;
}
.operators-list {
    margin-top: 20px;
}
.operators-list h3 {
    margin-bottom: 10px;
}
.operators-list ul {
    list-style-type: none;
    padding: 0;
}
.operators-list li {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}
.login-container {
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 100px;
}
.error {
    color: red;
    margin-top: 10px;
}