#chatBubble {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #22a75d;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 28px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    z-index: 999999;
    animation: bubbleBounce 0.8s ease infinite alternate;
}

@keyframes bubbleBounce {
    from { transform: translateY(0); }
    to { transform: translateY(-4px); }
}

#chatBox {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 340px;
    height: 480px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display:none;
    flex-direction: column;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 99999;
}

#chatBox.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

.hidden { display:none !important; }

/* HEADER */
.chat-header {
    background: #22a75d;
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    border-radius: 12px 12px 0 0;
}

/* USER FORM */
#userForm {
    padding: 15px;
    display:flex;
    flex-direction: column;
    gap: 10px;
    transition: opacity 0.25s ease-in-out;
}

#userForm input {
    padding: 10px;
    border-radius: 8px;
    border:1px solid #ccc;
}

/* CHAT MESSAGES */
#chatMessages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    padding-bottom: 25px;
}

.msg-user {
    text-align: right;
    margin-bottom: 10px;
}

.msg-bot {
    text-align: left;
    display: inline-block;
    background:#f1f1f1;
    padding:8px;
    margin-bottom:10px;
    border-radius:8px;
}

/* PULSING DOTS TYPING */
#typing {
    padding: 10px 15px;
    height: 40px;
    display:flex;
    align-items: center;
}

.typing-dots {
    display: flex;
    gap: 6px;
}

.typing-dots div {
    width: 10px;
    height: 10px;
    background: #22a75d;
    border-radius: 50%;
    animation: pulse 1.2s infinite ease-in-out;
}

.typing-dots div:nth-child(2) { animation-delay: 0.2s; }
.typing-dots div:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
    0%, 100% { opacity: 0.2; transform: scale(0.7); }
    50% { opacity: 1; transform: scale(1); }
}

/* INPUT AREA */
.chat-input {
    display:flex;
    padding:10px;
    padding-bottom: 15px;
}

.chat-input input {
    flex: 1;
    padding:10px;
    border-radius:8px;
    border:1px solid #ccc;
}

.chat-input button {
    margin-left:8px;
    background:#22a75d;
    color:white;
    padding:10px 12px;
    border-radius:8px;
    border:none;
    cursor:pointer;
}

/* QUICK ACTIONS */
.quick-actions {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    overflow-x: auto;
}

.quick-actions button {
    background: #e8f6ef;
    border: 1px solid #22a75d;
    color: #22a75d;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.quick-actions button:hover {
    background: #22a75d;
    color: white;
}
