.containerListChat {
    width: 100%;
    height: 80%;
    overflow: auto;
    padding-right: 5px;
}

#chat-list {
	display: flex;
    flex-direction: column;
    gap: 5px;
	height: 100%;
	width: 100%;
}

.chat-tab {
	font-size: 14px;
    font-weight: 500;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px;
    background: #ababab;
    transition: 0.3s;
    cursor: pointer;
	border-radius: 5px;
}

.chat-tab.active {
	background: #8b008b;
	color: white;
}

.chat-tab:hover {
	opacity: 0.7;
}

.chat-title {
	width: 70%;
	font-size: 14px;
}

.chat-actions {
	width: 30%;
    display: flex;
    gap: 2px;
	justify-content: flex-end;
}

.chat-actions > button {
	padding: 3px 5px;
    border-radius: 3px;
    background: #ffffffde;
    border: 1px solid #00000017;
    cursor: pointer;
    transition: 0.4s;
    display: flex;
    align-items: center;
}

.chat-actions > button:hover {
	background: black;
	color: white;
}

.chat-actions-container {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
    color: #ffffff;
    background: #472a3f;
    padding: 10px;
	font-size: 14px;
	font-weight: 500;
	border-radius: 5px;
}

.chat-actions-container > button {
	padding: 2px 5px;
    border-radius: 3px;
    background: #ffffffde;
    border: 1px solid #00000017;
    cursor: pointer;
	display: flex;
	align-items: center;
    transition: 0.4s;
}

.chat-actions-container > button:hover {
	background: black;
    color: white;
}

#user-input {
    border: none !important;
    background: transparent;
    box-shadow: none !important;
    font-size: 16px;
    transition: 0.3s;
    width: 100%;
    color: #ffffff;
    overflow: auto !important; /* Скрываем скроллбар */
    height: 25px; /* Высота по умолчанию */
    min-height: 25px; /* Минимальная высота */
    max-height: 100px; /* Максимальная высота */
    resize: none; /* Запрещаем изменение размера пользователем */
}

#user-input::placeholder {
    color: white;
    opacity: 0.6;
}

#user-input:focus {
	background: transparent !important;
	outline: none; /* Убираем стандартный фокусный контур */
}

/* Стилизация полосы прокрутки для WebKit (Chrome, Safari, Edge) */
#user-input::-webkit-scrollbar {
    width: 12px; /* Ширина вертикальной полосы прокрутки */
}

#user-input::-webkit-scrollbar-track {
    background: #f1f1f1; /* Цвет фона полосы прокрутки */
    border-radius: 10px; /* Округляем углы трека */
}

#user-input::-webkit-scrollbar-thumb {
    background: #888; /* Цвет тумблера (ползунка) */
    border-radius: 10px; /* Округляем углы тумблера */
}

#user-input::-webkit-scrollbar-thumb:hover {
    background: #555; /* Цвет тумблера при наведении */
}

/* Стилизация полосы прокрутки для Firefox */
#user-input {
    scrollbar-width: thin; /* Толщина полосы прокрутки */
    scrollbar-color: #888 #f1f1f10e; /* Цвет тумблера и трека */
}

.bde-code-block-65-156 {
    scrollbar-width: thin; /* Толщина полосы прокрутки */
    scrollbar-color: #888 #f1f1f10e; /* Цвет тумблера и трека */
    padding-right: 5px;
}

.bde-code-block-65-156::-webkit-scrollbar-thumb:hover {
    background: #555; /* Цвет тумблера при наведении */
}

/* Стилизация полосы прокрутки для WebKit (Chrome, Safari, Edge) */
.bde-code-block-65-156::-webkit-scrollbar {
    width: 12px; /* Ширина вертикальной полосы прокрутки */
}

.bde-code-block-65-156::-webkit-scrollbar-track {
    background: #f1f1f1; /* Цвет фона полосы прокрутки */
    border-radius: 10px; /* Округляем углы трека */
}

.bde-code-block-65-156::-webkit-scrollbar-thumb {
    background: #888; /* Цвет тумблера (ползунка) */
    border-radius: 10px; /* Округляем углы тумблера */
}

#file-input {
    display: none;
}

#file-attached-icon {
	display: none;
}

.profile-option {
	background: white;
	color: black;
	padding: 5px;
    box-shadow: 1px 2px 3px #00000094;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    font-weight: 600;
	cursor: pointer;
	transition: 0.3s;
}

.profile-option:hover {
	opacity: 0.7;
}

.profile-option.active {
	background: #472a3f;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

#profile-selector {
	display: flex;
    flex-direction: column;
    gap: 10px;
	width: 100%;
}

.profile-option  > img {
	width: 100%;
    height: 230px !important;
    object-fit: cover;
    border: 1px solid #0000005c;
}

.profile-option > div {
	display: flex;
    flex-direction: column;
    font-size: 20px;
}

.profile-option > div > span {
	font-size: 12px;
    font-weight: 400;
}

#current-avatar {
	width: 50px;
	height: 50px;
    border: 1px solid #e2e2e29e;
    object-fit: cover;
}

/******Стили сообщений*****/
.message {
    padding: 12px 16px 8px 15px;
    		margin: 40px 0 0px 30px;
            border-radius: 5px;
            max-width: 80%;
            position: relative;
            color: rgb(0, 0, 0);
        }

		.message-content > p {
			 margin: 0 0 10px 0;
			 font-weight: 500;
		}

.message-content > svg {
	position: absolute;
    top: 5px;
    right: 5px;
}

.message-content > p > a {
	color: #472a3f !important;
    text-decoration: underline;
}

        .bot {
            align-self: flex-start;
            background: rgba(235, 235, 235, 0.582);
            border-radius: 16px;
            box-shadow: 0 4px 30px rgba(95, 95, 95, 0.1);
            backdrop-filter: blur(8.2px);
            -webkit-backdrop-filter: blur(8.2px);
            border: 1px solid rgba(218, 218, 218, 0.4);
        }

        .bot > h2 {
            font-size: 20px;
        }

        .bot > h3 {
            font-size: 18px;
        }

.bot::before {
	content: '';
    background: url(https://umcmon.ru/wp-content/uploads/2025/05/i-1.webp);
    background-size: cover;
    width: 35px;
    height: 35px;
    display: flex;
    border-radius: 10px;
    background-position: center;
    position: absolute;
    top: -10px;
    left: -40px;
    border: 1px solid #434343;
    box-shadow: 1px 2px 10px #0000007a;
}

.user {
    background: #8b008bb3;
    color: white;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8.2px);
    -webkit-backdrop-filter: blur(8.2px);
    border: 1px solid rgba(255, 216, 245, 0.4);
    align-self: flex-end;
    font-size: 18px;
}

.user > .message-content > p {
    margin: 0;
}

/* Определяем стиль для всей полосы прокрутки */
        #chat-container::-webkit-scrollbar {
            width: 5px; /* Ширина полосы прокрутки */
        }

        /* Определяем стиль для трека полосы прокрутки (фона) */
        #chat-container::-webkit-scrollbar-track {
            background: transparent; /* Прозрачный фон трека */
        }

        /* Определяем стиль для ползунка полосы прокрутки */
        #chat-container::-webkit-scrollbar-thumb {
            background: rgba(184,184,184,0.5); /* Прозрачный черный цвет ползунка */
            border-radius: 10px; /* Закругление углов ползунка */
        }

        /* Стили при наведении на ползунок */
        #chat-container::-webkit-scrollbar-thumb:hover {
            background: rgba(255,255,255,0.7); /* Более темный цвет при наведении */
        }

.play-voice-btn {
    background: none;
    border: none;
    transition: transform 0.2s, opacity 0.2s;
    display: flex;
    cursor: pointer;
    padding: 0;
}

.play-voice-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

.play-voice-btn:hover:not(:disabled) {
    transform: scale(1.1);
    opacity: 0.9;
}

.play-voice-btn > svg {
    fill: #000000;
    border: 1px solid #FFFFFF;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    margin-left: 8px;
}

.loading-indicator {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#typing-indicator {
			width: fit-content;
            min-width: 150px;
            display: flex;
            position: relative;
            color: rgb(0, 0, 0);
            align-items: center;
			transition: 0.5s ease;
			padding: 5px 15px 5px 15px;
            background: #ffffff;
            border-radius: 16px;
            font-weight: 600;
		}

#voice {
	color: white;
	cursor: pointer;
}

.fileObzMessage {
	margin-bottom: 10px;
    padding: 5px 10px;
    background: #00000085;
    border-radius: 5px;
    font-size: 14px;
}

.message-content > img {
	margin-top: 10px;
	transition: opacity 0.3s ease;
    max-height: 600px;
}

.message-content img.loaded {
    opacity: 1;
}

.panel-assist-profiles {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.panel-assist-profiles > div > div {
	font-size: 16px !important;
    font-weight: 500 !important;
    background: transparent;
    color: white;
}

.panel-assist-profiles > div {
	background: transparent;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-assist-profiles > div > img {
	width: 45px;
	height: 45px !important;
	border-radius: 5px;
}

#send-button,#voice,#upload-icon {
	cursor: pointer;
	transition: 0.3s;
}

#send-button:hover,#voice:hover,#upload-icon:hover {
	opacity: 0.7;
}

@media screen and (max-width: 500px) {
    .message > p {
        font-size: 13px;
    }

    .message {
        max-width: 90%;
    }
}

.empty-chat-message {
    display: none;
}

.user-avatar,.bot-avatar {
    display: none;
}

.message-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-direction: column;
    justify-content: center;
    position: absolute;
    right: -30px;
    top: 20px;
}

.copy-button {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 8px;
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
    vertical-align: middle;
    padding: 0;
    display: inline-flex; /* Чтобы SVG выравнивался */
    align-items: center;
    justify-content: center;
    color: #888; /* Цвет иконки по умолчанию */
}

.copy-button:hover {
    opacity: 1;
    color: #472a3f; /* Цвет иконки при наведении */
}

.copy-button svg {
    width: 20px;
    height: 20px;
    fill: #000000;
}

@media screen and (max-width: 500px) {
    .message-controls {
        flex-direction: row;
        justify-content: flex-start;
        position: static;
    }

    .bot::before {
        display: none;
    }

    .message {
        margin: 40px 0 0px 0px;
    }

    .containerListChat {
        height: auto;
    }
}

/*******правый sidebar****/

#menu-476 {
    flex-direction: column;
    overflow: auto;
}
