﻿/*****************
    used on AI chatbot
***********************/
.btn-chatbot {
    background: var(--info-hover);
    color: var(--light);
    width: 56px;
    height: 56px;
    line-height: 56px;
    margin-right: -15px;
    border-radius: 40px;
    font-size: 22px;
    padding-top: 2px;
}

    .btn-chatbot:hover,
    .btn-chatbot:focus {
        background: var(--info);
        color: var(--light);
    }

#chatbotModal .btn-enter {
    box-shadow: none;
    margin: 0;
    border: 1px solid #ccc;
}

    #chatbotModal .btn-enter:focus,
    #chatbotModal .btn-enter:hover {
        box-shadow: none;
        margin: 0;
    }

#chatbotModal .modal-dialog {
    height: 90%;
    transform: none !important;
    transition: none !important;
}

/* Disable fade animation that causes the centering issue */
#chatbotModal.modal.fade .modal-dialog {
    transform: none !important;
    transition: none !important;
}

#chatbotModal.modal.show .modal-dialog {
    transform: none !important;
}

/*#chatbotModal .modal.fade .modal-dialog {
    transition: -webkit-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
    -webkit-transform: translate(0, -50px);
    transform: translate(0, -50px);
}*/
#chatbotModal .modal-body {
    max-width: 450px;
    height: 100%;
    min-height: 550px;
    border-radius: 0 0 20px 20px; /* Curved bottom edges */
    overflow: hidden; /* Ensures content respects border radius */
}
#chatbotModal.show {
    pointer-events: none;
}

#chatbotModal .modal-dialog {
    pointer-events: all;
}
#chatbotModal .modal-content {
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 1050;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    /*width: 100%;*/
    max-width: 350px;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 20px; /* Elegant curved edges all around */
    outline: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); /* Subtle shadow for depth */
}

#chatbotModal .modal-header {
    border-radius: 20px 20px 0 0; /* Curved top edges */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

#chatbotModal .modal-backdrop {
    /*make it so that they can read the page even while modal is open*/
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: transparent;
}

body.modal-open {
    /*make it so that they can scroll page even while modal is open*/
    overflow: scroll !important;
}
/** styles targeting the iframe **/
#frmEventChatbot {
    height: 100%;
    width: 100%;
    min-height: 500px;
    max-height: 600px;
    border-radius: 15px; /* Curved edges for iframe */
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#pnlEventChatBotIFrame {
    padding: 10px;
    border-radius: 15px; /* Curved edges for panel */
}

    #pnlEventChatBotIFrame .scroll-container {
        display: flex;
        flex-direction: column-reverse;
        border: 1px solid #ccc;
        padding: 15px;
        height: 450px;
        background-color: #f9f9f9;
        overflow-y: scroll;
        border-radius: 15px; /* Curved edges for scroll container */
    }

.text-bubble {
    display: inline-block;
    border: 1px solid #eee;
    width: 70%;
    margin: 12px;
    padding: 8px 12px;
    background-color: #eef;
    border-color: #99f;
    border-radius: 0 20px 12px 20px;
}


/*******not being used, but hope to impliment********/
.aibot { /*ai convo*/
    background-color: #eef;
    border-color: #99f;
    border-radius: 0 20px 12px 20px;
}

    .aibot::before {
        /* Set the font for this icon style */
        font-family: 'Font Awesome 6 Pro';
        /* Set the weight for this icon style */
        font-weight: 900;
        /* Make sure icons render pixel-perfect */
        -webkit-font-smoothing: antialiased;
        /* Set the Unicode value for the "fa-ghost" icon */
        content: '\e3b8 ';
        color: #99f;
    }

.paxquery { /*pax convo*/
    background-color: #efe;
    border-color: #9f9;
    border-radius: 12px 20px 0 20px;
    margin-left: 28%;
}

    .paxquery::before {
        /* Set the font for this icon style */
        font-family: 'Font Awesome 6 Pro';
        /* Set the weight for this icon style */
        font-weight: 900;
        /* Make sure icons render pixel-perfect */
        -webkit-font-smoothing: antialiased;
        /* Set the Unicode value for the "fa-ghost" icon */
        content: '\f27a ';
        color: #9f9;
    }
