/* Gemini Chatbot Widget Styles */

/* Smooth fade-in animation */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.3s ease-out;
}

/* Custom scrollbar for chat messages */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.5);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 250, 0.7);
}

/* Chatbot toggle button pulse animation */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(167, 139, 250, 0.4), 0 0 40px rgba(236, 72, 153, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(167, 139, 250, 0.6), 0 0 60px rgba(236, 72, 153, 0.4);
    }
}

#chatbot-toggle {
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Message formatting */
#chatbot-messages strong {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

#chatbot-messages em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
}

/* Quick action button hover effect */
.chatbot-quick-action:hover {
    transform: translateY(-2px);
}

.chatbot-quick-action:active {
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #chatbot-window {
        bottom: 5.5rem;
        right: 1rem;
        left: 1rem;
        width: auto;
        max-width: none;
    }
    
    #chatbot-toggle {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3.5rem;
        height: 3.5rem;
    }
    
    #chatbot-toggle svg {
        width: 1.75rem;
        height: 1.75rem;
    }
    
    #chatbot-messages {
        height: 18rem;
        max-height: 60vh;
    }
    
    #chatbot-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .chatbot-quick-action {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }
}

@media (max-width: 480px) {
    #chatbot-window {
        bottom: 5rem;
        right: 0.75rem;
        left: 0.75rem;
    }
    
    #chatbot-messages {
        height: 16rem;
        max-height: 50vh;
    }
}

/* Landscape mobile optimization */
@media (max-height: 600px) and (orientation: landscape) {
    #chatbot-messages {
        height: 12rem;
        max-height: 40vh;
    }
}
