﻿/* ========================================
   CHATBOT CUSTOM STYLES
   ======================================== */

/* Chat Button (bottom right) */
.custom-chat-btn {
    background-color: #4aa0a3 !important;
    position: fixed !important;
    bottom: 8rem !important;
    right: 1rem !important;
    color: white !important;
    padding: 1rem !important;
    border-radius: 9999px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.3s ease !important;
    z-index: 50 !important;
    border: none !important;
    cursor: pointer !important;
    animation: btn-up-down 1s ease-in-out infinite alternate-reverse both;
}

    .custom-chat-btn:hover {
        background-color: #3d8a8d !important;
        transform: scale(1.1) !important;
    }

/* Chat Window Container */
.custom-chat-window {
    position: fixed !important;
    bottom: 1rem !important;
    right: 1rem !important;
    width: calc(100vw - 2rem) !important;
    max-width: 24rem !important;
    height: calc(100vh - 2rem) !important;
    max-height: 600px !important;
    background-color: white !important;
    border-radius: 1rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 999999;
    !important;
}

/* Chat Header */
.custom-chat-header {
    background: linear-gradient(to right, #4aa0a3, #4aa0a3) !important;
    padding: 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-top-left-radius: 1rem !important;
    border-top-right-radius: 1rem !important;
}

.custom-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

.custom-header-icon {
    background-color: white !important;
    padding: 0.5rem !important;
    border-radius: 9999px !important;
    font-weight: 900;
    color: #2d8689;
}

.custom-header-title {
    color: white !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
}

.custom-header-status {
    color: #e0f2fe !important;
    font-size: 0.75rem !important;
}

.custom-header-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.custom-header-btn {
    color: white !important;
    padding: 0.5rem !important;
    border-radius: 0.5rem !important;
    transition: background-color 0.2s !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
}

    .custom-header-btn:hover {
        background-color: rgba(255, 255, 255, 0.2) !important;
    }

/* Messages Container */
.custom-messages-container {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 1rem !important;
    background-color: #f8fafc !important;
}

.custom-message-wrapper {
    display: flex !important;
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
}

.custom-message-wrapper-user {
    flex-direction: row-reverse !important;
}

.custom-message-wrapper-bot {
    flex-direction: row !important;
}

/* Avatar Icons */
.custom-avatar {
    flex-shrink: 0 !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    padding: 1.2rem !important;
}

.custom-avatar-bot {
    color: #2d8689;
    font-weight: 900;
    border: 3px solid !important;

   
}

.custom-avatar-user {
    border: 3px solid !important;
    color: #2d8689;
}

/* Message Bubbles */
.custom-message-bubble {
    max-width: 85% !important;
    padding: 0.75rem !important;
    border-radius: 1rem !important;
}

.custom-message-bubble-bot {
    background-color: white !important;
    color: #1f2937 !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.custom-message-bubble-user {
    background-color: #4aa0a3 !important;
    color: white !important;
}

.custom-message-text {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
}

/* Responsive message bubbles */
@media (min-width: 640px) {
    .custom-message-bubble {
        max-width: 75% !important;
    }
}

/* Typing Indicator */
.custom-typing-container {
    display: flex !important;
    gap: 0.5rem !important;
    margin-bottom: 0.75rem !important;
}

.custom-typing-bubble {
    background-color: white !important;
    padding: 0.75rem !important;
    border-radius: 1rem !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.custom-typing-dots {
    display: flex !important;
    gap: 0.25rem !important;
}

.custom-typing-dot {
    width: 0.5rem !important;
    height: 0.5rem !important;
    background-color: #9ca3af !important;
    border-radius: 9999px !important;
    animation: bounce 1.4s infinite ease-in-out !important;
}

    .custom-typing-dot:nth-child(1) {
        animation-delay: 0ms !important;
    }

    .custom-typing-dot:nth-child(2) {
        animation-delay: 150ms !important;
    }

    .custom-typing-dot:nth-child(3) {
        animation-delay: 300ms !important;
    }

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-0.5rem);
    }
}

/* WhatsApp Button */
.custom-whatsapp-btn {
    background-color: #25D366 !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 9999px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.2s !important;
    border: none !important;
    cursor: pointer !important;
    margin: 0 auto !important;
}

    .custom-whatsapp-btn:hover {
        background-color: #128C7E !important;
        transform: scale(1.05) !important;
    }

/* Input Container */
.custom-input-container {
    border-top: 1px solid #e5e7eb !important;
    padding: 0.75rem 1rem !important;
    background-color: white !important;
    border-bottom-left-radius: 1rem !important;
    border-bottom-right-radius: 1rem !important;
}

.custom-input-wrapper {
    display: flex !important;
    gap: 0.5rem !important;
}

.custom-input-field {
    flex: 1 !important;
    padding: 0.5rem 0.75rem !important;
    border: 1px solid #d1d5db !important;
    border-radius: 9999px !important;
    font-size: 0.875rem !important;
    outline: none !important;
    color:#080;
}

    .custom-input-field:focus {
        outline: none !important;
        ring: 2px !important;
        ring-color: #4aa0a3 !important;
        border-color: transparent !important;
    }

/* Send Button */
.custom-send-btn {
    background-color: #4aa0a3 !important;
    color: white !important;
    padding: 0.5rem !important;
    border-radius: 9999px !important;
    transition: background-color 0.2s !important;
    border: none !important;
    cursor: pointer !important;
}

    .custom-send-btn:hover {
        background-color: #3d8a8d !important;
    }

    .custom-send-btn:disabled {
        background-color: #d1d5db !important;
        cursor: not-allowed !important;
    }

/* Scrollbar Styling (Optional) */
.custom-messages-container::-webkit-scrollbar {
    width: 6px;
}

.custom-messages-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-messages-container::-webkit-scrollbar-thumb {
    background: #4aa0a3;
    border-radius: 3px;
}

    .custom-messages-container::-webkit-scrollbar-thumb:hover {
        background: #3d8a8d;
    }
