#chatFloatingBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #a1291a;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: transform 0.2s;
}

#chatFloatingBtn:hover {
    transform: scale(1.05);
}

#chatContainer {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    height: 450px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: none;
    overflow: hidden;
    font-family: sans-serif;
    border: 1px solid #ddd;
}

.chat-header {
    background-color: #a1291a;
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

#chatUserListView {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#chatUserListContent {
    flex: 1;
    overflow-y: auto;
    background: #f8f9fa;
}

.chat-user-row {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-user-row:hover {
    background: #fff;
}

.chat-avatar {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.chat-info {
    flex: 1;
}

.badge {
    background: red;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
}

#chatConversationView {
    height: 100%;
    display: none;
    flex-direction: column;
}

#chatMessagesArea {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
}

.chat-footer-input {
    padding: 10px;
    border-top: 1px solid #ddd;
    background: #fff;
    display: flex;
}

.chat-footer-input input {
    flex: 1;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 20px;
    outline: none;
}

.chat-footer-input button {
    background: white;
    border: none;
    color: #a1291a;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
}

.msg-row {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}

.msg-right {
    align-items: flex-end;
}

.msg-left {
    align-items: flex-start;
}

.msg-bubble {
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 13px;
    word-wrap: break-word;
}

.msg-right .msg-bubble {
    background: #a1291a;
    color: white;
    border-bottom-right-radius: 2px;
}

.msg-left .msg-bubble {
    background: #e4e6eb;
    color: #050505;
    border-bottom-left-radius: 2px;
}

.msg-time {
    font-size: 9px;
    color: #888;
    margin-top: 2px;
}