/* Chatbot Styles */
#chatbotWidget {
    font-family: 'Inter', sans-serif;
}

#chatbotInterface {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.chat-message {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#chatMessages {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

#chatMessages::-webkit-scrollbar {
    width: 6px;
}

#chatMessages::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 3px;
}

#chatMessages::-webkit-scrollbar-thumb {
    background-color: #cbd5e0;
    border-radius: 3px;
}

#chatInput:focus {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #chatbotInterface {
        width: calc(100vw - 2rem);
        height: 70vh;
        right: 1rem;
        bottom: 5rem;
    }
}

/* Animation for chatbot toggle */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#chatbotToggle:hover {
    animation: pulse 2s infinite;
}


/* Animated Statistics Carousel Styles */
#stats-carousel {
    position: relative;
    overflow: hidden;
}

.stat-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.stat-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Counter animation base styles */
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* Trust badges animation */
.trust-badge {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.5s ease-out;
}

.trust-badge.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation delays */
.stat-card:nth-child(1) { transition-delay: 0.1s; }
.stat-card:nth-child(2) { transition-delay: 0.2s; }
.stat-card:nth-child(3) { transition-delay: 0.3s; }
.stat-card:nth-child(4) { transition-delay: 0.4s; }

.trust-badge:nth-child(1) { transition-delay: 0.5s; }
.trust-badge:nth-child(2) { transition-delay: 0.6s; }
.trust-badge:nth-child(3) { transition-delay: 0.7s; }

/* Pulse animation for icons */
@keyframes pulse-gentle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.stat-card:hover .icon-container {
    animation: pulse-gentle 1s ease-in-out;
}

/* Gradient background animation */
#stats-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

#stats-carousel:hover::before {
    left: 100%;
}