

/**
 * Центр чатов для Геткурса
 * Версия - 0.4.0
 * chatCenter_modeMini.css — Стили мини-режима с плавающими кнопками и выдвижной панелью.
 * 
 * "Центр чатов для Геткурс" — это удобная оболочка для чатов и каналов вашей онлайн-школы на платформе GetCourse.
 * Мы интегрируем все коммуникации в стильный и функциональный интерфейс, скрывая технические ограничения платформы.
 * Благодаря этому ваши ученики получают современный сервис, а вы — удобный инструмент для управления обучающим сообществом.
 * 
 * Автор: Чусовской Роман
 * Контакты: https://chusovskoy.pro/
 *
 * Лицензия: https://excel-club.ru/
 */

/* ========== ОСНОВНЫЕ СТИЛИ ДЛЯ МИНИ-ВЕРСИИ ЧАТОВ ========== */

/* Затемнение фона */

.chat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

.chat-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Предотвращение скролла фона */
body.chat-open {
    overflow: hidden;
}

/* ========== СТИЛИ ДЛЯ КРУГЛЫХ КНОПОК ========== */
.chat-toggle-btn,
.group-toggle-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.chat-toggle-btn:hover,
.group-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.chat-button-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid white;
}

/* Счетчик новых сообщений */
.chat-toggle-btn .unread-badge,
.group-toggle-btn .unread-badge {
    position: absolute;
    bottom: -10px;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

.group-chat-item .unread-badge {
    position: absolute;
    bottom: 11px;
    left: 50px;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

/* Анимация пульсации */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* ========== СТИЛИ ДЛЯ СТЕК-КНОПКИ ========== */
.chat-stack-btn {
    background: linear-gradient(135deg, #4a90e2, #2c7bc0);
    color: white;
    font-weight: bold;
}

.stack-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4444;
    color: white;
    border-radius: 20px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    border: 2px solid white;
    z-index: 9999;
}

.stack-icon {
    font-size: 28px;
}

/* Меню стека */
.stack-menu {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 280px;
    max-width: 320px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.stack-menu.open {
    display: block;
    animation: slideUp 0.2s ease;
}

.stack-menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #eee;
}

.stack-menu-item:hover {
    background-color: #f5f5f5;
}

.stack-menu-item:last-child {
    border-bottom: none;
}

.stack-menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.stack-menu-info {
    flex: 1;
    min-width: 0;
}

.stack-menu-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stack-menu-badge {
    background-color: #ff4444;
    color: white;
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 8px;
    flex-shrink: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== СТИЛИ ДЛЯ ПАНЕЛИ ЧАТА ========== */
.chat-panel {
    position: fixed;
    top: 0;
    right: -500px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.chat-panel.open {
    right: 0;
}


/* Основной хак для Safari */
@media not all and (min-resolution:.001dpcm) {
    @media (max-width:700px) {
        .chat-panel {
            height: calc(100vh - 50px) !important;
        }
    }
}

/* Только для Safari на iOS */
@supports (-webkit-touch-callout: none) {
    @media (max-width:700px) {
        .chat-panel {
            height: calc(100vh - 50px) !important;
        }
    }
}

/* Комбинированный хак для всех Safari (Mac, iOS) */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance: none) {
        @media (max-width:700px) {
            .chat-panel {
                height: calc(100vh - 50px) !important;
            }
        }
    }
}

/* Safari 9-10 и старые iOS */
@media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0) {
    @media (max-width:700px) {
        .chat-panel {
            height: calc(100vh - 50px) !important;
        }
    }
}



/* Заголовок панели */
.chat-panel-header {
    padding: 5px 20px;
    background: #4a90e2;
    color: white;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

/* Контейнер для кнопок в хедере */
.chat-header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Стили для кнопки "Назад" (стрелочка) */
.chat-back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    line-height: 0.8;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.chat-back-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Стили для кнопки закрытия */
.chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.chat-close-btn:hover {
    transform: rotate(90deg);
}

/* Контент панели */
.chat-panel-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.chat-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: white;
}

/* ========== СТИЛИ ДЛЯ ПАНЕЛИ ВЫБОРА ГРУППЫ ========== */
.group-selector-panel {
    width: 400px;
    height: 100vh;
}

.group-selector-panel .chat-panel-header {
    justify-content: space-between;
}

.group-header-title {
    flex: 1;
    text-align: center;
    font-weight: 500;
    font-size: 16px;
    color: white;
    margin: 0;
}

.group-chats-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    background: white;
}

/* Элемент чата внутри группы */
.group-chat-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    gap: 12px;
    margin: 0 8px;
    border-radius: 10px;
}

.group-chat-item:hover {
    background-color: #f5f5f5;
}

.group-chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #858585, #797979);
}

.group-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-chat-info {
    flex: 1;
    min-width: 0;
}

.group-chat-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-chat-last-message {
    font-size: 13px;
    color: #8e8e8e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-chat-time {
    font-size: 11px;
    color: #8e8e8e;
    flex-shrink: 0;
}

.group-chat-badge {
    min-width: 20px;
    height: 20px;
    background-color: #ff4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    flex-shrink: 0;
}

/* Стили для кнопки "Назад" в группе */
.group-back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    line-height: 0.8;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.group-back-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ========== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ========== */
@media (max-width: 768px) {
    .chat-panel,
    .group-selector-panel {
        width: 100%;
        right: -100%;
    }
    
    .chat-toggle-btn,
    .group-toggle-btn {
        width: 50px;
        height: 50px;
    }
    
    .stack-menu {
        min-width: 260px;
        max-width: 280px;
        bottom: 80px;
        right: 20px;
    }
    
    .stack-menu-avatar {
        width: 36px;
        height: 36px;
    }
    
    .stack-menu-title {
        font-size: 13px;
    }
    
    .group-chat-avatar {
        width: 40px;
        height: 40px;
    }
    
    .group-chat-title {
        font-size: 14px;
    }
    
    .group-chat-last-message {
        font-size: 12px;
    }
}

/* ========== ТЕМНАЯ ТЕМА ========== */
.night .chat-panel,
.night .group-selector-panel {
    background: #1a1a1a;
}

.night .chat-panel-header {
    background: #2c3e50;
}

.night .group-chats-list {
    background: #1a1a1a;
}

.night .group-chat-item:hover {
    background-color: #2c2c2c;
}

.night .group-chat-title {
    color: #fff;
}

.night .group-chat-last-message,
.night .group-chat-time {
    color: #8e8e8e;
}

.night .stack-menu {
    background: #1f1f1f;
    border: 1px solid #2c2c2c;
}

.night .stack-menu-item {
    border-bottom-color: #2c2c2c;
}

.night .stack-menu-item:hover {
    background-color: #2c2c2c;
}

.night .stack-menu-title {
    color: #fff;
}

/* ========== СТИЛИ ДЛЯ СКРОЛЛБАРА ========== */
.group-chats-list::-webkit-scrollbar,
.stack-menu::-webkit-scrollbar {
    width: 6px;
}

.group-chats-list::-webkit-scrollbar-track,
.stack-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.group-chats-list::-webkit-scrollbar-thumb,
.stack-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.group-chats-list::-webkit-scrollbar-thumb:hover,
.stack-menu::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.night .group-chats-list::-webkit-scrollbar-track,
.night .stack-menu::-webkit-scrollbar-track {
    background: #2c2c2c;
}

.night .group-chats-list::-webkit-scrollbar-thumb,
.night .stack-menu::-webkit-scrollbar-thumb {
    background: #555;
}

.night .group-chats-list::-webkit-scrollbar-thumb:hover,
.night .stack-menu::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* ========== АНИМАЦИЯ ДЛЯ НОВЫХ СООБЩЕНИЙ ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-panel.open .chat-frame {
    animation: fadeIn 0.3s ease;
}

/* Добавьте в ваш CSS файл */

/* Плавное появление панели */
.chat-panel {
    transition: right 0.3s ease-in-out;
}

.chat-panel.open {
    right: 0;
}

/* Плавное появление панели группы */
.group-selector-panel {
    transition: right 0.3s ease-in-out;
}

.group-selector-panel.open {
    right: 0;
}

/* Анимация для элементов списка */
.group-chat-item {
    animation: slideInFromRight 0.2s ease-out forwards;
    opacity: 0;
    transform: translateX(20px);
}

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Задержка для каждого элемента */
.group-chat-item:nth-child(1) { animation-delay: 0.05s; }
.group-chat-item:nth-child(2) { animation-delay: 0.1s; }
.group-chat-item:nth-child(3) { animation-delay: 0.15s; }
.group-chat-item:nth-child(4) { animation-delay: 0.2s; }
.group-chat-item:nth-child(5) { animation-delay: 0.25s; }
.group-chat-item:nth-child(6) { animation-delay: 0.3s; }
.group-chat-item:nth-child(7) { animation-delay: 0.35s; }
.group-chat-item:nth-child(8) { animation-delay: 0.4s; }
.group-chat-item:nth-child(9) { animation-delay: 0.45s; }
.group-chat-item:nth-child(10) { animation-delay: 0.5s; }

/* ========== СТИЛИ ДЛЯ БЛОКА ОБСУЖДЕНИЯ ========== */

.discussion-block {
    margin-top: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    user-select: none;
    border-top: 1px solid #ccc;
}

.discussion-block-content {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 6px;
    padding: 10px 0px 4px;
    font-size: 13px;
    color: #4a90e2;
    font-weight: 500;
    transition: all 0.2s ease;
}

.discussion-block-content:hover {
    color: #2c7bc0;
    transform: translateX(2px);
}

.discussion-block-text {
    font-weight: 500;
}

.discussion-block-arrow {
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.discussion-block-content:hover .discussion-block-arrow {
    transform: translateX(2px);
}

/* Темная тема */
.night .discussion-block {
    border-top-color: #2c2c2c;
}

.night .discussion-block-content {
    color: #5ca5e6;
}

.night .discussion-block-content:hover {
    color: #7cb8f0;
}

/* Настройки страницы */
body:has(.ApplicationLayout) #gcAccountUserMenu,
.help-widget-button {
    display: none !important;
}

.DesktopLayoutColumn__bg,
.DesktopLayoutColumn__content {
    max-width: 420px !important;
}


.ChatPresenter__content {
    background: url(https://fs.getcourse.ru/fileservice/file/download/a/586882/sc/203/h/c0132f8afa88b4a3a179b7694cb6966d.png) repeat center, linear-gradient(123deg, #84b37d 0%, #ccd5af 50.55%, #70a788 100%); 
}

.ApplicationLayout.with-menu .ChatPresenterLayout.PresenterLayout .PresenterLayout__content {
    margin-bottom: 0;
}

/* Настройки чата */

.CompactHeader {
    height: 70px !important;
}

.CompactHeader__back-wrapper {
    display: none;
}

.ChatMessage__day {
    margin: 20px 0;
}

.ChatMessage__day-text {
    background: rgba(0,0,0,.4);
    color: #fff;
}

.ChatMessage .ChatMessage__right {
    position: relative;
    padding: 8px 12px;
    background: rgba(255,255,255,0.9);
    
    box-shadow: 0 3px 3px 0 rgba(0,0,0,.1);
    overflow: visible;
}

.ChatMessage .ChatMessage__right a {
    word-break: break-all;
}

.ChatMessage .ChatMessage__left {
	align-content: end;
}

.ChatMessage .ChatMessage__author-photo {
    bottom: 7px;
    width: 44px;
    height: 44px;
}

.ChatMessage.__same-author {
    margin-top: -12px;
}

.ChatMessage .ChatMessage__date {
    top: inherit;
    bottom: 0px;
    right: 8px;
}

.ChatMessage .ChatMessage.__another-author {
    margin-top: 0px;
}

.ChatMessage .ChatMessage__author-name {
    margin-top: 3px;
    font-size: 14px;
    font-weight: 500;
    font-family: Roboto, sans-serif;
}

.ChatMessage .ChatMessage__text {
	padding: 3px 0 5px;
    font-family: Roboto, sans-serif;
    color: #292929;
}


.ChatMessage.__another-author:has(+ .__same-author) .ChatMessage__author-photo {
    display: none;
}

.ChatMessage.__same-author:last-child .ChatMessage__author-photo,
.ChatMessage.__same-author:has(+ .__another-author) .ChatMessage__author-photo {
    display: block;
    top: -7px;
    text-align: center;
    align-content: center;
}




.ChatMessage.__another-author .ChatMessage__right {
    border-radius: 15px 15px 15px 0px;
}

.ChatMessage.__another-author:has(+ .__same-author) .ChatMessage__right {
    border-radius: 15px 15px 5px 5px;
}

.ChatMessage.__same-author .ChatMessage__right {
    border-radius: 5px 5px 5px 5px;
}

.ChatMessage.__same-author:last-child .ChatMessage__right,
.ChatMessage.__same-author:has(+ .__another-author) .ChatMessage__right {
    border-radius: 5px 5px 15px 0px;
}

.ChatMessage.__same-author:last-child .ChatMessage__right::before,
.ChatMessage.__same-author:has(+ .__another-author) .ChatMessage__right::before,
.ChatMessage.__another-author .ChatMessage__right::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1px;
    transform: translatex(-100%);
    width: 24px;
    height: 24px;
    
    background: url("data:image/svg+xml,%3Csvg width='75' height='94' viewBox='0 0 75 94' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M74.8201 94H6.32007C-1.42299 94 -2.33233 88.2694 5.15702 86.3035C5.56914 86.1953 5.95795 86.0939 6.32007 86C56.9439 72.873 74.8201 29.9304 74.8201 0V94Z' fill='white' /%3E%3C/svg%3E") no-repeat center / cover;
}

.ChatMessage.__another-author:has(+ .__same-author) .ChatMessage__right::before {
    display: none;
}

.ChatMessageFiles__file {
    margin-right: 0 !important;
}

.ImageFile__preview-wrapper {
    width: 270px !important;
    margin-bottom: 15px;
}


.ChatPresenter__footer-input {
    font-family: Roboto, sans-serif;
    font-weight: 400 !important;
}

@media (max-width: 900px) {
    .ChatMessage .ChatMessage__date {
        margin: 0;
    }
    
    .ChatMessage__date-date {
        display: block !important;
    }
    
    .ChatMessage__wrapper {
        padding-right: 20px;
    }
    
    .ChatPresenter__footer-input {
        margin-bottom: 10px;
    }
}

.chatCenter-iframe .DesktopLayoutColumn__bg, 
.chatCenter-iframe .DesktopLayoutColumn__content {
    max-width: 100% !important;
}

.chatCenter-iframe .ChatMessage {
    max-width: 600px !important;
}

.chatCenter-iframe .CompactHeader__title,
.chatCenter-iframe .CompactHeader__description,
.chatCenter-iframe .CompactHeader__background {
    display: none;
}

.chatCenter-iframe .CompactHeader {
    height: 20px !important;
    background: #4a90e2;
}

.chatCenter-iframe .ChatPresenter__header-button svg {
    color: #fff;
}

.chatCenter-iframe .ApplicationLayout {
    margin-left: 0 !important;
}

/* Оформление инфы о канале */
/* Стили для страницы настроек чата (BlocksPresenter) - светлая тема */
.Presenter .BlocksPresenter {
    background: #f5f5f5;
}

.Presenter .BlocksPresenter .DesktopLayoutColumn__bg,
.Presenter .BlocksPresenter .DesktopLayoutColumn__content {
    max-width: 100% !important;
}

/* Скрываем стандартный хедер на странице настроек */
.Presenter .BlocksPresenter .CompactHeader {
    display: none !important;
}

/* Стили для заголовка блока */
.Presenter .BlocksPresenter .PresenterLayout__content-header {
    padding: 16px 16px 8px 16px;
    background: transparent;
    border-bottom: none;
    margin-bottom: 20px;
}

.Presenter .BlocksPresenter .PresenterLayout__content-header-title {
    font-size: 24px;
    font-weight: 600;
    color: #1f1f1f;
    margin-bottom: 4px;
}

.Presenter .BlocksPresenter .PresenterLayout__content-header-description {
    font-size: 14px;
    color: #6c6c6c;
}

/* Стили для блоков (ScreenBlock) */
.Presenter .BlocksPresenter .ScreenBlock {
    background: #ffffff;
    margin: 0 12px;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.Presenter .BlocksPresenter .ScreenBlock.__clickable {
    margin-bottom: 10px !important;
    border-radius: 6px !important;
}

.Presenter .BlocksPresenter .ScreenBlock:hover {
    background: #fafafa;
    border-color: #d0d0d0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.Presenter .BlocksPresenter .ScreenBlock.__clickable:active {
    transform: scale(0.99);
}

/* Левая часть блока с иконкой/аватаром */
.Presenter .BlocksPresenter .ScreenBlock__left {
    flex-shrink: 0;
}

.Presenter .BlocksPresenter .ScreenBlock__logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.Presenter .BlocksPresenter .Logo.__large {
    width: 48px;
    height: 48px;
    background-size: cover;
    background-position: center;
}

.Presenter .BlocksPresenter .Logo.__medium {
    width: 48px;
    height: 48px;
    font-size: 24px;
    color: #4a90e2;
}

.Presenter .BlocksPresenter .Logo i {
    font-size: 24px;
    color: #4a90e2;
}

/* Правая часть блока */
.Presenter .BlocksPresenter .ScreenBlock__right {
    flex: 1;
    min-width: 0;
}

.Presenter .BlocksPresenter .ScreenBlock__right-wrapper {
    width: 100%;
}

.Presenter .BlocksPresenter .ScreenBlock__item-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.Presenter .BlocksPresenter .ScreenBlock__item-title-left {
    font-size: 16px;
    font-weight: 500;
    color: #1f1f1f;
}

.Presenter .BlocksPresenter .ScreenBlock__item-title-left--with-description {
    margin-bottom: 2px;
}

.Presenter .BlocksPresenter .ScreenBlock__item-title-right {
    font-size: 12px;
    color: #8e8e8e;
}

.Presenter .BlocksPresenter .ScreenBlock__description {
    font-size: 13px;
    color: #8e8e8e;
    line-height: 1.4;
}

/* Стили для кнопки */
.Presenter .BlocksPresenter .ButtonBlock {
    padding: 8px 0 !important;
    margin: 16px 10px 20px !important;
}

.Presenter .BlocksPresenter .ButtonBlock__button {
    width: 100%;
    padding: 12px 20px;
    background: #e74c3c;
    border: none;
    border-radius: 6px !important;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.Presenter .BlocksPresenter .ButtonBlock__button:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.Presenter .BlocksPresenter .ButtonBlock__button:active {
    transform: translateY(0);
}

/* Убираем лишние элементы */
.Presenter .BlocksPresenter .PresenterLayout__footer,
.Presenter .BlocksPresenter .Presenter__loader,
.Presenter .BlocksPresenter .Toolbar,
.Presenter .BlocksPresenter .DesktopAppearance__qr,
.Presenter .BlocksPresenter .FileCatcher {
    display: none !important;
}

/* Стили для темной темы (адаптация под общий стиль) */
.Presenter .BlocksPresenter .ScreenBlock {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Стили для иконок Font Awesome (если используются) */
.Presenter .BlocksPresenter .fa,
.Presenter .BlocksPresenter .fas {
    color: #4a90e2;
}

/* Стили для блока участников */
.Presenter .BlocksPresenter .ScreenBlock:has(.fa-users) .ScreenBlock__item-title-left {
    font-weight: 500;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .Presenter .BlocksPresenter .PresenterLayout__content-header {
        padding: 12px 16px 4px 16px;
        margin-bottom: 16px;
    }
    
    .Presenter .BlocksPresenter .PresenterLayout__content-header-title {
        font-size: 20px;
    }
    
    .Presenter .BlocksPresenter .ScreenBlock {
        margin: 0 10px;
        padding: 10px 14px;
    }
    
    .Presenter .BlocksPresenter .ScreenBlock.__clickable {
        margin-bottom: 8px !important;
    }
    
    .Presenter .BlocksPresenter .ScreenBlock__logo {
        width: 40px;
        height: 40px;
    }
    
    .Presenter .BlocksPresenter .Logo.__large {
        width: 40px;
        height: 40px;
    }
    
    .Presenter .BlocksPresenter .Logo.__medium {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .Presenter .BlocksPresenter .Logo i {
        font-size: 20px;
    }
    
    .Presenter .BlocksPresenter .ScreenBlock__item-title-left {
        font-size: 15px;
    }
    
    .Presenter .BlocksPresenter .ScreenBlock__description {
        font-size: 12px;
    }
    
    .Presenter .BlocksPresenter .ButtonBlock {
        margin: 12px 8px 16px !important;
    }
    
    .Presenter .BlocksPresenter .ButtonBlock__button {
        padding: 10px 16px;
        font-size: 15px;
    }
}

.chatium-page-body.chat-system.chatCenter-iframe .DesktopAppearance__left.__dark,
.chatium-page-body.chat-system.chatCenter-iframe #gcAccountUserMenu,
.chatium-page-body.chat-system.chatCenter-iframe .PreviewWrapper__iphone-bottom-bar,
.chatium-page-body.chat-system.chatCenter-iframe .PreviewWrapper__iphone-time,
.chatium-page-body.chat-system.chatCenter-iframe .PreviewWrapper__iphone-frame  {
	display: none;
}

.chatium-page-body.chat-system.chatCenter-iframe .gc-main-content.with-left-menu {
	margin-left: 0 !important;
}

.chatium-page-body.chat-system.chatCenter-iframe .PreviewWrapper__preview {
	position: static;
	width: 100vw;
	height: 100vh;
}

.chatium-page-body.chat-system.chatCenter-iframe .PreviewWrapper__frame {
	max-width: 100% !important;
}

.chatium-page-body.chat-system.chatCenter-iframe .PreviewWrapper__frame .ButtonBlock__button {
	max-width: 400px;
}

.DesktopAppearance__qr {
    display: none;
}

/* ------------- 
content start - chats_iframe_styles
------------- */

/**
 * Центр чатов для Геткурса
 * Версия - 0.4.0
 * chatCenter_chatiumIframeStyles.css — Стили для iframe-врезок чатов на страницах сайта.
 * 
 * "Центр чатов для Геткурс" — это удобная оболочка для чатов и каналов вашей онлайн-школы на платформе GetCourse.
 * Мы интегрируем все коммуникации в стильный и функциональный интерфейс, скрывая технические ограничения платформы.
 * Благодаря этому ваши ученики получают современный сервис, а вы — удобный инструмент для управления обучающим сообществом.
 * 
 * Автор: Чусовской Роман
 * Контакты: https://chusovskoy.pro/
 *
 * Лицензия: https://excel-club.ru/
 */

/* ========================================
   СОВРЕМЕННЫЕ СТИЛИ ДЛЯ СТРАНИЦЫ ЧАТОВ
   ======================================== */

.doc-row .doc-icon .small-doc-icon .chatium-icon {
    background: none !important;
}

.doc-row .small-doc-icon .chatium-icon {
    box-shadow: none !important
}


/* ----------------------------------------
   БАЗОВЫЕ СБРОСЫ И КОНТЕЙНЕРЫ
   ---------------------------------------- */

.chatium-page-body .in-folder-doc-wrapper,
.chatium-page-body .in-folder-doc-content {
    padding: 0 !important;
    max-width: 100% !important;
    margin: inherit !important;
}

.chatium-page-body .gc-main-content {
    margin-left: 0;
    min-height: 100vh;
}

.chatium-page-body .gc-main-content.with-left-menu .container {
    padding: 0 !important;
}

.folder-container,
.folder-container-inner-padding {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding: 0 !important;
}

.course-content::before {
    display: none;
}

/* Скрытие лишних элементов GetCourse */
.chatium-page-body #gcAccountUserMenu,
.chatium-page-body .doc-breadcrumbs,
.chatium-page-body .visible-xs .chatium-page-nav {
    display: none !important;
}

.in-folder-doc-content .folder-container-inner h1 {
    /*display: none;*/
}

/* ----------------------------------------
   ОБЩЕЕ МЕНЮ (верхнее)
   ---------------------------------------- */

.folder-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: white;
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
}

.folder-header-menu-item {
    padding: 10px 20px;
    border-radius: 12px;
    color: #4a5568;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.folder-header-menu-item:hover {
    background: #f7fafc;
    color: #667eea;
    text-decoration: none;
}

.folder-header-menu-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.folder-header-menu-item.active .fa {
    color: white;
}

/* ----------------------------------------
   ЛЕВАЯ ПАНЕЛЬ СО СПИСКОМ ЧАТОВ
   ---------------------------------------- */

/* Корневой пункт меню */
.folder-header-menu-item-root {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border-radius: 14px;
    margin-bottom: 12px;
    padding: 12px 16px;
    color: #1e293b;
    font-weight: 600;
}

.folder-header-menu-item-root:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.folder-header-menu-item-root .fa-caret-down {
    font-size: 14px;
    color: #94a3b8;
}

/* Контейнер списка чатов */
.left-folder-docs-table {
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    padding-right: 4px;
}

/* Стилизация скроллбара */
.left-folder-docs-table::-webkit-scrollbar {
    width: 4px;
}

.left-folder-docs-table::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 4px;
}

.left-folder-docs-table::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

/* Карточки чатов в левом меню */
.left-folder-docs-table .doc-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 6px;
    border: none;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.left-folder-docs-table .doc-row:hover {
    background: #f8fafc;
    transform: translateX(4px);
}

.left-folder-docs-table .doc-row.active {
    background: linear-gradient(135deg, #f0f4ff 0%, #e9efff 100%);
    border-left: 3px solid #667eea;
    border-radius: 14px 8px 8px 14px;
}

.left-folder-docs-table .doc-row.active .doc-title {
    color: #667eea;
    font-weight: 600;
}

/* Иконки чатов */
.left-folder-docs-table .doc-icon {
    margin-right: 14px;
}

.left-folder-docs-table .chatium-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.left-folder-docs-table .doc-row:hover .chatium-icon {
    transform: scale(1.02);
}

.left-folder-docs-table .chatium-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.left-folder-docs-table .chatium-icon-text {
    font-size: 16px;
    font-weight: 600;
}

/* Текст чата в левом меню */
.left-folder-docs-table .doc-content {
    flex: 1;
    min-width: 0;
}

.left-folder-docs-table .doc-title {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.left-folder-docs-table .doc-description {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ----------------------------------------
   ПРАВАЯ ЧАСТЬ (ОСНОВНОЙ КОНТЕНТ)
   ---------------------------------------- */

.folder-container {
    padding-left: 24px !important;
}

/* Основной контейнер контента */
.course-content {
    background: white;
    border-radius: 24px;
    padding: 28px 32px !important;
    animation: fadeSlideUp 0.3s ease forwards;
}

/* Шапка чата */
.chatium-head-block {
    margin-bottom: 28px;
}

.chatium-head-block h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.chatium-head-block .doc-description {
    font-size: 15px;
    color: #475569;
    line-height: 1.5;
}

/* Кнопки действий */
.chatium-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.chatium-action-buttons .btn {
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 14px;
    border: none;
    transition: all 0.2s;
}

.chatium-action-buttons .btn-default {
    background: linear-gradient(135deg, #007bff 0%, #007bff 100%);
    color: white;
}

.chatium-action-buttons .btn-default:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.35);
    color: white;
}

.chatium-action-buttons .btn-primary {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.chatium-action-buttons .btn-primary:hover {
    background: #eef2ff;
    border-color: #cbd5e1;
    color: #1e293b;
}

.chatium-action-buttons .btn .fa {
    margin-right: 8px;
}

/* Ссылка на чат */
h4 a {
    color: #007bff;
    font-weight: 500;
    text-decoration: none;
    word-break: break-all;
}

h4 a:hover {
    text-decoration: underline;
}

.gray-text-label {
    color: #64748b;
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

/* ----------------------------------------
   ФОРМА НАСТРОЕК
   ---------------------------------------- */

.main-form {
    margin-top: 8px;
}

/* Блок доступа */
.access-radio {
    background: #fafcff;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #eef2ff;
}

.access-radio label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
}

.access-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #007bff;
}

.access-params {
    margin: 8px 0 16px 28px;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #eef2ff;
    font-size: 13px;
    color: #475569;
}

.access-params a {
    margin-left: 4px;
    color: #007bff;
    text-decoration: none;
}

.access-params a:hover {
    text-decoration: underline;
}

/* Правая колонка с чекбоксами */
.checkbox-1 {
    padding-top: 24px;
}

.checkbox-1 .checkbox {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fafcff;
    border-radius: 14px;
    border: 1px solid #eef2ff;
}

.checkbox-1 .checkbox label {
    padding-left: 25px;
    font-weight: 500;
    color: #1e293b;
}

.checkbox-1 .checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 0 0 -25px !important;
    accent-color: #007bff;
}

.checkbox-1 .small {
    margin-top: 4px;
    margin-bottom: 16px;
    padding-left: 28px !important;
    font-size: 12px;
    color: #64748b;
}

/* Кнопки форм */
.chatium-creator-styles .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.chatium-creator-styles .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.chatium-creator-styles .btn-create-invite-link {
    margin-left: 12px;
    padding: 12px 24px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    color: #475569;
    font-weight: 500;
}

.chatium-creator-styles .btn-create-invite-link:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* ----------------------------------------
   СТИЛИ ДЛЯ ТАБЛИЦЫ ЧАТОВ (ОСНОВНАЯ СТРАНИЦА)
   ---------------------------------------- */

/* Сетка чатов */
.docs-table .doc-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    gap: 0 20px;
    margin: 0;
}

.doc-row {
    flex: 1 1 30%;
    max-width: calc(100% / 3 - 10px);
    display: flex;
    align-items: center;
    padding: 20px 24px;
    margin-bottom: 20px;
    background: #edf2f7;
    border: 1px solid #edf2f7;
    border-radius: 10px;
    transition: all 0.2s ease;
    animation: fadeInUp 0.4s ease forwards;
    animation-delay: calc(var(--index, 0) * 0.05s);
}

.doc-row:hover {
    background: #ffffff;
    transform: translateX(4px);
}

.doc-row:hover .doc-title-value {
    color: #007bff;
}

.doc-row.selected {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
}

/* Иконки чатов */
.doc-icon {
    margin-right: 16px;
}

.chatium-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    transition: all 0.2s ease;
}

.chatium-icon .fa-comment {
    font-size: 24px;
    color: #cccccc;
}

.logo .chatium-icon {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.doc-row:hover .chatium-icon {
    transform: scale(1.05);
}

.chatium-icon-text {
    font-size: 18px;
    font-weight: 600;
}

/* Содержимое чата */
.doc-content {
    flex: 1;
}

.doc-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
}

.doc-description {
    font-size: 13px;
    color: #718096;
    line-height: 1.5;
}

.doc-description-value {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Чекбоксы и кнопки сортировки */
.select-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 0 !important;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-checkbox:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.doc-toggle-btn {
    font-size: 20px !important;
    color: #a0aec0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.doc-toggle-btn:hover {
    color: #667eea;
}

.ui-sortable-handle {
    display: block !important;
}

/* Кнопка добавления чата */
.add-types-block {
    margin-bottom: 24px;
}

.add-types-wrapper {
    text-align: center;
}

.type-add-group {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: #007bff;
    border-radius: 50px !important;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.type-add-group .fa-comment {
    color: #fff !important;
}

.type-add-group:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.type-add-group .fa {
    font-size: 18px;
}

/* Кнопки редактирования */
.chatium-creator-styles .btn-save-row {
    padding: 8px 16px !important;
    margin-right: 8px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 13px !important;
    font-weight: 500;
    transition: all .3s;
}

.chatium-creator-styles .btn-save-row:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: #fff !important;
}

.chatium-creator-styles .btn-delete-row {
    padding: 7px 16px;
    background: #fff;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    color: #e53e3e;
    font-size: 13px;
    font-weight: 500;
}

.chatium-creator-styles .btn-delete-row:hover {
    background: #fff5f5;
    border-color: #fc8181;
}

/* Поля ввода */
.chatium-creator-styles .input-title,
.chatium-creator-styles .input-description {
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.chatium-creator-styles .input-title {
    margin-bottom: 12px;
    font-size: 14px;
}

.chatium-creator-styles .input-description {
    margin-bottom: 12px;
    font-size: 13px;
    resize: vertical;
}

.chatium-creator-styles .input-title:focus,
.chatium-creator-styles .input-description:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chatium-creator-styles .form-control {
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s;
}

.chatium-creator-styles .form-control:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Select2 стилизация */
.chatium-creator-styles .select2-container .select2-choice,
.chatium-creator-styles .select2-container-multi .select2-choices {
    min-height: 42px;
    padding: 4px 8px;
    background: white;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
}

.chatium-creator-styles .select2-container .select2-choice:hover,
.chatium-creator-styles .select2-container-multi .select2-choices:hover {
    border-color: #cbd5e1 !important;
}

/* Редактируемые поля */
.chatium-creator-styles .editable-item {
    padding: 4px 8px;
    margin: -4px -8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.chatium-creator-styles .editable-item:hover {
    background: #f8fafc;
}

/* ----------------------------------------
   АНИМАЦИИ
   ---------------------------------------- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.left-folder-docs-table .doc-row {
    animation: fadeSlideUp 0.3s ease forwards;
}

/* ----------------------------------------
   СКРОЛЛБАР
   ---------------------------------------- */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* ----------------------------------------
   АДАПТИВНОСТЬ
   ---------------------------------------- */

@media (max-width: 992px) {
    .chatium-page-body .in-folder-doc-wrapper {
        padding: 16px !important;
    }
    
    .folder-container {
        padding-left: 0 !important;
        margin-top: 20px !important;
    }
    
    .course-content {
        padding: 20px !important;
    }
    
    .chatium-head-block h1 {
        font-size: 24px;
    }
    
    .left-folder-docs-table {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .chatium-page-body .in-folder-doc-wrapper,
    .chatium-page-body .in-folder-doc-content {
        padding: 12px !important;
    }
    
    .doc-row {
        flex-wrap: wrap;
        padding: 16px;
    }
    
    .doc-sort {
        margin-bottom: 12px;
    }
    
    .doc-content {
        width: calc(100% - 80px);
    }
    
    .folder-menu {
        flex-direction: column;
        gap: 2px;
    }
    
    .folder-header-menu-item {
        text-align: center;
    }
    
    .chatium-icon {
        width: 40px;
        height: 40px;
    }
    
    .chatium-icon .fa-comment {
        font-size: 20px;
    }
    
    .chatium-icon-text {
        font-size: 14px;
    }
    
    .chatium-action-buttons {
        flex-direction: column;
    }
    
    .chatium-action-buttons .btn {
        text-align: center;
    }
    
    .access-radio {
        padding: 16px;
    }
    
    .access-params {
        margin-left: 20px;
        padding: 12px;
    }
    
    .btn-create-invite-link {
        width: 100%;
        margin-left: 0;
        margin-top: 12px;
    }
    
    .btn-success {
        width: 100%;
    }
}

/* ----------------------------------------
   ВСПОМОГАТЕЛЬНЫЕ СТИЛИ
   ---------------------------------------- */

.empty-state {
    padding: 60px 20px;
    text-align: center;
    color: #a0aec0;
}

.empty-state .fa {
    margin-bottom: 20px;
    font-size: 64px;
    opacity: 0.5;
}

.search-container {
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.row.buttons {
    margin: 0;
}

.for-edit {
    margin-top: 8px;
}

.btn-additional-settings-row {
    padding: 6px 12px;
    background: #f1f5f9;
    border: none;
    border-radius: 40px;
}

/* ========== СТИЛИ ДЛЯ БЛОКА ОБСУЖДЕНИЯ ========== */

.discussion-block {
    margin-top: 8px;
    margin-bottom: 4px;
    cursor: pointer;
    user-select: none;
    border-top: 1px solid #ccc;
}

.discussion-block-content {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 6px;
    padding: 10px 0px 4px;
    font-size: 13px;
    color: #3e9cec;
    font-weight: 500;
    
    transition: all 0.2s ease;
}

.discussion-block-content:hover {
    background-color: rgba(var(--tg-primary-color-rgb), 0.1);
    transform: translateX(2px);
}

.discussion-block-icon {
    font-size: 14px;
}

.discussion-block-text {
    font-weight: 500;
}

.discussion-block-arrow {
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.discussion-block-content:hover .discussion-block-arrow {
    transform: translateX(2px);
}

/* Темная тема */
.night .discussion-block-content {
    background-color: rgba(255, 255, 255, 0.08);
}

.night .discussion-block-content:hover {
    background-color: rgba(62, 156, 236, 0.2);
}
/* ------------- 
content finish - chats_iframe_styles
------------- */
