/* FitLife Gym Chatbot Styles */

/* Custom scrollbar for chat messages */
.chat-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.chat-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.chat-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-scrollbar::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.chat-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Enhanced animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.chat-message {
    animation: slideInUp 0.4s ease-out;
}

.chat-toggle-animation {
    animation: bounceIn 0.6s ease-out;
}

/* Pulse effect for new messages */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0);
    }
}

.pulse-notification {
    animation: pulse 2s infinite;
}

/* Typing indicator animation */
@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.typing-dot {
    animation: typing 1.4s infinite ease-in-out;
}

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

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

/* Gradient background for bot messages */
.bot-message-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
}

/* Hover effects for quick actions */
.quick-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Focus styles for accessibility */
.chat-input:focus {
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.1);
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .chat-window-mobile {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 9999 !important;
        border-radius: 0 !important;
    }
    
    .quick-action {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .chat-dark-mode {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .chat-dark-mode .bot-message-gradient {
        background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
        border-color: #6b7280;
    }
}
