#sian-chatbot {
    position: fixed;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    z-index: 9999;
}

.sian-chatbot-panel {
    width: 320px;
    height: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: Arial;
}

.sian-chatbot-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.sian-chatbot-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    background: #e8f5e9;
    border: 1px solid #d1fae5;
    flex: 0 0 auto;
}

.sian-chatbot-header-text {
    min-width: 0;
}

.sian-chatbot-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}

.sian-chatbot-subtitle {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.15;
    margin-top: 2px;
}

.sian-chatbot-image-wrap {
    display: flex;
    align-items: flex-end;
}

.sian-chatbot-image {
    width: 128px;
    height: 128px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

#chat-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 10px;
    background: #f7f7f7;
}

.user-msg {
    background: #DCF8C6;
    padding: 6px 10px;
    margin: 5px;
    border-radius: 10px;
    align-self: flex-end;
    max-width: 80%;
    font-size: 13px;
    line-height: 1.25;
    white-space: pre-wrap;
    word-break: break-word;
}

.bot-msg {
    background: #fff;
    padding: 6px 10px;
    margin: 5px;
    border-radius: 10px;
    max-width: 80%;
    align-self: flex-start;
    font-size: 13px;
    line-height: 1.25;
    white-space: pre-wrap;
    word-break: break-word;
}

.bot-msg--system {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.bot-msg.typing {
    opacity: 0.85;
    font-style: italic;
}

.sian-chatbot-input-row {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #eef2f7;
    background: #fff;
}

#chat-input {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    font-size: 13px;
}

#chat-send {
    background: #25D366;
    color: white;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

#chat-send:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
