/* Chatbot Arnaldo - English Butler Style */

.chatbot-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 1001;
    transition: var(--transition);
}

.chatbot-bubble:hover {
    transform: scale(1.1) rotate(5deg);
}

.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

@media (max-width: 480px) {
    .chatbot-window {
        width: 100%;
        height: 70%;
        bottom: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
    }
    .chatbot-bubble {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chat-header .avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chat-header h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin: 0;
}

.chat-header p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.chat-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.arnaldo {
    background: var(--bg-secondary);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-message.user {
    background: var(--primary);
    color: var(--bg-main);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.chat-option-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-main);
}

.chat-option-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.chat-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
}

.chat-footer input {
    flex: 1;
    border: 1px solid var(--border);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.chat-footer input:focus {
    border-color: var(--accent);
}

.chat-footer button {
    background: var(--primary);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-footer button:hover {
    opacity: 0.9;
}

/* Dark Mode Specific fixes */
[data-theme='dark'] .chat-option-btn {
    background: var(--bg-secondary);
    color: var(--text-main);
}
