.close-response, .back-btn{
    cursor: pointer;
    transition: .5s;
    border: 1px solid var(--btnColor);
    padding: 8px 15px;
    font-size: 12px;
    margin-top: -4px;
    border-radius: 4px;
}

.close-response:hover, .back-btn:hover{
    color:var(--brightText);
}

.mod-btn{
    color: var(--brightText) !important;
    background: var(--btnColor);
    padding: 11px;
    border-radius: 4px;
    position: absolute !important;
    right: 20px !important;
    top: 10px !important;
    cursor: pointer;
    font-size: 15px !important;
}

.total-sent-val{
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 12px;
    opacity: .7;
}

.media-btn{
    background:none;
}

.close-arrow{
    cursor: pointer;
    transition: .5s;
    color: var(--themeColor);
    font-size: 17px;
    margin-right: -4px;
    top: 2px;
    position: relative;
}

.close-arrow:hover{
    cursor:pointer;
    transition:.5s;
}


.chat-container {
    height: auto;
    position: relative;
    max-width: 1020px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 120px;
    top: 80px;
}

.chat-body {
    flex-grow: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-input-container {
    position: fixed;
    bottom: 0;
    width: 75%;
    max-width: 1020px;
    left: 250px;
    right: 0;
    margin: auto;
    height: 100px;
    background: var(--background);
    z-index: 9;
}

.chat-input {
    height: 55px;
    border-radius: 100px;
    font-size: 15px;
    width: 100%;
    margin: 20px auto;
    display: block;
    padding: 10px 20px;
    text-indent: 10px;
    padding-right: 75px;
}

.chat-submit-btn {
    position: absolute;
    right: 6px;
    top: 25px;
    font-size: 35px;
    color: var(--themeColor);
    height: 45px;
    cursor: pointer;
}

.ai-resp, .user-resp {
    max-width: 60%;
    border-radius: 29px;
    margin: 5px;
    margin-bottom: 20px;
    padding: 15px;
    word-wrap: break-word; /* Ensure long text breaks into new lines */
}

.ai-resp {
    align-self: flex-start; /* Align AI responses to the left */
}

.user-resp {
    align-self: flex-end; /* Align user responses to the right */
    font-size: 14px;
    padding: 15px 30px;
    border-radius: 30px;
    line-height: 2;
    background: var(--mod); 
}

.ai-pfp {
    height: 30px;
    margin-right: 15px;
    position: relative;
    top: 10px;
}

.ai-resp span {
    color: var(--brightText);
    opacity: 0.9;
}

.ai-bot-persona {
    position: relative;
    left: 50px;
    font-style: italic;
    font-size: 10px;
    top: -20px;
    color: var(--themeColor);
}

.resp-text {
    margin-left: 50px;
    position: relative;
    top: -22px;
    font-size: 14px;
}

.close-interview{
    width: 158px;
    position: fixed;
    top: 16px;
    z-index: 11;
    background: var(--background);
    left: 260px;
}

.pos-perc{
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
}

.neg-perc{
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
}

.arrow-ico{
    font-size: 18px;
}

.col-summary, .col-response, .col-questions{
    height:unset;
}

.col-response, .col-chat, .col-questions{
    margin-bottom: 25px;
}

.chat-mess-user span{
    color: var(--brightText);
}

.no-messages{
    text-align: center;
    margin-top: 22px;
    font-size: 12px;
}

.resp-quest-head{
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 300;
    opacity: .8;
    border-bottom: 0.1px dotted var(--text);
    padding-bottom: 15px;
}

.customer-details span{
    font-weight:300;
    opacity:.8;
}

.cust-name{
    color: var(--brightText);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.cust-veh{
    color: var(--brightText);
    margin-bottom: 7px;
}

.cust-appt{
    text-transform: capitalize;
}

.cust-assigned-advisor{
    margin-bottom: 5px;
}

#message-input{
    height: 200px;
    border-radius: 4px;
    resize: none;
    padding: 20px;
    line-height: 2;
}

.copy-summary-btn, .new-message-btn{
    font-size: 12px;
    position: absolute;
    right: 20px;
    top: 10px;
    color: var(--brightText);
}

.copy-vin-btn{
    cursor: pointer;
    transition: .5s;
    cursor:pointer;
}

.copy-summary-message{
    display:none;
    position: absolute;
    right: 70px;
    color: var(--brightText);
    font-size: 11px;
    top: 21px;
}

.copy-vin-message{
    color: var(--brightText);
    font-size: 11px;
    display:none;
}

.start-interview-btn, .send-sms-btn, .assign-btn, .print-btn, .upload-csv{
    background:var(--mod);
}



.col-chat{
    height: unset;
}

.convo-cont{
    position: relative;
    margin-bottom: 20px;
}

.convo-user{
    padding-right: 11px;
    color: var(--brightText);
}

.convo-message{
    font-style: italic;
    font-weight: 300;
    font-size: 14px;
    margin-top: 15px;
    line-height: 2;
}

.convo-date{
    position: absolute;
    top: 0;
    right: 38px;
    font-size: 12px;
    opacity: .8;
}

.delete-message{
    padding: 6px 7px;
    border-radius: 4px;
    position: absolute;
    right: 0;
    cursor: pointer;
    top: -5px;
    font-size: 15px;
    color: var(--text);
}

.convo-message span{
    color: var(--themeColor);
    font-size: 12px;
    letter-spacing: 2px;
    background: var(--background);
    padding: 6px 6px;
    border-radius: 4px;
    margin: 5px;
    font-style: normal;
    font-weight: 500;
}

.tag-results{
    list-style: none;
    margin: auto;
    padding: 0;
}

.tag-item{
    padding: 17px;
    background: var(--hoverBackground);
    border-radius: 4px;
    width: auto;
    cursor: pointer;
    text-indent: 15px;
    margin-bottom: 5px;
    position: relative;
}

.span-tag-text{
    background: var(--themeColor);
    padding: 5px 15px;
    border-radius: 100px;
    color: var(--brightText);
    position: absolute;
    right: 25px;
    top: 13px;
    text-align: center;
    text-indent: 0;
}

.tag-pfp{
    height: 40px;
    width: 40px;
    background-size: cover;
    position: absolute;
    left: 10px;
    top: 7px;
    border-radius: 4px;
}

.span-name{
    margin-left: 30px;
    color: var(--brightText);
    top: 0px;
    position: relative;
    font-size: 15px;
}

.span-tag-name{
    position: absolute;
    right: 100px;
    color: var(--themeColor);
    top: 18px;
    font-weight: bold;
}

#message-input[contenteditable]:empty:before {
    content: attr(placeholder);
    color: #aaa;
}

.highlight-tag {
    margin-right: 5px;
    color: white;
    background-color: var(--themeColor);
    padding: 8;
    border-radius: 3px;
    font-size: 13px;
}



.recall-data span{
    font-weight: 300;
    opacity: .8;
}

.no-summary{
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: center;
}

.recall-mod-title{
    padding-bottom: 10px;
    border-bottom: 0.1px dotted var(--text);
    margin-bottom: 20px;
}

.media-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .9;
}

.media-viewer-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.media-main img, .media-main video {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
}

.media-thumbnails {
    display: flex;
    overflow-x: auto;
    width: 100%;
    padding: 10px 0;
    gap: 10px;
    justify-content: center;
}

.media-thumbnails .media-item {
    width: 125px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.media-thumbnails .media-item img, .media-thumbnails .media-item video {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.media-prev {
    left: 10px;
}

.media-next {
    right: 10px;
}

.media-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--themeColor);
    border: none;
    color: var(--brightText);
    font-size: 1.7em;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
}


/* Print CSS for customer response  */

/* Hide non-printable elements and style the page for printing */
@media print {
    .btn, .copy-vin-btn, .copy-summary-btn, .copy-vin-message, .copy-summary-message, .new-message-btn {
        display: none !important;
    }

    .row {
        display: block;
    }

    .col-6 {
        width: 100%;
        float: none;
        margin-bottom: 20px;
    }

    /* Prevent breaking inside sections */
    .col-mod {
        page-break-inside: avoid;
        padding: 10px;
        margin-bottom: 10px;
    }

    /* Force the third section (User Response) to start on a new page */
    .col-questions {
        page-break-before: always;
    }

    body {
        font-family: Arial, sans-serif;
        font-size: 12pt;
    }

    .resp-quest-head {
        font-weight: bold;
        margin-bottom: 10px;
    }

    @page {
        margin: 20mm;
    }
}

