/* VedaSEO VEDA AI Assistant Chatbot Design System */
.chatbot-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

/* Floating Action Toggle Button */
.chatbot-toggle-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0b0f19;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 65px;
    height: 65px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-toggle-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(245, 158, 11, 0.6);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
    70% { box-shadow: 0 0 0 18px rgba(245, 158, 11, 0); }
    100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.chatbot-toggle-btn.blink-notification {
    animation: pulseGlow 2s infinite;
}

/* Glassmorphism Chat Window */
.chatbot-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 380px;
    height: 520px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.chatbot-window.d-none {
    display: none !important;
}

.chatbot-header {
    background: #1e293b;
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #cbd5e1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chatbot-close-btn:hover {
    background: #ef4444;
    color: #ffffff;
}

.chatbot-messages {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    background: rgba(11, 15, 25, 0.8);
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}
.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.message {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 16px;
    max-width: 85%;
    font-size: 0.92rem;
    line-height: 1.5;
}

.user-message {
    background: #3b82f6;
    color: #ffffff;
    margin-left: auto;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.bot-message {
    background: #1e293b;
    color: #f1f5f9;
    margin-right: auto;
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-input-area {
    display: flex;
    padding: 12px;
    background: #1e293b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-input-area input {
    flex-grow: 1;
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    padding: 10px 18px !important;
    font-size: 0.9rem !important;
}

.chatbot-input-area input::placeholder {
    color: #64748b !important;
}

.chatbot-input-area button {
    background: #f59e0b;
    color: #0b0f19;
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.chatbot-input-area button:hover {
    background: #d97706;
    transform: scale(1.05);
}

/* Quick Action Suggestion Chips */
.quick-chip {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.78rem;
    cursor: pointer;
    display: inline-block;
    margin: 3px 2px;
    transition: all 0.2s ease;
}
.quick-chip:hover {
    background: #3b82f6;
    color: #ffffff;
}

/* Mobile Responsive Optimization */
@media (max-width: 576px) {
    .chatbot-container {
        bottom: 15px;
        right: 15px;
    }
    .chatbot-toggle-btn {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    .chatbot-window {
        width: calc(100vw - 30px);
        height: 75vh;
        bottom: 75px;
        right: 0;
        border-radius: 16px;
    }
}