
#chat-widget {
    position: fixed;
    bottom: 19vh;
    right: 10px;
    z-index: 99999;
    font-family: Arial, sans-serif;
}

/* Nút mở chat */
#chat-launcher {
    width: 55px;
    height: 55px;
    background: #0078ff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform .2s;
}
#chat-launcher .ico-chat {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    position: absolute;
}
#chat-launcher:hover {
    transform: scale(1.1);
}

/* Cửa sổ chat */
#chat-window {
    width: 350px;
    height: 470px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: none;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    animation: fadeUp .25s ease;
}

@keyframes fadeUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Header */
#chat-header {
    background: #0078ff;
    color: #fff;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.chat-title {
    font-weight: bold;
    flex: 1;
}

#chat-close {
    background: transparent;
    border: none;
    font-size: 22px;
    color: white;
    cursor: pointer;
}

/* Body */
#chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #f7f7f7;
}

/* Bubble chat */
.chat-msg {
    max-width: 75%;
    padding: 8px 12px;
    margin: 8px 0;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.35;
}

.me {
    background: #d1f5ff;
 
}

.other {
    background: white;
    border: 1px solid #ddd;
}

/* Input */
#chat-input-area {
    display: flex;
    border-top: 1px solid #ddd;
}

#chat-input {
    flex: 1;
    padding: 12px;
    outline: none;
    border: none;
    font-size: 14px;
}

#chat-send {
    width: 55px;
    border: none;
    background: #0078ff;
    color: white;
    cursor: pointer;
    font-size: 18px;
}
.msg-uid {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 3px;
    opacity: 0.7;
}

.chat-msg-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    max-width: 75%;
}

.me-wrapper {
    margin-left: auto;
    align-items: flex-start;
}

.other-wrapper {
    align-items: flex-start;
}
