﻿#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: flex;
    width: 100%;
    padding-top: 12px;
}

#SyntheticExpert .se-input-container {
    position: relative;
    flex: 1 1 auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 15px 38px 15px;
    color: #333;
    cursor: pointer;
}

    #SyntheticExpert .se-input-container textarea,
    #SyntheticExpert .se-input-container textarea.form-control {
        width: 100%;
        min-height: 34px;
        max-height: 160px;
        border: none !important;
        resize: none !important;
        background: transparent !important;
        box-shadow: none !important;
        color: inherit;
        font-size: 13px;
        line-height: 1.4;
        padding: 0 !important;
        outline: none;
    }

    #SyntheticExpert .se-input-container textarea::placeholder {
        color: #999;
    }

#SyntheticExpert .se-file-pill-container {
    position: absolute;
    left: 40px;
    bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: calc(100% - 96px);
}

    #SyntheticExpert .se-file-pill-container .file-pill {
        background: #eef3ff;
        border-radius: 12px;
        padding: 2px 10px;
        font-size: 11px;
        line-height: 18px;
        display: inline-flex;
        align-items: center;
        color: #3a539b;
        gap: 6px;
    }

        #SyntheticExpert .se-file-pill-container .file-pill .file-pill-label {
            display: inline-block;
            max-width: 200px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        #SyntheticExpert .se-file-pill-container .file-pill button.remove-file {
            background: transparent;
            border: none;
            color: #6573a4;
            cursor: pointer;
            font-size: 14px;
            line-height: 1;
            padding: 0;
        }

        #SyntheticExpert .se-file-pill-container .file-pill button.remove-file:hover,
        #SyntheticExpert .se-file-pill-container .file-pill button.remove-file:focus {
            color: #2f4fa6;
            outline: none;
        }

#SyntheticExpert .se-attachment-history {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    #SyntheticExpert .se-attachment-history .attachment-pill {
        background: #eef3ff;
        border-radius: 12px;
        padding: 2px 10px;
        font-size: 11px;
        line-height: 18px;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: #3a539b;
    }

        #SyntheticExpert .se-attachment-history .attachment-pill .fa {
            color: inherit;
            font-size: 12px;
        }

        #SyntheticExpert .se-attachment-history .attachment-pill a,
        #SyntheticExpert .se-attachment-history .attachment-pill .attachment-pill-label {
            color: inherit;
            max-width: 220px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        #SyntheticExpert .se-attachment-history .attachment-pill a {
            text-decoration: none;
        }

            #SyntheticExpert .se-attachment-history .attachment-pill a:hover,
            #SyntheticExpert .se-attachment-history .attachment-pill a:focus {
                text-decoration: underline;
            }

#SyntheticExpert .se-attach-btn,
#SyntheticExpert .se-send-btn {
    position: absolute;
    bottom: 8px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #0072c6 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 26px;
}

    #SyntheticExpert .se-attach-btn:hover, #SyntheticExpert .se-attach-btn:focus,
    #SyntheticExpert .se-send-btn:hover, #SyntheticExpert .se-send-btn:focus {
        color: #005a9c !important;
        outline: none;
    }

    #SyntheticExpert .se-attach-btn i,
    #SyntheticExpert .se-send-btn i {
        pointer-events: none;
    }

    #SyntheticExpert .se-attach-btn {
        left: 6px;
    }

    #SyntheticExpert .se-send-btn {
        right: 6px;
    }

#SyntheticExpert .se-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    opacity: 0;
}

    #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;
    }
