.chat-container {
    max-width: 650px;
    margin: 0 auto;
    padding: 10px;
}
.chat-box {
    width: 100%;
    height: 380px;
    border: 1px solid #ccc;
    padding: 12px;
    overflow-y: auto;
    background: #fafafa;
    border-radius: 8px;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.1);
}
.chat-message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}
.chat-message.me {
    flex-direction: row-reverse;
}
.chat-message .avatar {
    width: 36px;
    height: 36px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
}
.chat-message.me .avatar {
    margin-left: 10px;
    margin-right: 0;
    background: #28a745;
}
.chat-message .bubble {
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 75%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.chat-message.me .bubble {
    background: #dcf8c6;
}
#chatForm {
    max-width: 650px;
    margin: 0 auto;
}
#chatInput {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    resize: none;
    margin-top: 10px;
}
.send-btn {
    margin-top: 10px;
    padding: 8px 14px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.send-btn:hover {
    background: #0069d9;
}
.chat-meta {
    font-size: 12px;
    color: #666;
}
.emoji-toggle {
    margin-top: 10px;
    padding: 6px 10px;
    background: #eee;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 6px;
}
.emoji-window {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
}
.emoji-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.emoji-tab {
    padding: 6px 10px;
    background: #eee;
    border-radius: 6px;
    cursor: pointer;
}
.emoji-tab.active {
    background: #007bff;
    color: white;
}
.emoji-category {
    display: none;
}
.emoji-btn {
    font-size: 22px;
    padding: 5px;
    cursor: pointer;
    background: none;
    border: none;
}
.chat-user {
    cursor: pointer;
    color: #007bff;
}
.chat-user:hover {
    text-decoration: underline;
}

