
/* Chatbot Container */
.veridex-chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
}

.veridex-chatbot-container.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* Chatbot Header */
.chatbot-header {
    background-color: #0d6efd;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.chatbot-title {
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.chatbot-title i {
    margin-right: 8px;
}

.chatbot-controls {
    display: flex;
}

.chatbot-controls button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 10px;
    padding: 0;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.chatbot-controls button:hover {
    opacity: 1;
}

/* Chatbot Body */
.chatbot-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background-color: #f8f9fa;
    -webkit-overflow-scrolling: touch; /* For smoother scrolling on iOS */
    scroll-behavior: smooth;
    max-height: calc(100% - 110px); /* Adjust based on header and input area height */
    position: relative;
}

/* Chatbot Messages */
.chatbot-messages {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.chatbot-message {
    display: flex;
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

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

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

.message-avatar {
    width: 30px;
    height: 30px;
    background-color: #0d6efd;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-right: 10px;
    flex-shrink: 0;
}

.message-content {
    background-color: #e9ecef;
    padding: 10px 15px;
    border-radius: 18px;
    max-width: 70%;
}

.user-message .message-content {
    background-color: #0d6efd;
    color: white;
}

.message-content p {
    margin: 0;
    word-break: break-word;
}

/* Typing Indicator */
.typing-dots {
    display: flex;
    padding: 5px 0;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    animation: dot-pulse 1.5s infinite ease-in-out;
}

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

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

@keyframes dot-pulse {
    0%, 60%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    30% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Suggested Questions */
.chatbot-suggestions {
    margin: 10px 0;
    animation: fadeIn 0.5s ease;
}

.chatbot-suggestions p {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
}

.suggestion-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggested-question {
    background-color: #e9ecef;
    border: none;
    border-radius: 16px;
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
    color: #495057;
    text-align: left;
}

.suggested-question:hover {
    background-color: #dee2e6;
}

/* Chatbot Input Area */
.chatbot-input-area {
    display: flex;
    padding: 10px 15px;
    background-color: #fff;
    border-top: 1px solid #dee2e6;
}

.chatbot-input {
    flex: 1;
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
    transition: border-color 0.2s;
}

.chatbot-input:focus {
    border-color: #0d6efd;
}

.chatbot-send {
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
}

.chatbot-send:hover {
    background-color: #0b5ed7;
}

/* Toggle Button */
.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #0d6efd;
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 9999 !important;
    pointer-events: auto !important;
    transition: all 0.3s ease;    
}



.chatbot-toggle:hover {
    background-color: #0b5ed7;
    transform: scale(1.05);
}

.chatbot-toggle.hidden {
    transform: scale(0);
    opacity: 0;
}

/* WhatsApp Button - Modified to always be visible */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-button:hover {
    background-color: #128c7e;
    transform: scale(1.05);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 576px) {
    .veridex-chatbot-container {
        width: calc(100% - 40px);
        height: 400px;
        bottom: 80px;
    }
    
    .message-content {
        max-width: 80%;
    }
}




    