/* Chatbot Styles */

/* .chatbot-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 100vw;
    box-sizing: border-box;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.chatbot-toggle.active {
    transform: scale(0.9);
}

.chatbot-toggle i {
    font-size: 24px;
}

.chatbot-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: var(--badge-featured);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.chatbot-toggle:hover .chatbot-badge {
    opacity: 1;
    transform: scale(1);
}

.chatbot-panel {
    position: absolute;
    top: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    min-width: 300px;
    min-height: 400px;
    max-width: 90vw;
    max-height: 80vh;
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    resize: both;
}

.chatbot-panel.open {
    transform: translateY(0);
    opacity: 1;
}

.chatbot-header {
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    flex-grow: 1;
    text-align: center;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chatbot-message {
    display: flex;
    margin-bottom: 10px;
}

.chatbot-message.user {
    justify-content: flex-end;
}

.chatbot-message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    word-break: break-word;
}

.chatbot-message.bot .chatbot-message-content {
    background-color: var(--tag-bg);
    color: var(--text-color);
    border-bottom-left-radius: 5px;
}

.chatbot-message.user .chatbot-message-content {
    background-color: var(--primary-color);
    color: white;
    border-bottom-right-radius: 5px;
}

.chatbot-message-content p {
    margin: 0;
    line-height: 1.4;
}

.chatbot-input-container {
    display: flex;
    padding: 10px 15px;
    border-top: 1px solid var(--input-border);
}

.chatbot-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--input-border);
    border-radius: 20px;
    outline: none;
    background-color: var(--input-bg);
    color: var(--text-color);
}

.chatbot-send {
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.chatbot-send:hover {
    background-color: var(--primary-dark);
}

.chatbot-api-key-container {
    padding: 15px;
    border-top: 1px solid var(--input-border);
    background-color: var(--tag-bg);
    display: none;
}

.chatbot-api-key {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid var(--input-border);
    border-radius: 5px;
    background-color: var(--input-bg);
    color: var(--text-color);
}

.chatbot-save-key {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chatbot-save-key:hover {
    background-color: var(--primary-dark);
}

.chatbot-api-note {
    font-size: 12px;
    color: var(--muted-text);
    margin-top: 10px;
    text-align: center;
}

/* Typing indicator */
/* .typing-indicator, .typing-dots {
    display: flex;
    gap: 4px;
    padding: 5px 0;
}

.typing-indicator span, .typing-dots span {
    width: 8px;
    height: 8px;
    background-color: var(--muted-text);
    border-radius: 50%;
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.typing-text {
    font-size: 13px;
    color: var(--muted-text);
    margin-top: 8px;
    margin-bottom: 0;
    font-style: italic;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.6;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Tool recommendations styling */
/* .chatbot-message-content h2,
.chatbot-message-content h3,
.chatbot-message-content h4 {
    margin-top: 15px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.chatbot-message-content h2 {
    font-size: 18px;
}

.chatbot-message-content h3 {
    font-size: 16px;
}

.chatbot-message-content h4 {
    font-size: 14px;
}

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

.chatbot-message-content li {
    margin-bottom: 5px;
}

.chatbot-message-content .tool-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.chatbot-message-content .tool-link:hover {
    text-decoration: underline;
}

/* Image styling in chatbot responses */
/* .chatbot-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    display: block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
} */

/* Resize handle styling */
/* .chatbot-panel {
    position: relative;
}

.chatbot-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 15px;
    cursor: nwse-resize;
    background: linear-gradient(135deg, transparent 50%, var(--primary-color) 50%);
    border-bottom-right-radius: 16px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.chatbot-panel:hover::after {
    opacity: 1;
} */

/* Size controls */
/* .chatbot-size-controls {
    display: flex;
    gap: 5px;
    margin-right: 10px;
    z-index: 10;
}

.chatbot-size-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 25px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chatbot-size-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.chatbot-size-btn.active {
    background-color: rgba(255, 255, 255, 0.4);
    font-weight: bold;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
} */

/* Size variations */
/* .chatbot-panel.size-small {
    width: 280px;
    height: 400px;
}

.chatbot-panel.size-default {
    width: 350px;
    height: 500px;
}

.chatbot-panel.size-large {
    width: 450px;
    height: 600px;
} */

/* Responsive adjustments */
/* @media (max-width: 480px) {
    .chatbot-container {
        right: 10px;
    }
    
    .chatbot-panel {
        width: 300px;
        height: 450px;
        right: 0;
        max-width: calc(100vw - 20px);
    }
    
    .chatbot-message-content {
        max-width: 90%;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
    } 
} */ 
