﻿#SyntheticExpert {
    position: relative;
}

    #SyntheticExpert .modal-dialog {
        position: fixed;
        width: 100%;
        margin: 0;
        padding: 10px;
    }

    #SyntheticExpert .conversation-list li {
        margin-bottom: 16px !important;
    }

    #SyntheticExpert .conversation-list {
        list-style: none;
        padding: 0;
        margin-bottom: 0;
    }

        #SyntheticExpert .conversation-list .odd .conversation-text {
            float: right !important;
            margin-left: 0;
            margin-right: 12px;
            text-align: right !important;
            width: calc(100% - 48px);
        }

        #SyntheticExpert .conversation-list .conversation-text {
            width: calc(100% - 48px);
            margin-left: 12px;
            margin-right: 0px;
            text-align: left;
        }

        #SyntheticExpert .conversation-list .odd .ctext-wrap {
            background-color: #f0f1f2;
            border-radius: 6px 0 6px 6px;
            margin-left: 0px;
        }

        #SyntheticExpert .conversation-list .ctext-wrap {
            background: #71b6f9;
            display: inline-block;
            padding: 12px;
            position: relative;
            margin-left: 12px;
        }

            #SyntheticExpert .conversation-list .ctext-wrap .user-name {
                display: block;
                font-size: 12px;
                font-weight: 600;
                position: relative;
            }

        #SyntheticExpert .conversation-list .odd .conversation-text {
            float: right;
            margin-left: 0;
            margin-right: 12px;
            text-align: right;
        }

        #SyntheticExpert .conversation-list .ctext-wrap div.seresponse {
            margin: 0;
            padding-top: 4px;
            line-height: 18px;
            text-align: left;
        }

        #SyntheticExpert .conversation-list .odd .ctext-wrap:after {
            left: 100%;
            right: auto;
            border-right-color: transparent;
            border-left-color: #f0f1f2;
            border-top-color: #f0f1f2;
        }

        #SyntheticExpert .conversation-list li:not(.odd) .ctext-wrap:after {
            content: " ";
            position: absolute;
            right: 100%;
            top: 0;
            border: solid transparent;
            border-right-color: #71b6f9 !important;
            border-top-color: #71b6f9 !important;
            border-width: 5px;
        }

        #SyntheticExpert .conversation-list .ctext-wrap:after {
            left: -10px;
            top: 0;
            border: solid transparent;
            content: " ";
            height: 0;
            width: 0;
            position: absolute;
            pointer-events: none;
            border-width: 6px;
            margin-right: -1px;
        }

        #SyntheticExpert .conversation-list li.odd .chat-avatar {
            float: right !important;
        }

        #SyntheticExpert .conversation-list .chat-avatar {
            float: left;
            text-align: center;
            width: 36px;
        }

            #SyntheticExpert .conversation-list .chat-avatar img {
                border-radius: 50%;
                width: 100%;
            }

        #SyntheticExpert .conversation-list li:not(.odd) .ctext-wrap {
            background: #71b6f9;
            border-radius: 0 6px 6px 6px;
            display: inline-block;
            padding: 12px;
            position: relative;
            color: #fff;
        }

        #SyntheticExpert .conversation-list li:not(.odd) .conversation-text {
            float: left;
            margin-left: 0px;
        }

    #SyntheticExpert ul.conversation-list, #SyntheticExpert ul.conversation-list li {
        display: table;
        width: 100%;
    }

    #SyntheticExpert .modal-footer {
        display: table;
        width: 100%;
    }

        #SyntheticExpert .modal-footer input[type=text] {
            float: left;
            width: calc(100% - 42px);
        }

        #SyntheticExpert .modal-footer button.btn-info {
            float: left;
            padding: 7px 10px !important;
            margin-left: 4px !important;
        }

    #SyntheticExpert .expertellipsis::before {
        content: '';
        display: inline-block;
        width: 1em;
        text-align: left;
        animation: expertellipsis 1s infinite;
    }

    #SyntheticExpert .modal-body {
        /*max-height: 400px;*/
        overflow: auto;
    }

    #SyntheticExpert li.odd div.seresponse p {
        text-indent: 0px !important;
    }

.chatagentwhite {
    --llm-text-color: white !important;
}

#SyntheticExpertExpandAndMinimize {
    float: right;
    padding-top: 12px;
    margin-right: 5px;
    cursor: pointer;
}

body.SEModalOpen.modal-open {
    overflow: auto !important;
}

#SyntheticExpert .sepickerholder {
    float: right;
    width: 150px;
    margin-bottom: 0px;
    margin-right: 10px;
}

@keyframes expertellipsis {
    0% {
        content: '';
    }

    33% {
        content: '.';
    }

    66% {
        content: '..';
    }

    100% {
        content: '...';
    }
}
/* SyntheticExpert modal — drop-in replacement */

/* Dialog: behave like a movable/resizable panel */
#SyntheticExpert .modal-dialog {
    position: fixed;
    margin: 0;
    pointer-events: auto;
    box-sizing: border-box;
    max-width: none !important; /* remove Bootstrap cap */
    transition: none !important; /* avoid jank during resize/drag */
}

/* Disable Bootstrap's transform animation for this modal */
#SyntheticExpert .modal.fade .modal-dialog {
    transform: none !important;
}

/* Flex layout so footer pins to bottom from the start */
#SyntheticExpert .modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#SyntheticExpert .modal-header,
#SyntheticExpert .modal-footer {
    flex: 0 0 auto;
}

#SyntheticExpert .modal-body {
    flex: 1 1 auto;
    overflow: auto;
    min-height: 0; /* important for flex scrolling in some browsers */
}

/* jQuery UI resizable essentials (no full UI CSS required) */
#SyntheticExpert .ui-resizable {
    position: relative;
}

#SyntheticExpert .ui-resizable-handle {
    position: absolute;
    display: block;
    z-index: 1002;
    font-size: 0;
    touch-action: none;
}

/* Edge handles */
#SyntheticExpert .ui-resizable-n {
    cursor: n-resize;
    height: 8px;
    top: 4px;
    left: 0;
    right: 0;
}

#SyntheticExpert .ui-resizable-s {
    cursor: s-resize;
    height: 8px;
    bottom: 4px;
    left: 0;
    right: 0;
}

#SyntheticExpert .ui-resizable-e {
    cursor: e-resize;
    width: 8px;
    right: 4px;
    top: 0;
    bottom: 0;
}

#SyntheticExpert .ui-resizable-w {
    cursor: w-resize;
    width: 8px;
    left: 4px;
    top: 0;
    bottom: 0;
}

/* Corner handles */
#SyntheticExpert .ui-resizable-se {
    cursor: se-resize;
    width: 14px;
    height: 14px;
    right: 7px;
    bottom: 7px;
}

#SyntheticExpert .ui-resizable-sw {
    cursor: sw-resize;
    width: 14px;
    height: 14px;
    left: 7px;
    bottom: 7px;
}

#SyntheticExpert .ui-resizable-ne {
    cursor: ne-resize;
    width: 14px;
    height: 14px;
    right: 7px;
    top: 7px;
}

#SyntheticExpert .ui-resizable-nw {
    cursor: nw-resize;
    width: 14px;
    height: 14px;
    left: 7px;
    top: 7px;
}

/* UX niceties during resize/drag */
body.ui-resize-active {
    user-select: none;
}

    body.ui-resize-active #SyntheticExpert .modal-dialog,
    body.ui-resize-active #SyntheticExpert .modal-content {
        transition: none !important;
    }
