/**
* AI CHATBOT ENHANCEMENTS STYLES
* Additional styling for chatbot enhancements
*/

/* ============================================
  SUGGESTIONS
  ============================================ */
.ai-chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-mode .ai-chatbot-suggestions {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.ai-chatbot-suggestion-btn {
    padding: 6px 12px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #667eea;
}

body.dark-mode .ai-chatbot-suggestion-btn {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    color: #8a9eff;
}

.ai-chatbot-suggestion-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: translateY(-2px);
}

body.dark-mode .ai-chatbot-suggestion-btn:hover {
    background: rgba(102, 126, 234, 0.3);
}

/* ============================================
  REACTIONS
  ============================================ */
.ai-chatbot-reactions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .ai-chatbot-reactions {
    border-top-color: rgba(255, 255, 255, 0.05);
}

.ai-chatbot-reaction-btn {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    padding: 4px 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.dark-mode .ai-chatbot-reaction-btn {
    border-color: rgba(255, 255, 255, 0.1);
}

.ai-chatbot-reaction-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.ai-chatbot-reaction-btn.active {
    background: rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

/* ============================================
  CODE BLOCKS
  ============================================ */
.ai-chatbot-message-text code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

body.dark-mode .ai-chatbot-message-text code {
    background: rgba(255, 255, 255, 0.1);
    color: #8a9eff;
}

.ai-chatbot-message-text ul {
    margin: 8px 0;
    padding-left: 20px;
}

.ai-chatbot-message-text li {
    margin: 4px 0;
    line-height: 1.6;
}

/* ============================================
  HELP BUTTON
  ============================================ */
.ai-chatbot-help-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ai-chatbot-help-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

body.dark-mode .ai-chatbot-help-btn {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    color: #8a9eff;
}

/* ============================================
  EMOJI BUTTON
  ============================================ */
.ai-chatbot-emoji-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.ai-chatbot-emoji-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.2);
}

/* ============================================
  TYPING ANIMATION
  ============================================ */
#typing-text {
    min-height: 20px;
}

/* ============================================
  ENHANCED INPUT WRAPPER
  ============================================ */
.ai-chatbot-input-wrapper {
    position: relative;
}

.ai-chatbot-input-wrapper .ai-chatbot-help-btn {
    position: absolute;
    right: 50px;
    bottom: 5px;
}

/* ============================================
  RESPONSIVE
  ============================================ */
@media (max-width: 480px) {
    .ai-chatbot-suggestions {
        flex-direction: column;
    }

    .ai-chatbot-suggestion-btn {
        width: 100%;
        text-align: left;
    }

    .ai-chatbot-input-wrapper .ai-chatbot-help-btn {
        right: 45px;
    }
}


/* Focus styles for accessibility - Auto-added */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}
