/* --- Bubble --- */
#chat-bubble {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 60px;
    height: 60px;
    background: #086ad7;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    transition: transform 0.2s;
}

#chat-bubble:hover {
    transform: scale(1.1);
}

/* --- Chat Window --- */
#chat-window {
    display: none;
    flex-direction: column;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    height: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 9998;
    overflow: hidden;
}

/* --- Header --- */
#chat-header {
    background: #086ad7;
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
}

#chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

/* --- Messages --- */
#chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8f9fa;
}

.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-msg.bot {
    background: #086ad7;
    color: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    background: #e9ecef;
    color: #333;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-msg.typing {
    opacity: 0.6;
    font-style: italic;
}

/* --- Input Area --- */
#chat-input-area {
    display: flex;
    padding: 12px;
    border-top: 1px solid #eee;
    gap: 8px;
    background: #fff;
}

#chat-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
}

#chat-input:focus {
    border-color: #086ad7;
}

#chat-send {
    background: #086ad7;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

#chat-send:hover {
    background: #0558b0;
}