/* Chatbot Container */
#neon-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

/* Toggle Button */
#chatbot-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#chatbot-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 117, 252, 0.6);
}

#chatbot-toggle-btn svg {
    color: white;
    width: 30px;
    height: 30px;
}

#chatbot-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff0055;
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #fff;
}

/* Chat Window */
#chatbot-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

#chatbot-window.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

/* Dark Mode Support based on site theme if applicable, but default white for readability */
@media (prefers-color-scheme: dark) {
    #chatbot-window {
        background-color: #1a1a1a;
        color: #fff;
        border: 1px solid #333;
    }
}

/* Header */
.chat-header {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bot-avatar {
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.chat-title h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-title span {
    font-size: 12px;
    opacity: 0.9;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    opacity: 0.8;
}

.close-chat:hover {
    opacity: 1;
}

/* Messages Area */
.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    gap: 10px;
    background-color: #f8f9fa;
}

.quick-replies-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 0 5px;
}

.quick-reply-btn {
    background: #ffffff;
    border: 1px solid #2575fc;
    color: #2575fc;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(37, 117, 252, 0.1);
}

.quick-reply-btn:hover {
    background: #2575fc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 117, 252, 0.2);
}

@media (prefers-color-scheme: dark) {
    .quick-reply-btn {
        background: #2a2a2a;
        border-color: #4a90e2;
        color: #4a90e2;
    }

    .quick-reply-btn:hover {
        background: #4a90e2;
        color: white;
    }
}

@media (prefers-color-scheme: dark) {
    .chat-messages {
        background-color: #242424;
    }
}

.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.message.bot {
    align-self: flex-start;
    background-color: #e9ecef;
    color: #333;
    border-bottom-left-radius: 2px;
}

@media (prefers-color-scheme: dark) {
    .message.bot {
        background-color: #3a3a3a;
        color: #eee;
    }
}

.message.user {
    align-self: flex-end;
    background-color: #2575fc;
    color: white;
    border-bottom-right-radius: 2px;
}

.typing-indicator {
    font-size: 12px;
    color: #888;
    margin-left: 10px;
    display: none;
}

/* Input Area */
.chat-input-area {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background-color: #fff;
}

@media (prefers-color-scheme: dark) {
    .chat-input-area {
        background-color: #1a1a1a;
        border-top: 1px solid #333;
    }
}

#chat-input-field {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

@media (prefers-color-scheme: dark) {
    #chat-input-field {
        background-color: #2a2a2a;
        border-color: #444;
        color: white;
    }
}

#chat-send-btn {
    background-color: #2575fc;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

#chat-send-btn:hover {
    background-color: #1a66e6;
}

/* Responsive */
@media (max-width: 480px) {
    #chatbot-window {
        width: 90%;
        height: 70vh;
        right: 5%;
        bottom: 90px;
    }
}