/* Chat Widget Container */
#hac-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Chat Icon */
#hac-chat-icon {
    width: 60px;
    height: 60px;
    background-color: #d63384; /* A modern pink color */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}
#hac-chat-icon:hover {
    transform: scale(1.1);
}

/* Chat Window */
#hac-chat-window {
    width: 350px;
    height: 500px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
}
#hac-chat-window.active { display: flex; }
#hac-chat-window .header { padding: 15px; background: #d63384; color: white; font-weight: bold; text-align: center; }
#hac-chat-window .chat-body { flex-grow: 1; padding: 15px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }

.message { padding: 10px 15px; border-radius: 18px; max-width: 90%; line-height: 1.6; word-wrap: break-word; font-size: 14px; }
.message.user { background: #e9ecef; align-self: flex-end; }
.message.bot { background: #fff; align-self: flex-start; border: 1px solid #eee; }
.message.loading { align-self: flex-start; }
.message.loading::after { content: '...'; display: inline-block; animation: loading-dots 1s infinite; }
@keyframes loading-dots { 0%, 20% { content: '.'; } 40% { content: '..'; } 60%, 100% { content: '...'; } }
.message.bot a { color: #0d6efd; text-decoration: underline; }

/* Chat Input */
#hac-chat-window .chat-input { display: flex; padding: 10px; border-top: 1px solid #ddd; background: #fff; }
#hac-user-input { flex-grow: 1; border: 1px solid #ccc; border-radius: 20px; padding: 10px 15px; font-family: inherit; direction: rtl; }
#hac-send-btn { background: #d63384; color: white; border: none; border-radius: 50%; width: 40px; height: 40px; margin-right: 5px; cursor: pointer; font-size: 16px; flex-shrink: 0; }
