/* Gemini Chatbot Styles */
.gemini-chatbot-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: auto;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.gemini-chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gemini-chatbot-button-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.gemini-chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.gemini-chatbot-toggle svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.gemini-chatbot-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

.gemini-chatbot-window.active {
    display: flex;
}

.gemini-chatbot-header {
    background: var(--gemini-chatbot-header-gradient, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gemini-chatbot-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.gemini-chatbot-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gemini-chatbot-language-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.gemini-chatbot-language-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gemini-chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.gemini-chatbot-message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

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

.gemini-chatbot-message.bot {
    justify-content: flex-start;
}

.gemini-chatbot-message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.gemini-chatbot-message.user .gemini-chatbot-message-content {
    background: var(--gemini-chatbot-user-bubble, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
    color: white;
    border-bottom-right-radius: 5px;
}

.gemini-chatbot-message.bot .gemini-chatbot-message-content {
    background: var(--gemini-chatbot-bot-bubble, #fff);
    color: #333;
    border: 1px solid #e1e5e9;
    border-bottom-left-radius: 5px;
}

.gemini-chatbot-container .gemini-chatbot-message-content a {
    color: var(--gemini-chatbot-link-color, #3b82f6) !important;
    text-decoration: underline;
    transition: color 0.2s;
}

.gemini-chatbot-container .gemini-chatbot-message-content a:hover {
    color: #1d4ed8 !important;
}

.gemini-chatbot-input-container {
    padding: 15px;
    background: white;
    border-top: 1px solid #e1e5e9;
    display: none;
    gap: 10px;
}

.gemini-chatbot-input {
    flex: 1;
    border: 1px solid #e1e5e9;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.gemini-chatbot-input:focus {
    border-color: #667eea;
}

.gemini-chatbot-send {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    min-width: 60px;
}

.gemini-chatbot-send:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.gemini-chatbot-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.gemini-chatbot-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.gemini-chatbot-typing-dots {
    display: flex;
    gap: 3px;
}

.gemini-chatbot-typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #667eea;
    animation: typing 1.4s infinite ease-in-out;
}

.gemini-chatbot-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.gemini-chatbot-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

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

/* Responsive design */
@media (max-width: 480px) {
    .gemini-chatbot-window {
        width: calc(100vw - 40px);
        left: 0;
        right: 0;
        margin: 0 auto;
    }
    
    .gemini-chatbot-container {
        left: 10px;
        bottom: 10px;
    }
}

/* Elementor compatibility */
.elementor-page .gemini-chatbot-container {
    z-index: 99999;
}

.elementor-editor-active .gemini-chatbot-container {
    display: none;
}

/* Language Selector Styles */
.gemini-chatbot-language-selector {
    padding: 20px;
    text-align: center;
    background: white;
    display: none;
}

.gemini-chatbot-language-selector.active {
    display: block;
}

.gemini-chatbot-language-selector h4 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.gemini-chatbot-language-options {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.gemini-chatbot-language-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.gemini-chatbot-language-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.gemini-chatbot-language-option.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.gemini-chatbot-language-option .flag {
    font-size: 24px;
}

.gemini-chatbot-language-option .text {
    font-size: 14px;
    font-weight: 500;
}

/* Conversation Starters Styles */
.gemini-chatbot-conversation-starters {
    padding: 20px;
    background: white;
    display: none;
}

.gemini-chatbot-conversation-starters.active {
    display: block;
}

.gemini-chatbot-conversation-starters h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.gemini-chatbot-starter-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.gemini-chatbot-starter-button {
    padding: 12px 16px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #f8f9fa;
    color: #333;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    line-height: 1.4;
}

.gemini-chatbot-starter-button:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateX(5px);
}

.gemini-chatbot-start-conversation {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gemini-chatbot-start-conversation:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Hide messages and input when showing language selector or conversation starters */
.gemini-chatbot-language-selector.active ~ .gemini-chatbot-messages,
.gemini-chatbot-language-selector.active ~ .gemini-chatbot-input-container,
.gemini-chatbot-conversation-starters.active ~ .gemini-chatbot-messages,
.gemini-chatbot-conversation-starters.active ~ .gemini-chatbot-input-container {
    display: none;
}

/* Show messages when both language selector and conversation starters are hidden */
.gemini-chatbot-language-selector:not(.active) ~ .gemini-chatbot-conversation-starters:not(.active) ~ .gemini-chatbot-messages {
    display: flex;
}

/* Hide input container by default - only show when conversation has started */
.gemini-chatbot-input-container {
    display: none;
}

.gemini-chatbot-input-container.conversation-started {
    display: flex;
}

/* Hide conversation starters when language selector is active */
.gemini-chatbot-language-selector.active ~ .gemini-chatbot-conversation-starters {
    display: none;
}

/* Hide language selector when conversation starters are active */
.gemini-chatbot-conversation-starters.active ~ .gemini-chatbot-language-selector {
    display: none;
}

/* Hide both language selector and conversation starters when conversation is active */
.gemini-chatbot-messages:not(:empty) ~ .gemini-chatbot-language-selector,
.gemini-chatbot-messages:not(:empty) ~ .gemini-chatbot-conversation-starters {
    display: none;
}

/* Custom Question Input Styles */
.gemini-chatbot-custom-question {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.gemini-chatbot-custom-input {
    flex: 1;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.gemini-chatbot-custom-input:focus {
    border-color: #667eea;
}

.gemini-chatbot-custom-send {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 60px;
}

.gemini-chatbot-custom-send:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
} 