/* Floating Button */
#ai-chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0;
    padding: 10px 10px!important;
}

/* BIGGER ICON */
#ai-chatbot-toggle svg {
    width: 36px !important;   /* ← BIGGER ICON */
    height: 36px !important;  /* ← BIGGER ICON */
    stroke: white;
    stroke-width: 2.2;
}

#ai-chatbot-toggle:hover {
    transform: scale(1.1);
    background: #005a87;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Popup Container */
#ai-chatbot-popup {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 340px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    z-index: 99998;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow: hidden;
}

#ai-chatbot-popup.open {
    display: flex !important;
}

.ai-chatbot-hidden {
    display: none !important;
}

/* Header */
#ai-chatbot-header {
    background: #007cba;
    color: white;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
}

#ai-chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

#ai-chatbot-close:hover {
    background: rgba(255,255,255,0.2);
}

/* Messages Area */
#ai-chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14.5px;
    line-height: 1.5;
    word-wrap: break-word;
}

.user-message {
    background: #007cba;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bot-message {
    background: white;
    color: #333;
    border: 1px solid #eee;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* Input Area */
#ai-chatbot-input {
    display: flex;
    padding: 12px;
    background: white;
    border-top: 1px solid #eee;
}

#ai-chatbot-input-field {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-right: none;
    border-radius: 20px 0 0 20px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
}

#ai-chatbot-input-field:focus {
    border-color: #007cba;
}

#ai-chatbot-send {
    padding: 0 16px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

#ai-chatbot-send:hover {
    background: #005a87;
}