/* Gemini AI Chatbot Frontend Styles */

.gemini-chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.gemini-chatbot-toggle {
    width: 60px;
    height: 60px;
    background: #4285f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
    transition: all 0.3s ease;
    color: white;
}

.gemini-chatbot-toggle:hover {
    background: #3367d6;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(66, 133, 244, 0.4);
}

.gemini-chatbot-toggle svg {
    width: 24px;
    height: 24px;
}

.gemini-chatbot-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    max-width: calc(100vw - 40px);
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.gemini-chatbot-header {
    background: #4285f4;
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.gemini-chatbot-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.gemini-chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.gemini-chatbot-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.gemini-chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gemini-chatbot-message {
    display: flex;
    margin-bottom: 12px;
}

.gemini-chatbot-message-user {
    justify-content: flex-end;
}

.gemini-chatbot-message-bot {
    justify-content: flex-start;
}

.gemini-chatbot-message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.gemini-chatbot-message-user .gemini-chatbot-message-content {
    background: #4285f4;
    color: white;
    border-bottom-right-radius: 4px;
}

.gemini-chatbot-message-bot .gemini-chatbot-message-content {
    background: #f1f3f4;
    color: #333;
    border-bottom-left-radius: 4px;
}

.gemini-chatbot-input-container {
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.gemini-chatbot-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.gemini-chatbot-input:focus {
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

.gemini-chatbot-send {
    background: #4285f4;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.gemini-chatbot-send:hover {
    background: #3367d6;
}

.gemini-chatbot-send:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.gemini-chatbot-typing {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background: #f1f3f4;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    max-width: 80px;
}

.gemini-chatbot-typing-dot {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: gemini-typing 1.4s infinite ease-in-out;
}

.gemini-chatbot-typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.gemini-chatbot-typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes gemini-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-widget {
        bottom: 10px;
        right: 10px;
    }
    
    .gemini-chatbot-window {
        width: calc(100vw - 20px);
        height: 400px;
        bottom: 60px;
        right: 0;
    }
    
    .gemini-chatbot-toggle {
        width: 50px;
        height: 50px;
    }
    
    .gemini-chatbot-toggle svg {
        width: 20px;
        height: 20px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .gemini-chatbot-window {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .gemini-chatbot-message-bot .gemini-chatbot-message-content {
        background: #404040;
        color: #e0e0e0;
    }
    
    .gemini-chatbot-input-container {
        background: #1a1a1a;
        border-top-color: #404040;
    }
    
    .gemini-chatbot-input {
        background: #2d2d2d;
        border-color: #404040;
        color: #e0e0e0;
    }
    
    .gemini-chatbot-input:focus {
        border-color: #4285f4;
    }
}
