/* Общие стили для личного кабинета My User Dashboard */

/* Сброс базовых отступов */
body, h1, h2, h3, p, ul, li, a, form, input, label, button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Стили для навигационного меню */
.mud-dashboard-nav {
    background-color: #f8f8f8;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.mud-dashboard-nav a.mud-btn {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 15px;
    background-color: #6878D6;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.mud-dashboard-nav a.mud-btn:hover {
    background-color: #005177;
}

/* Стили для контента страниц личного кабинета */
.mud-content {
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 20px;
}

/* Заголовки внутри резюме (с эмодзи) */
.mud-content h3,
.mud-content h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3em;
    margin: 25px 0 10px;
    font-weight: 700;
    line-height: 1.4;
}

/* Эмодзи внутри заголовков */
.mud-content h3::before,
.mud-content h4::before {
    content: "";
    display: inline-block;
}

/* Дополнительно: для мобильных делаем заголовки чуть меньше */
@media (max-width: 767px) {
    .mud-content h3,
    .mud-content h4 {
        font-size: 1.1em;
        flex-wrap: wrap; /* Если не влезает — переносим */
    }
}

/* === Секции профиля === */
.mud-user-profile .mud-section {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.mud-user-profile .mud-section h4 {
    margin-bottom: 15px;
    font-size: 1.2em;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* === Селекты (категория и детализация) === */
.mud-user-profile select.mud-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.mud-user-profile select.mud-input:focus {
    outline: none;
    border-color: #6878D6;
    background-color: #fff;
}

/* === Чекбоксы 2FA и говорящие === */
.mud-user-profile input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    cursor: pointer;
}

.mud-user-profile label {
    font-size: 15px;
    color: #333;
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* === Адаптивность для мобильных === */
@media (max-width: 768px) {
    .mud-user-profile select.mud-input {
        font-size: 16px;
    }

    .mud-user-profile .mud-section h4 {
        font-size: 1.1em;
    }
}

/* Стили для картинки в форме регистрации и входа */
.mud-form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.mud-form-image {
    flex: 1;
    max-width: 50%;
}

.mud-form-image img {
    width: 100%;
    height: auto;
    display: block;
}

.mud-login-form, .mud-registration-form {
    flex: 1;
    max-width: 50%;
    padding: 20px;
}

@media (max-width: 768px) {
    .mud-form-container {
        flex-direction: column;
    }

    .mud-form-image {
        max-width: 100%;
    }

    .mud-login-form, .mud-registration-form {
        max-width: 100%;
    }
}

/* Стили для форм регистрации и входа */
.mud-login-form,
.mud-registration-form {
    max-width: 400px;
    margin: 0 auto 20px;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.mud-login-form p,
.mud-registration-form p {
    margin-bottom: 15px;
}

.mud-login-form label,
.mud-registration-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.mud-login-form input[type="text"],
.mud-login-form input[type="email"],
.mud-login-form input[type="password"],
.mud-registration-form input[type="text"],
.mud-registration-form input[type="email"],
.mud-registration-form input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.mud-login-form input[type="submit"],
.mud-registration-form input[type="submit"] {
    display: inline-block;
    padding: 10px 15px;
    background-color: #6878D6;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
}

.mud-login-form input[type="submit"]:hover,
.mud-registration-form input[type="submit"]:hover {
    background-color: #005177;
}

.mud-login-form input[type="checkbox"] {
    margin-right: 5px;
}

/* Стили для сообщений об ошибках и успехов */
.mud-error,
.mud-success {
    color: red;
    margin: 25px 0 15px 0; /* Интервал сверху 25px, снизу 15px */
    text-align: center;
}

.mud-success {
    color: green; /* Устанавливаем зеленый цвет для сообщений об успехе */
}

/* Строка "Запомнить меня"-Интервал-"Зарегистрироваться" */
.mud-spacing {
    display: inline-block;
    width: 20px;
}

.mud-registration-success {
    font-size: 25px;
}

.mud-user-login {
    margin-left: auto;
    margin-right: 40px;
}

.mud-user-login a {
    mix-blend-mode: difference;
    color: white;
    padding: 5px 10px;
}

.mud-register-link {
    color: #0073aa;
    font-weight: bold;
    text-decoration: underline;
    transition: color 0.3s ease-in-out;
}

.mud-register-link:hover {
    color: #005177;
    text-decoration: none;
}

.mud-logout-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: red;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    font-size: 14px;
}

.mud-logout-btn:hover {
    background-color: darkred;
}

.mud-event {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.mud-event h2 .mud-event-title {
    font-size: 0.6em !important; /* Принудительно уменьшаем размер */
}

/* Контейнер для кнопок действий */
.mud-event-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Унифицируем стиль для всех кнопок (все <a>, кроме <input>) */
.mud-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: #6878D6;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-height: 40px;
    text-transform: none;
    gap: 5px; /* Добавляем небольшой зазор между иконкой и текстом */
}

.mud-btn:hover {
    background-color: #005177;
}

/* Стили для ссылок внутри .mud-event (для кнопок, не заголовков) */
.mud-event a:not(.mud-event-title) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: #6878D6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s ease;
    min-height: 40px;
}

.mud-event a:not(.mud-event-title):hover {
    background-color: #005177; /* Тот же цвет, что и у .mud-btn:hover */
}

.mud-btn-delete {
    background-color: #ff4d4d !important; /* Красный цвет #ff0000 */
    padding: 10px; /* Уменьшаем горизонтальный padding, чтобы кнопка стала уже */
    max-width: 300px; /* Ограничиваем максимальную ширину */
}

.mud-btn-delete:hover {
    background-color: #cc0000 !important; /* Темнее при наведении */
}

/* Убираем отдельные стили для специфических кнопок, если они не нужны */
.mud-btn-edit,
.mud-btn-copy,
.mud-btn-back {
    /* Больше не задаем отдельные цвета или размеры */
}

/* Попап окно редактирования */
.mud-edit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.mud-edit-popup-content {
    position: relative;
    background: #fff;
    margin: 50px auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.mud-close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* Заголовок попапа */
.mud-edit-popup-content h3 {
    margin-bottom: 20px; /* Отступ снизу для заголовка */
}

/* Форма внутри попапа */
.mud-edit-popup-content form p {
    margin-bottom: 15px; /* Интервал между <p> элементами */
}

/* Метки и поля ввода */
.mud-edit-popup-content label {
    display: block;
    margin-bottom: 5px; /* Интервал между меткой и полем ввода */
    font-weight: bold;
}

.mud-edit-popup-content input[type="text"],
.mud-edit-popup-content input[type="email"],
.mud-edit-popup-content textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px; /* Интервал снизу для полей ввода */
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* Кнопка отправки */
.mud-edit-popup-content button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background-color: #6878D6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 14px;
    min-height: 40px;
    gap: 5px;
}

.mud-edit-popup-content button[type="submit"]:hover {
    background-color: #005177;
}

@media (max-width: 767px) {
    .mud-dashboard-nav a.mud-btn {
        display: block;        /* Переводим в блочный элемент */
        width: 80%;            /* «Резиновая» ширина для мобильных */
        max-width: 300px;      /* Ограничиваем максимальную ширину */
        margin: 10px auto;     /* Отступы сверху/снизу и центрирование */
        text-align: center;    /* Центрируем текст внутри кнопки */
    }
}

/* Добавляет интервал между надписью "Старый пароль:" и полем */
/* Обёртка строки: label + input идут в линию */
.mud-password-form .mud-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    max-width: 500px;
}

/* Метка: фикс ширина */
.mud-password-form .mud-row label {
    width: 140px;
    font-weight: bold;
    margin-right: 10px;
    text-align: right;
}

/* Поле: фикс ширина, не флекс */
.mud-password-form .mud-row input[type="password"] {
    width: 250px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #f9f9f9;
}

/* Кнопка сохранить пароль */
.mud-password-form input[type="submit"] {
    margin-top: 30px; /* было, например, 10px — стало больше */
}

/* Выравнивание чекбокса по полю */
.mud-password-form .mud-show-pass-checkbox {
    margin-left: 150px; /* выравниваем по полю */
    margin-top: -5px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
}


.mud-user-profile .mud-logout-btn {
    margin-top: 30px; /* Увеличивает интервал между кнопками */
}

@media (max-width: 767px) {
    .mud-share-buttons {
        width: 100% !important;
    }

    /* Вертикальное расположение кнопок в обоих блоках */
    .mud-event-actions,
    .mud-share-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px; /* Интервал между кнопками */
    }

    /* Выравнивание самих кнопок */
    .mud-event-actions .mud-btn,
    .mud-share-buttons .mud-btn {
        width: 80% !important;
        max-width: 300px !important;
        margin: 0 auto !important; /* Центрируем кнопки */
    }

    /* Кнопка удаления обычно вне этих контейнеров */
    .mud-btn-delete {
        display: block;
        width: 70%;
        max-width: 300px;
        margin: 20px auto 0; /* Отступ сверху 20px, авто-центрирование */
        text-align: center; /* Центрирование текста внутри кнопки */
    }
}

/* ... Стили сетки архива событий ... */
.mud-event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 15px;
}

.mud-event-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    border: 2px solid #dbdbdb; /* Добавляем серую рамку */
    cursor: pointer; /* Делаем карточку интерактивной */
}

.mud-event-card:hover {
    transform: translate(-5px, -5px); /* Смещение влево (-X) и вверх (-Y) */
    box-shadow: -5px 5px 10px rgba(0, 0, 0, 0.2);
    border-color: #b0b0b0; /* При наведении цвет рамки становится темнее */
}

.mud-event-card h3.mud-event-title {
    font-size: 1.1em !important; /* Вернем нормальный размер */
    font-weight: bold;
    margin: 5px 0;
    text-align: center;
    word-break: break-word;
}

.mud-event-card h3.mud-event-title a {
    color: inherit; /* Наследуем цвет от родителя */
    text-decoration: none; /* Убираем подчеркивание */
    display: block; /* Делаем весь заголовок кликабельным */
    padding: 5px 0;
}

.mud-event-tags {
    color: #555; /* Устанавливаем темно-серый цвет вместо фиолетового */
    font-size: 0.9em;
}

.mud-event-tags a {
    color: inherit; /* Убираем фиолетовый цвет */
    text-decoration: none;
}

/* Важные события (красная рамка) */
.mud-event-card.important {
    border: 2px solid #e74c3c; /* Красная рамка */
    background: #fff5f5; /* Легкий розоватый фон */
}

/* Эффект при наведении */
.mud-event-card.important:hover {
    border-color: #c0392b; /* Темно-красный */
    background: #ffe0e0; /* Чуть темнее фон */
}

.mud-event-meta {
    font-size: 0.9em;
    color: #6c757d;
}

/* ... Форма поиска архива событий ... */
/* Контейнер поиска и фильтрации */
.mud-search-filter-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

/* Форма поиска */
.mud-search-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Поле ввода поиска */
.mud-search-form input {
    width: 250px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

/* Кнопки поиска и фильтров */
.mud-search-form button,
.mud-filter-toggle {
    padding: 8px 15px;
    background-color: #6878D6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.mud-search-form button:hover,
.mud-filter-toggle:hover {
    background-color: #005177;
}

/* Кнопка раскрытия фильтров */
.mud-filter-toggle {
    background-color: #ffa500; /* Оранжевый цвет */
}

/* Фильтр-контейнер (скрыт по умолчанию) */
.mud-filter-container {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background-color: #f8f8f8;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

/* Форма выбора дат */
.mud-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

/* Поля ввода дат */
.mud-date-input {
    padding: 6px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Быстрые фильтры */
.mud-quick-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Кнопки быстрых фильтров */
.mud-quick-filters .mud-btn {
    background-color: #e0e0e0;
    color: #333;
}

.mud-quick-filters .mud-btn:hover {
    background-color: #bbb;
}

/* Адаптация для мобильных устройств */
@media (max-width: 767px) {
    .mud-search-filter-panel {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .mud-search-form {
        width: 100%;
        justify-content: center;
    }

    .mud-search-form input {
        width: 80%;
        max-width: 300px;
    }

    .mud-filter-container {
        width: 100%;
    }

    .mud-filter-form {
        flex-direction: column;
        gap: 5px;
    }

    .mud-quick-filters {
        flex-direction: column;
        align-items: center;
    }
}

/* Ввод проверочного кода #b0b0b0*/
.mud-2fa-container {
    max-width: 400px;
    margin: 30px auto;
    padding: 25px;
    border: 1px solid #ccc;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    text-align: center;
}

.mud-2fa-container h3 {
    margin-bottom: 20px;
    font-size: 1.3em;
}

.mud-2fa-container input[name="mud_2fa_code"] {
    width: 140px;
    padding: 12px;
    font-size: 1.6em;
    letter-spacing: 4px;
    text-align: center;
    font-weight: bold;
    border: 2px solid #dbdbdb;
    border-radius: 10px;
    margin: 0 auto 20px;
    display: block;
    background-color: #f8f9fa;
    color: #333;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
}

.mud-2fa-container input[name="mud_2fa_code"]:focus {
    outline: none;
    border-color: #b0b0b0;
    box-shadow: 0 0 6px rgba(0, 115, 170, 0.6);
}

.mud-2fa-container input[type="submit"] {
    background-color: #6878D6;
    color: #fff;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.mud-2fa-container input[type="submit"]:hover {
    background-color: #005177;
}

.mud-content ul {
    list-style-position: inside;  /* Переносим маркеры внутрь */
    padding-left: 1.2em;          /* Добавляем немного отступа для текста */
    margin-bottom: 1em;           /* Интервал снизу между списками */
}

.mud-content li {
    margin-bottom: 0.5em;         /* Интервал между элементами списка */
}

/*   Поиск AI   */
.mud-gpt-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #6878d6;
    color: #fff;
    padding: 12px 16px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
}
.mud-gpt-popup {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 360px;
    max-height: 70vh;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 10000;
}
.mud-gpt-popup-header {
    background-color: #6878d6;
    color: #fff;
    padding: 12px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mud-gpt-chat-log {
    padding: 10px;
    flex-grow: 1;
    overflow-y: auto;
    background: #f9f9f9;
}
.mud-gpt-chat-log p {
    margin: 8px 0;
}
.mud-gpt-input-area {
    display: flex;
    border-top: 1px solid #ddd;
}
#mud-gpt-chat-input {
    flex: 1;
    padding: 10px;
    border: none;
    outline: none;
}
#mud-gpt-chat-send {
    padding: 0 16px;
    background: #6878d6;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
}

/* Поиск по событию */
.mud-event-gpt-block {
    margin-top: 30px;
    padding: 15px;
    border-top: 1px solid #ccc;
}

.mud-event-gpt-block input[type="text"] {
    width: 100%;
    max-width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 10px;
}

.mud-event-gpt-block button {
    padding: 10px 20px;
    background-color: #6878d6;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mud-event-gpt-block button:hover {
    background-color: #005177;
}

#mud-event-gpt-response {
    font-size: 15px;
    margin-top: 10px;
    color: #444;
}

/* Сдвигаем прокрутку на 120px вниз от верха */
/*#mud-ai-search-container {
    scroll-margin-top: 120px;
}*/

/* Поиск по событию */
#event-chat-container {
  max-width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  background: #fefefe;
  display: flex;
  flex-direction: column;
  height: 400px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#event-chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-chat-message {
  padding: 10px 14px;
  border-radius: 16px;
  max-width: 80%;
  line-height: 1.4;
  word-break: break-word;
  white-space: pre-wrap;
}

.event-chat-user {
  align-self: flex-end;
  background: #dcf8c6;
}

.event-chat-bot {
  align-self: flex-start;
  background: #eee;
}

#event-chat-input-block {
  display: flex;
  border-top: 1px solid #ccc;
  padding-top: 10px;
  margin-top: 10px;
}

#event-chat-input {
  flex-grow: 1;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

#event-chat-send {
  margin-left: 8px;
  padding: 0 16px;
  background: #4a8df8;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

#event-chat-send.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Песочные часы анимация */
.thinking {
  display: inline-block;
  animation: shake 1s infinite;
}

@keyframes shake {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-10deg); }
  100% { transform: rotate(0deg); }
}

/* Перенос кнопки "Удалить" и надпись чата поиска */
.mud-btn-delete.slim-delete {
    padding: 8px 12px;
    font-size: 13px;
    background-color: #ff4d4d !important;
}

.mud-btn-delete.slim-delete:hover {
    background-color: #cc0000 !important;
}

.mud-ai-hint {
    margin: 20px 0;
    padding: 15px;
    background-color: #eef2ff;
    border-left: 4px solid #6878d6;
    border-radius: 6px;
    font-size: 15px;
    color: #333;
}

/* Плавное сворачивание и разворачивание чата */
/* Скрыт по умолчанию, плавное раскрытие 0.5*/
.mud-ai-collapsible {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 1s ease-in-out;
}

/* Когда свернут — max-height: 0 */
.mud-ai-collapsible.collapsed {
  max-height: 0;
}


/* Стили чат транскрипта  #a8a8a8  #4a90e2  #eee */
.summary-transcript-toggle {
  margin-top: 20px;
}
.view-toggle {
  margin-bottom: 15px;
}
.view-toggle button {
  padding: 10px 20px;
  font-size: 15px;
  margin-right: 10px;
  border: none;
  background: #a8a8a8;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.3s;
}
.view-toggle button.active {
  background: #6878d6;
  color: #fff;
}
.toggle-view {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 10px;
  background: #fff;
}


.chat-transcript {
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: #fdfdfd;
  padding: 20px;
  border-radius: 10px;
  max-width: 1000px;
  margin: auto;
}
.speaker-block {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #ffffff;
  border-left: 5px solid #4a90e2;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.speaker-name {
  font-weight: bold;
  margin-bottom: 6px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.timestamp {
  font-weight: normal;
  font-size: 14px;
  color: #999;
  margin-left: 8px;
}
.speaker-text {
  white-space: pre-line;
}
.speaker-unknown    { border-left-color: #999999; }
.speaker-speaker_00 { border-left-color: #e57373; }
.speaker-speaker_01 { border-left-color: #64b5f6; }
.speaker-speaker_02 { border-left-color: #81c784; }
.speaker-speaker_03 { border-left-color: #ffb74d; }
.speaker-speaker_04 { border-left-color: #ba68c8; }
.speaker-speaker_05 { border-left-color: #4dd0e1; }

.scrollable-panel {
  max-height: 750px;
  overflow-y: auto;
}

/* ========================================== */
/* 👇 Новый стиль для стеклянной формы входа */
/* ========================================== */
.mud-login-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
    text-align: left;
}

.mud-login-form-glass {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mud-login-form-glass h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.mud-login-form-glass label {
    color: #f0f0f0;
    font-weight: 600;
    font-size: 14px;
}

.mud-login-form-glass input[type="text"],
.mud-login-form-glass input[type="email"],
.mud-login-form-glass input[type="password"] {
    padding: 10px;
    border-radius: 8px;
    border: none;
    outline: none;
    font-size: 14px;
    background-color: rgba(255,255,255,0.9);
    color: #333;
}

.mud-login-form-glass input[type="submit"] {
    background-color: #ffffff;
    color: #111;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mud-login-form-glass input[type="submit"]:hover {
    background-color: #23a6d5;
    color: #fff;
}

.mud-login-form-glass input[type="checkbox"] {
    margin-right: 8px;
}

.mud-login-links {
  color: white; /* или другой контрастный цвет, например: #f0f0f0 */
  text-align: center;
  font-size: 14px;
}

.mud-login-links a {
  color: #ffffff; /* цвет ссылки */
  text-decoration: underline;
}

.mud-login-links a:hover {
  color: #ffd700;
}


/* Стиль сообщения Вы уже вошли в систему */
/*.mud-login-box {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90vh;
  text-align: center;
}

.mud-login-box-content p {
  font-size: 24px;
  color: white;
  margin-bottom: 20px;
  font-weight: 200;
}*/

.mud-login-box {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* Центрирует по вертикали */
  text-align: center;
  background: none; /* Убираем фон отсюда */
}

.mud-login-box-content {
  background: rgba(255, 255, 255, 0.1); /* Полупрозрачный блок */
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 30px 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
}

.mud-login-box-content p {
  font-size: 24px;
  color: white;
  margin-bottom: 20px;
  font-weight: 200;
}


/* Кнопка в стиле стекла */
.glass3button {
  padding: 12px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease-in-out;
}

.glass3button:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  transform: scale(1.03);
}

/* Стили выводимого сообщения */
.mud-login-notice-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh; /* или 100vh - header */
  padding: 20px;
}

.mud-login-notice {
  max-width: 600px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 25px 30px;
  text-align: center;
  color: #f0f0f0;
  font-size: 16px;
  line-height: 1.6;
}

.mud-login-notice a {
  color: #6ab0ff;
  font-weight: bold;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.mud-login-notice a:hover {
  color: #fff;
  text-shadow: 0 0 5px #6ab0ff;
}


