html{
    height: auto;
}
body{
    height: auto;
}
main{
    /*height: calc(100vh - 10vmin);*/
    width: 100%;
    display: flex;
    flex-direction: row;
}
.api-tabs{
    display: none;
}
.gptChoice{
    position: relative;
    width: 10vmin;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #000a;
    transition: width 0.3s ease;
    flex-shrink: 0;
}

.leftMenu{


    /* Скрываем скроллбар в Chrome/Safari/Edge */
    &::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
}

.leftMenu::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.leftMenuInner{
    max-height: 80vmin;
    overflow: scroll;
    /* Скрываем скроллбар в Firefox */
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.leftMenuInner a{
    position: relative; /* Делаем ссылку контейнером для позиционирования */
    display: flex; /* Используем flex для центрирования */
    align-items: center; /* Вертикальное центрирование */
    justify-content: center; /* Горизонтальное центрирование */
    width: 20vmin;
    height: 20vmin;
}
.leftMenuInner a img{
    width: 20vmin;
    height: 20vmin;
    object-fit: contain;
}
.chatName{
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    justify-content: center;
    text-align: center;
    padding: 0.5vmin;
    font-size: 3vmin;
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 1);
    pointer-events: none; /* Чтобы текст не перехватывал клики */
    display: -webkit-box;
    -webkit-line-clamp: 3;    /* Ограничиваем количество строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;

}
.switch-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    font-family: Arial, sans-serif;
    cursor: pointer;
    user-select: none;
    width: 30vmin;
    position: relative;
}

.switch-label {
    padding: 8px 12px;
    z-index: 2;
}

.switch-track {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    background-color: #f0f0f0;
    border-radius: 5vmin;
    overflow: hidden;
}

.switch-thumb {
    position: absolute;
    height: 100%;
    width: 50%;
    background-color: #2196F3;
    border-radius: 20px;
    transition: transform 0.3s ease;
    z-index: 1;
}

/* Позиции для состояний */
.switch-thumb.on {
    transform: translateX(0);
}

.switch-thumb.off {
    transform: translateX(100%);
}

/* Стили текста в зависимости от состояния */
#on-label {
    color: white;
}

#off-label {
    color: black;
}

.switch-container.off #on-label {
    color: black;
}

.switch-container.off #off-label {
    color: white;
}
.userArea{
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}
main .dialog{

}
main .input{

}
.dialogArea{
    flex: 1; /* Занимает всё доступное пространство */
  /* overflow-y: scroll;*/

    /* Скрываем скроллбар в Firefox */
    scrollbar-width: none;

    /* Скрываем скроллбар в Chrome/Safari/Edge */
    &::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    transition: flex 0.3s ease; /* Плавное изменение */
    display: flex;
    flex-direction: column;
}
.userInputArea {

    max-height: 90%; /* Максимальная высота */
    display: flex;
    transition: flex 0.3s ease; /* Плавное изменение */
    align-items: center;
    padding: 1vmin;
}

.userInputAreaBorder{
    padding: 1vmin;
    position: relative;
    flex: 1;
}

.userInputTextArea {

    font-size: 4vmin;
    width: 100%;
    min-height: 10vmin; /* Минимальная высота */
    max-height: 60vh;
    resize: none; /* Отключаем ручное изменение размера */
    overflow-y: auto; /* Включаем вертикальную прокрутку при переполнении */
    /*padding: 1vmin;*/
    /*border-radius: 1vmin;*/
    /*border: 1px solid #444;*/
    /*background: rgba(0, 0, 0, 0.7);*/
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-family: inherit;
    line-height: 1.4;
    transition: height 0.2s ease;
}
button{
    background-color: green;
    border-radius: 1vmin;
    box-shadow: inset 0 0 1vmin black;
}
.userInputSend {
    width: 10vmin;
    height: 10vmin;

}
.userInputSend img{
    width: 100%;
    height: 100%;
}
.message{
    margin: 3vmin;
    border-radius: 2vmin;
    padding: 2vmin;
    max-width: 90vmin;
    width: fit-content;

}
.messageHeader{
    display: flex;
    flex-direction: row;
    margin: 1vmin;
    align-items: center;
}

.messageHeader div{
    margin: 1vmin;
}
.messageHeader img{
    width: 5vmin;
    height: 5vmin;
    filter:  drop-shadow(0.1vmin 0.1vmin 0.2vmin black);
}

.messageBot{
    background: #077; /* Фолбэк */
    background: -webkit-radial-gradient(#0ff, #077); /* Старый WebKit */
    background: radial-gradient(#0ff7, #0777); /* Современные браузеры */
    align-self: flex-start;
    /* margin-right: auto;*/
}
.messageUser{
    background: #0707; /* Фолбэк */
    background: -webkit-radial-gradient(#0f07, #0707); /* Старый WebKit */
    background: radial-gradient(#0f07, #0707); /* Современные браузеры */

    align-self: flex-end;
    /* margin-left: auto;*/
}
.messageUser .messageHeader{
    flex-direction: row-reverse;
}
.thinkingContent{
    width: auto;
    white-space: pre-line !important;
    height: auto; /* Чтобы текст не обрезался */
    color: rgb(150, 150, 150);
    display: block;
    overflow-wrap: break-word; /* Переносит длинные слова */
}
.messageContent{
    width: auto;
    white-space: pre-line !important;
    height: auto; /* Чтобы текст не обрезался */
    color: rgb(255, 255, 255);
    display: block;
    overflow-wrap: break-word; /* Переносит длинные слова */
}
.visually-hidden{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.messageButtons{
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}
.action{
    width: 3vmin;
    height: 3vmin;
}
