/* Chatbot Widget Styles */
#chatbot-widget-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Floating Toggle Button */
#chatbot-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #2563eb;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

#chatbot-toggle-btn:hover {
    transform: scale(1.05);
    background-color: #1d4ed8;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#chatbot-toggle-btn .close-icon {
    display: none;
}

#chatbot-toggle-btn.active .chat-icon {
    display: none;
}

#chatbot-toggle-btn.active .close-icon {
    display: block;
}

/* Chat Window */
.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 340px;
    height: 500px;
    max-height: calc(100vh - 120px);
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chatbot-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Header */
.chatbot-header {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-info h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.header-subtitle {
    margin: 1px 0 0;
    font-size: 11px;
    opacity: 0.9;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Messages Area */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.welcome-message {
    text-align: center;
    padding: 10px 0 20px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

.welcome-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.welcome-content h4 {
    margin: 0 0 4px;
    color: #1e293b;
    font-size: 14px;
}

.welcome-content p {
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.chatbot-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.4;
    position: relative;
}

.chatbot-message.ai {
    align-self: flex-start;
    background-color: white;
    color: #1e293b;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chatbot-message.user {
    align-self: flex-end;
    background-color: #2563eb;
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* Suggested Actions */
.suggested-actions {
    padding: 12px 16px;
    background-color: white;
    border-top: 1px solid #f1f5f9;
}

.suggested-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.suggested-title {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.collapse-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.collapse-btn:hover {
    color: #64748b;
}

.suggested-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 240px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.suggested-action-btn {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 11px;
    color: #475569;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.suggested-action-btn:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
    transform: translateY(-1px);
}

/* Input Area */
.input-container {
    padding: 16px;
    background-color: white;
    border-top: 1px solid #f1f5f9;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.input-field-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.input-field {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    background-color: #f8fafc;
}

.input-field:focus {
    border-color: #2563eb;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.send-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.send-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.send-btn:disabled {
    background-color: #cbd5e1;
    cursor: not-allowed;
}

.input-footer {
    margin-top: 8px;
    text-align: center;
}

.input-hint {
    font-size: 11px;
    color: #94a3b8;
}

/* Animations */
@keyframes messageSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background-color: white;
    border-radius: 16px;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.typing-dot {
    width: 6px;
    height: 6px;
    background-color: #cbd5e1;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); }
}

/* Message link buttons */
.message-link-btn {
    display: block;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #f1f5f9;
    color: #2563eb;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
}

.message-link-btn:hover {
    background-color: #e2e8f0;
    color: #1d4ed8;
}

.bullet {
    color: #2563eb;
    font-weight: bold;
    margin-right: 6px;
}
