body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #1e1e1e;
    color: white;
}

.sidebar {
    width: 280px;
    background: #2b2b2b;
    height: 100vh;
    float: left;
    overflow-y: auto;
    border-right: 1px solid #444;
}

.sidebar h2 {
    padding: 20px;
    margin: 0;
    background: #202020;
    font-size: 18px;
}

.contact {
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
}

.contact:hover {
    background: #3a3a3a;
}

.contact img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
}

.chat-window {
    margin-left: 280px;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.messages {
    /*flex: 1;*/
    height: 252px;
    overflow-y: auto;
    padding: 20px;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 10px;
    max-width: 60%;
}

.message.admin {
    background: #0078ff;
    align-self: flex-end;
}

.message.user {
    background: #444;
    align-self: flex-start;
}

.message .meta {
    font-size: 11px;
    color: #ccc;
    margin-top: 5px;
}

.input-area {
    display: flex;
    padding: 15px;
    border-top: 1px solid #444;
    background: #1e1e1e;
}

.input-area input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    margin-right: 10px;
    background: #2e2e2e;
    color: white;
}

.input-area button {
    padding: 10px 20px;
    background: #0078ff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.user-item.active {
  background-color: #3a3a3a;
  font-weight: bold;
}

.chat-float-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    padding: 15px;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;
}

.chat-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    height: 400px;
    background: #fff;
    border: 1px solid #ccc;
    display: none;
    flex-direction: column;
    z-index: 10000;
}

.chat-popup.expanded {
    width: 100%;
    height: 100%;
    bottom: 0;
    right: 0;
}

.chat-popup.minimized {
    display: none;
}

.chat-popup.open {
    display: flex;
}

.chat-header {
    background: #007bff;
    color: white;
    padding: 10px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-actions button {
    background: none;
    border: none;
    color: white;
    margin-left: 5px;
    font-size: 16px;
    cursor: pointer;
}