#chatbot-launcher {
    position: fixed;
    bottom: 22px;
    right: 22px;
    background: #384967;
    color: white;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 30px;
    box-shadow: 0px 4px 18px rgba(0,0,0,0.25);
    z-index: 99999;
    transition: all .25s ease;
}
#chatbot-launcher:hover { transform: scale(1.08); }

#chatbot-popup {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 380px;
    height: 540px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.22);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 99999;
}

/* header */
.chat-header {
    background: #384967;
    padding: 14px 18px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-btn {
    background-color: #384967;
    border: none;
    color: white;
    font-size: 16px;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 6px;
}
.header-btn:hover { background-color: #69799A; }

/* messages */
#chatbot-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    background: #F9FAFB;
    font-size: 14px;
}

.msg {
    padding: 10px 14px;
    margin-bottom: 10px;
    max-width: 82%;
    border-radius: 12px;
    line-height: 1.4;
}
.msg.user {
    background: #384967;
    color: white;
    margin-left: auto;
}
.msg.bot {
    background: #E5E7EB;
    color: #111827;
}

/* typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: #E5E7EB;
    width: 80px;
    border-radius: 12px;
}
.typing-dot {
    width: 6px;
    height: 6px;
    background: #6B7280;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}
.typing-dot:nth-child(2) { animation-delay: .2s; }
.typing-dot:nth-child(3) { animation-delay: .4s; }
@keyframes blink {
    0% { opacity: .2; }
    20% { opacity: 1; }
    100% { opacity: .2; }
}

/* input */
.chat-input-area {
    padding: 12px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 6px;
}
.chat-input-area input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}
.chat-input-area button {
    padding: 10px 14px;
    border-radius: 8px;
    background: #384967;
    color: white;
    border: none;
}
