/ src / css / messages.css
/**
 * SeekQuarry/Yioop --
 * Open Source Pure PHP Search Engine, Crawler, and Indexer
 *
 * Copyright (C) 2009 - 2026  Chris Pollett chris@pollett.org
 *
 * LICENSE:
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 * END LICENSE
 *
 * @author Chris Pollett
 * @license https://www.gnu.org/licenses/ GPL3
 * @link https://www.seekquarry.com/
 * @copyright 2009 - 2026
 * @filesource
 */
/*
    messages.css
    Stylesheet for User messages
 */
.mobile .inner-bar h1 span
{
    top: -15px;
}
.mobile .sub-top-container
{
    margin-top: .5in;
}
.messages-container,
.mail-container
{
    border: 1px solid #CDE;
    display: flex;
    height: 7in;
    /* the top nav bar is a 65px fixed .top-container; keep the
       container's top border a few px clear of it */
    margin-top: 72px;
    width: 100%;
}
.mobile .messages-container,
.mobile .mail-container
{
    height: 5in;
    margin-top: 66px;
}
.contacts-arrow
{
    color: gray;
    font-size: 20pt;
    padding: 10px;
    text-decoration: none;
}
.user-contacts,
.user-accounts
{
    overflow-y: scroll;
    overflow-x: auto;
    width: 28%;
    /* floor wide enough for the full six-icon socialcontrols row
       (six ~38px buttons + gaps, the reserved scrollbar, and the
       wrap padding) plus headroom so it never wraps on desktop;
       28% still applies once the viewport is wider, and the
       split-adjuster can resize from here */
    min-width: 3.1in;
}
.mobile .user-contacts,
.mobile .user-accounts
{
    width: 100%;
    min-width: 0;
}
.socialcontrols-wrap
{
    margin: 9px auto 5px auto;
    padding: 0 4px;
    box-sizing: border-box;
    max-width: 100%;
}
.contact-detail
{
    border: 1px solid #CDE;
    width: 100%;
}
.selected-contact
{
    background: #F5F5DC;
}
.contact-detail-inner
{
    padding: 10px;
    position: relative;
}
.contact-detail a,
.contact-detail span
{
    color: black;
    font-size: 16pt;
    position: absolute;
    text-decoration: none;
    top: 17px;
}
.contact-detail-request
{
    margin-left:5px;
    margin-right:5px;
    position:relative;
    top:-45px;
}
.html-ltr .contact-detail a,
.html-ltr .contact-detail span
{
    left: 60px;
}
.html-rtl .contact-detail a,
.html-rtl .contact-detail span
{
    right: 60px;
}
.contact-detail a:hover
{
    text-decoration: underline;
}
.contact-detail:hover
{
    background: #E9F5DC;
}
.contact-actions button
{
    display: none;
}
.contact-actions input
{
    border-radius: 5px;
    font-size: 24pt;
    font-weight: bold;
    margin: 4px;
}
.contact-actions:focus-within button
{
    background-color: #F0F0F6;
    border:1px solid gray;
    border-radius:5px;
    color:black;
    display:inline;
    font-size:11pt;
    font-weight:bold;
    height: 16pt;
    margin-bottom:4px;
}
.mobile .contact-actions:focus-within button
{
    font-size: 14pt;
    height:unset;
    z-index: 1000;
}
.split-adjuster
{
    background-color: #CDE;
    cursor: ew-resize;
    height: 100%;
    width: 2px;
}
.contact-messages,
.account-messages
{
    flex: 1;
}
.selected-conversation-header
{
    background-color: #FED;
    height: 50px;
    width: 100%;
}
.selected-conversation-header .call-controls
{
    min-width: 70px;
    padding-left:10px;
    padding-right:10px;
    position: relative;
    top:3px;
}

.selected-conversation-header h2
{
    padding-left:20px;
    padding-right:20px;
    position: relative;
    top:5px;
    width: fit-content;
}
.mobile .selected-conversation-header h2
{
    min-width: 200px;
    overflow: hidden;
    text-wrap: nowrap;
}
.selected-conversation-header h2 span
{
    position: relative;
    top:-10px;
}
.conversation
{
    display: flex;
    flex-direction: column-reverse;
    height: calc(100% - 110px);
    overflow-y: scroll;
}
#av-call
{
    background: black;
    color: white;
    display: none;
    height: calc(100% - 49px);
}
#av-call-div
{
    background: white;
    border-radius: 20%;
    font-size: 1in;
    height: 1.4in;
    left: 55%;
    padding-top: 15px;
    position: absolute;
    text-align: center;
    top: 40%;
    width: 1.5in;
}
.mobile #av-call-div
{
    left: 33%;
    top: 37%;
}
#local-av
{
    display: block;
    height: 20%;
    position: relative;
    left: 80%;
    top: -8px;
    width: 20%;
    z-index: 20;
}
.mobile #local-av
{
    float: right;
    left: initial;
    right:5px;
    top: 0;
}
#remote-av
{
    display:block;
    margin:0;
    padding: 0;
    position: relative;
    top: calc(-13% - 8px);
    width: 100%;
    z-index: 1;
}
.video-call
{
    background-color: #8FA;
}
#video-end
{
    display: none;
}
.video-call-end
{
    background-color: #F55;
}
.message-detail-outer
{
    display: inline-block;
    max-width: 50%;
    overflow-wrap: anywhere;
    text-align: justify;
}
.message-detail-outer img
{
    max-width: 100%;
}
.mobile .message-detail-outer
{
    display: inline-block;
    max-width: 90%;
    overflow-wrap: anywhere;
    text-align: justify;
}
.message-icon
{
    border: 2px solid lightblue;
    border-radius: 17px;
    width:35px;
}
.message-other-time,
.message-user-time
{
    color: #BBB;
    font-size: 10pt;
}
.html-ltr .message-user-time
{
    margin-right:0.5in;
}
.html-rtl .message-user-time
{
    margin-left:0.5in;
}
.html-rtl .message-other-time
{
    margin-right:0.08in;
}
.html-ltr .message-other-time
{
    margin-left:0.08in;
}
.message-detail
{
    padding: 7px;
    margin: 5px .5in 5px .5in;
    width: fit-content;
}
.html-ltr .message-detail
{
    border-radius: 7px 7px 0px 7px;
}
.html-rtl .message-detail
{
    border-radius: 7px 7px 7px 0px;
}
.html-ltr .top-corner
{
    border-radius: 0 7px 7px 7px;
}
.html-rtl .top-corner
{
    border-radius: 7px 0px 7px 7px;
}
.user-messages-warning,
.user-mail-warning
{
    background-color: #FED;
    border-color: #FEB;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #860;
    margin: auto;
    padding: 10px;
    position: relative;
    top: 40%;
    text-align: center;
    width: fit-content;
}
#new-message-container
{
    left: 0;
    margin:auto;
    position: relative;
    text-align: center;
}
#new-message
{
    border: none;
    font-size: 18pt;
    height:40px;
    width: 95%;
    resize: none;
    outline: none;
    background-color: transparent;
    display: inline-block;
}
.mobile #new-message
{
    border: none;
    font-size: 18pt;
    height:40px;
    resize: none;
    outline: none;
    background-color: transparent;
    display: flex;
    flex-shrink: inherit;
}
#attach-new-file,
#send-message
{
    background-color: #EEF;
    border-radius: 20px;
    border: solid 1px gray;
    color: #000;
    cursor: pointer;
    display: inline-block;
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    padding: 12px;
    text-align: center;
    text-decoration: none;
}
#attach-new-file
{
    font-size: 18px;
    padding-bottom: 8px;
}
#contact-filter
{
    width: 1.9in;
}
.mobile #contact-filter
{
    width: 340px;
}
#user-input-container
{
    padding-bottom: 8px;
    border-radius: 20px;
    border: solid 1px gray;
    color: #000;
    display: inline-flex;
    height:40px;
    resize: none;
    width: 50%;
    text-align: start;
}
#emoji-picker-button
{
    height:40px;
    border: none;
    font-size: 22px;
    background-color: transparent;
    cursor: pointer;
    display: inline-block;
    margin-top: 5px;
    margin-left: 2px;
}
.emoji-picker-container
{
    display: none;
    border: solid 1px gray;
    border-radius: 5px;
    width: 400px;
    position: absolute;
    bottom: 105%;
    height: 350px;
    background-color: white;
    z-index: 1;
}
.mobile .emoji-picker-container
{
    display: none;
    border: solid 1px gray;
    border-radius: 5px;
    width: 250px;
    position: absolute;
    bottom: 105%;
    height: 300px;
    background-color: white;
    z-index: 1;
}
.emoji
{
    border: none;
    display: inline-block;
    font-size: 22px;
    cursor: pointer;
    font-size: 35px;
    padding: 2px;
    margin: 2px;
}
.emoji-group-navigator
{
    position: absolute;
    bottom: 0;
    height: 15%;
    border-top: 1px solid grey;
    text-align: center;
    z-index: 2;
    width: 100%;
}
.emoji-group-container
{
    display: none;
    text-align: left;
    height: 85%;
    position: absolute;
    width: 100%;
}
.emoji-container
{
    width: 100%;
    height: 90%;
    overflow-y: scroll;
    position: relative;
    padding: 10px;
}
#emoji-group-name
{
    font-size: 10px;
    text-transform: uppercase;
    color: gray;
    margin: 5px;
}
.active-emoji-group
{
    display: flex;
    flex-direction: column;
}
.emoji-group-tab
{
    margin: 5px;
    font-size: 22px;
    cursor: pointer;
    display: inline-block;
    padding: 5px;
}
.mobile .emoji-group-tab
{
    margin: 2% 0 0 0;
    font-size: 100%;
    display: inline-block;
    padding: 2%;
}
.active-emoji-group-tab
{
    background-color: gainsboro;
    border: 1px solid grey;
    border-radius: 10%;
}
#new-message-container form {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}
#audio-record-btn {
    background-color: #EEF;
    border-radius: 20px;
    border: solid 1px gray;
    color: #000;
    cursor: pointer;
    display: inline-block;
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    width: 44px;
    height: 44px;
}
.audio-control {
    background-color: #EEF;
    border-radius: 20px;
    border: solid 1px gray;
    color: #000;
    cursor: pointer;
    display: inline-block;
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    width: 44px;
    height: 44px;
}
#audio-controls {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}
#audio-controls.none {
    display: none;
}
#mic-icon,
#play-audio-btn,
#delete-audio-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.recording {
    background-color: #EEF !important;
    color: red;
}
.ai-summary-hidden {
    display: none;
    margin-left: 65px;
}
/* Audio transcription styles */
.audio-message-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 8px 0;
    width: 300px;
    max-width: 100%;
}
.audio-player-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: -4px;
}
.audio-message-container audio {
    width: 100%;
    border-radius: 4px;
}
.transcribe-btn {
    position: absolute;
    top: -12px;
    left: -12px;
    background-color: transparent;
    border: none;
    color: #000;
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
    height: auto;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    z-index: 1;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}
.transcribe-btn:hover {
    transform: scale(1.2);
    text-shadow: 0 0 5px rgba(255, 255, 255, 1);
}
.transcribe-btn:active {
    transform: scale(0.95);
}
.transcript-container {
    display: none;
    padding: 8px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    max-height: 200px;
    overflow-y: auto;
    word-spacing: -0.1em;
}
.transcript-container.show {
    display: block;
}
.transcript-container.loading {
    color: #666;
    font-style: italic;
}
.transcript-container.error {
    color: #d32f2f;
    font-style: italic;
}

#translation-language-list {
    max-height: 150px;
    overflow-y: auto;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;
    background: white;
}
#translation-language-list li:first-child {
    border-top: none;
}
#translation-language-list li:last-child {
    border-bottom: none;
}
X