/* chatbot.css - Chatbot widget styles */

:root {
    --bg-dark: #fff;
    --surface-card: #fff;
    --surface-elevated: #1A6CF8;
    --brand: #1A6CF8;
    --brand-hover: #1A6CF8;
    --text-primary: #666666;
    --text-secondary: #a0a0b8;
    --border-subtle: #f5f5f5;
    --bot-bubble: #f5f5f5;
    --user-bubble: #1A6CF8;
}

/* FAB */
#gcti-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--brand);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.2s;
}
#gcti-fab:hover { transform: scale(1.05); background-color: var(--brand-hover); }
#gcti-fab-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background-color: #ff4d4d;
    border-radius: 50%;
    display: none;
}

/* Chat Panel */
#gcti-chat-panel {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 360px;
    height: 520px;
    background-color: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9998;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.2s, transform 0.2s;
}
#gcti-chat-panel.open { display: flex; opacity: 1; transform: scale(1); }

@media (max-width: 480px) {
    #gcti-chat-panel { width: calc(100vw - 32px); right: 16px; bottom: 80px; }
}

/* Header */
.gcti-header {
    background-color: var(--surface-elevated);
    padding: 16px;
    border-bottom: 1px solid var(--border-subtle);
}
.gcti-header h3 {
    color: #fff;
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gcti-header h3 i { font-size: 18px; }

/* Messages */
.gcti-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.gcti-messages::-webkit-scrollbar { display: none; }
.gcti-msg { max-width: 80%; padding: 10px 14px; font-size: 14px; line-height: 1.6; }
.gcti-msg.bot { align-self: flex-start; background-color: rgba(26, 108, 255, 0.15); color: #343434; border-radius: 4px 12px 12px 12px; }
.gcti-msg.user { align-self: flex-end; background-color: rgba(26, 108, 255, 0.15); color: #343434; border-radius: 12px 4px 12px 12px; }

/* Chips */
.gcti-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.gcti-chip {
    border: 1px solid #1A6CF8;
    background: transparent;
    color: var(--brand);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
}

.gcti-chip:hover { background: rgba(26, 108, 255, 0.15);}

/* Input */
.gcti-input-row { padding: 16px; display: flex; gap: 8px; }
.gcti-input { flex: 1; background: var(--bg-dark); border: 1px solid rgba(26, 108, 255, 0.5);; color: #666666; border-radius: 8px; padding: 10px 14px; outline: none; }
.gcti-send { background: var(--brand); color: #fff; border: none; border-radius: 8px; padding: 10px 16px; cursor: pointer; }
.gcti-send:hover { background: var(--brand-hover); }

/* Typing */
.gcti-typing { display: flex; gap: 4px; padding: 10px; }
.gcti-dot { width: 6px; height: 6px; background: var(--text-secondary); border-radius: 50%; animation: bounce 1.4s infinite; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
