/* Modern Chat Widget CSS */
:root {
    --chat-primary: #2563eb;
    --chat-secondary: #f3f4f6;
    --chat-text: #1f2937;
    --chat-white: #ffffff;
}

#chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

#chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--chat-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s;
}

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

#chat-window {
    display: none;
    width: 350px;
    height: 500px;
    background: var(--chat-white);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 20px;
}

#chat-header {
    background: var(--chat-primary);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    max-width: 80%;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
}

.message.user {
    background: var(--chat-primary);
    color: white;
    align-self: flex-end;
}

.message.bot {
    background: var(--chat-secondary);
    color: var(--chat-text);
    align-self: flex-start;
}

#chat-input-area {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

#chat-input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
    outline: none;
}

#chat-send {
    background: var(--chat-primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

#onboarding-form {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#onboarding-form input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#onboarding-form button {
    background: var(--chat-primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px;
    background: var(--chat-secondary);
    border-radius: 8px;
    align-self: flex-start;
    width: fit-content;
    margin-bottom: 10px;
}

.dot {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: pulse 1.5s infinite ease-in-out;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.3); opacity: 1; }
}
