body {
    background: #f0f2f5;
    font-family: Arial, sans-serif;
}

.chat-container {
    max-width: 600px;
    margin: 20px auto;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 90vh;
}

.chat-header {
    background: #075E54;
    color: #fff;
    padding: 10px;
    flex-shrink: 0;
}

.chat-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #ece5dd;
}

.chat-bubble {
    max-width: 75%;
    padding: 10px 15px;
    border-radius: 15px;
    margin-bottom: 10px;
    position: relative;
    word-wrap: break-word;
}

.chat-bubble.user {
    background: #DCF8C6;
    margin-left: auto;
    text-align: right;
    border-bottom-right-radius: 5px;
}

.chat-bubble.custia {
    background: #fff;
    margin-right: auto;
    border-bottom-left-radius: 5px;
}

.chat-bubble .time {
    display: block;
    font-size: 0.75rem;
    color: #777;
    margin-top: 5px;
}

.chat-input {
    padding: 10px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 5px;
}

#chat-message {
    flex: 1;
    resize: none;
}

.emoji-picker {
    position: absolute;
    bottom: 50px; /* muncul di atas textarea */
    left: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 260px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2000;
}

.emoji-item {
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.15s ease;
}

.emoji-item:hover {
    transform: scale(1.3);
}

/* bubble typing */
.chat-bubble.custia.typing {
    background: #f1f1f1;
    color: #555;
    max-width: 120px;
    text-align: left;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 6px 10px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #666;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.4s infinite both;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% { opacity: .2; }
    20% { opacity: 1; }
    100% { opacity: .2; }
}

.chat-bubble .message-content p {
    margin-bottom: 8px;
}

.chat-bubble .message-content ol,
.chat-bubble .message-content ul {
    margin: 6px 0 6px 18px;
    padding: 0;
}

.chat-bubble .message-content li {
    margin-bottom: 4px;
}

