/******** Telegram **********/
button#send_test_telegram_message:hover {
    background-color: #eceff0;
}
button#send_test_telegram_message {
    background-color: #0073aa;
    width: 35%;
    justify-content: center;
}

.telegram-channel-settings-wrapper {
    /* display: flex !Important; */
    flex-wrap: wrap; 
}

.telegram-channel-settings-wrapper .ai-content-wizard-setting {
    flex: 1 1 50%; /* Занимает половину пространства, но может сжиматься и растягиваться */
    min-width: 260px; /* Минимальная ширина для обеспечения читаемости */
    box-sizing: border-box;
}

.ai-content-wizard-setting-telegram-button {
    text-align: center;
    margin-top: 20px;
}





/********* Expert Mode ******/
.important-setting .switch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

#ai_content_wizard_enhanced_generation_quality:checked + .slider {
    background-image: linear-gradient(to right, #e5238f, #d20d0d);
}


.important-setting .switch input:focus + .slider {
    box-shadow: 0 0 1px #ff3b30;
}

#ai_content_wizard_enhanced_generation_quality:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}






/******** Training *******/
.ai-content-wizard-fields {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

    .ai-content-wizard-table td.url-cell {
        max-width: 150px; /* или любая другая ширина по вашему усмотрению */
        overflow-x: auto;
        white-space: nowrap;
    }
	

/******** Настройки основные *********/

.ai-content-wizard-main-settings {
    margin: 0 auto;  
}

.ai-content-wizard-setting {
    padding: 10px;
    border-bottom: 1px solid #eee; /* Легкая граница для визуального разделения настроек */
}

.ai-content-wizard-setting:last-child {
    /* border-bottom: none; */ /* Удаление границы у последнего элемента */
}

/* Стиль для настройки, содержащей чекбокс, определяем по наличию внутри .switch */
.ai-content-wizard-setting:has(.switch) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.ai-content-wizard-setting .switch {
    margin-right: 15px;
}

.ai-content-wizard-setting input[type="number"],
.ai-content-wizard-setting input[type="email"],
.ai-content-wizard-setting .button {
    flex: 1;
    padding: 5px 10px;
    margin-left: 20px; /* Отступ слева для четкости */
}

.ai-content-wizard-setting .button {
    background-color: #0073aa;
    color: #fff;
    border: none;
    cursor: pointer;
}

.ai-content-wizard-setting .button:hover {
    background-color: #005177;
}

.ai-content-wizard-email-settings + .ai-content-wizard-email-settings {
    margin-top: 20px; /* Визуальное разделение между блоками настроек */
}




.ai-content-wizard-setting label {
    white-space: nowrap; /* Предотвращаем перенос текста метки */
}

.ai-content-wizard-setting input[type="number"],
.ai-content-wizard-setting input[type="email"] {
    flex-grow: 2; /* Даем больше места полям ввода */
    margin-right: 10px; /* Небольшой отступ справа от поля ввода */
}

.ai-content-wizard-setting .button {
    flex-grow: 1;
}








/********* Настройки ползунков **********/
.ai-content-wizard-setting input[type="range"] {
    -webkit-appearance: none;
    width: 93%;
    height: 8px;
    border-radius: 5px;
    background: #e5df27; 
    outline: none;
    margin: 0;
}

.ai-content-wizard-setting input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff; /* Белый цвет ручки */
    border: 1px solid #ccc; /* Слегка заметная граница вокруг ручки */
    cursor: pointer;
}

.ai-content-wizard-setting input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 1px solid #ccc; /* Слегка заметная граница вокруг ручки */
    border-radius: 50%;
    background: #ffffff; /* Белый цвет ручки */
    cursor: pointer;
}




/*******настройки водяного знака**********/
.watermark-settings-container {
    display: flex;
    border: 1px solid #ddd;
    padding: 20px;
    margin-top: 20px;
}

.watermark-settings-column {
    flex: 1;
    padding: 10px;
}


.watermark-preview-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Пример для соотношения сторон 16:9, но это будет динамически обновляться JS */
    background-size: cover;
    background-position: center center;
}

div#watermark_image_preview {
    margin-top: 15px;
    border: 1px solid;
    width: 100%;
    text-align: center;
    border-radius: 12px;
    max-height: 150px;
    padding: 5px;
}

.watermark-position-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-top: 10px;
}

.position-option {
    width: 30px;
    height: 30px;
    border: 1px solid #ccc;
    cursor: pointer;
}

.position-option.selected {
    background-color: #0073aa;
}

.ai-content-wizard-beta-badge {
    background-color: #ff0000;
    color: #ffffff;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 4px;
    margin-left: 5px;
    display: inline;
    vertical-align: middle;
}





/******Содержание статьи**********/
.custom-toc ol {
    list-style-type: decimal;
    margin-left: 20px;
}

.custom-toc li.toc-level-2 {
    margin-left: 20px;
}

.custom-toc li.toc-level-3 {
    margin-left: 40px;
}




/*help popaup****/
.help-popup {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.help-popup-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 500px;
    text-align: center;
}



/*****табы настрйоки*****/
/***** Табы настройки *****/
.ai-content-wizard-tabs .tabs {
    display: flex;
    flex-wrap: wrap; /* Адаптивность: перенос табов на новую строку при нехватке места */
    gap: 8px; /* Расстояние между табами */
    /* background: #fff; */
    padding: 5px 10px;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
	border: 2px solid #e0e0e0;
}

.ai-content-wizard-tabs .tabs .tab-link {
    display: flex;
    align-items: center;
    padding: 10px 16px; /* Уменьшенный отступ для компактности */
    border: 2px solid #e0e0e0;
    background: #f8f9fa;
    color: #555;
    cursor: pointer;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    font-size: 14px; /* Уменьшенный шрифт для компактности */
    font-weight: 500;
    white-space: nowrap; /* Текст в одну строку */
}

.ai-content-wizard-tabs .tabs .tab-link .tab-icon {
    margin-right: 6px; /* Отступ между иконкой и текстом */
    flex-shrink: 0; /* Иконка не сжимается */
}

.ai-content-wizard-tabs .tabs .tab-link:hover {
    background: #f0f2f5;
    border-color: #b0b0b0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    color: #333;
}

.ai-content-wizard-tabs .tabs .tab-link:hover .tab-icon {
    stroke: #333;
}

.ai-content-wizard-tabs .tabs .tab-link.active {
    background: #c2ffa0;
    color: #353535; /* Зеленый акцент вместо синего */
    border-color: #4CAF50;
    font-weight: 600;
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.2);
    z-index: 3;
}

.ai-content-wizard-tabs .tabs .tab-link.active .tab-icon {
    stroke: #353535;
}

.tab-content {
    display: none; /* Скрываем неактивный контент */
    /* background: #fff; */
    padding: 20px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 2px solid #e0e0e0;
    border-top: none;
    margin-top: -2px;
    position: relative;
    z-index: 1;
}

.tab-content.active {
    display: block;
    animation: slideIn 0.3s ease-in-out;
}

/* Анимации */
.ai-content-wizard-tabs .tabs .tab-link.active {
    animation: tabActive 0.3s ease-in-out;
}

@keyframes tabActive {
    from { transform: scale(1); background: #f5f7fa; border-color: #e0e0e0; }
    to { transform: scale(1.02); background: #fff; border-color: #4CAF50; }
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .ai-content-wizard-tabs .tabs {
        gap: 4px; /* Уменьшаем расстояние между табами */
    }
    .ai-content-wizard-tabs .tabs .tab-link {
        padding: 8px 12px; /* Еще меньше отступов */
        font-size: 13px; /* Уменьшаем шрифт */
    }
}

@media (max-width: 480px) {
    .ai-content-wizard-tabs .tabs .tab-link {
        padding: 6px 10px;
        font-size: 12px;
    }
    .ai-content-wizard-tabs .tabs .tab-link .tab-icon {
        width: 14px;
        height: 14px; /* Уменьшаем иконки */
    }
}

/************аккордион***********/
/* .category-settings-accordion h3 {
    background-color: #eee;
    border: 1px solid #ddd;
    padding: 10px;
    cursor: pointer;
}

.category-settings-accordion div {
    padding: 10px;
    border: 1px solid #ddd;
}

.category-custom-settings {
    font-weight: bold;
    color: #FF0000; 
} */


/************ Аккордион ***********/
.category-settings-accordion h3 {
    background-color: #d0c424; /* Зеленый цвет фона */
    border: none;
    padding: 15px; /* Увеличенный отступ */
    cursor: pointer;
    color: #1f208b; 
    font-size: 16px; /* Увеличенный размер шрифта */
    transition: background-color 0.3s ease; /* Плавный эффект при наведении */
}

.category-settings-accordion h3:hover {
    background-color: #e6ac34; /* Светлее зеленый при наведении */
}

.category-settings-accordion .ui-accordion-content .category-custom-settings {
    padding: 15px;
    border-top: none; 
    background-color: #f9f9f9; 
    color: #333; 
} 

.category-custom-settings {
    font-weight: 800;
}

/* Стили для иконок аккордиона (если используются) */
.category-settings-accordion .ui-icon {
    color: #1f208b; /* Белый цвет иконок */
}

/* Обертка для ряда настроек */
.ai-content-wizard-setting-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin-bottom: 15px;
}

/* Стили для каждой настройки */
.ai-content-wizard-setting {
    flex-basis: calc(50% - 10px); /* Ширина каждой настройки - 50% от родителя минус отступ */
    margin-bottom: 15px;
}

/* Стили для содержимого аккордиона */
.ui-accordion-content {
    padding: 20px;
    background-color: #f9f9f9; /* Светлый фон */
    border: 1px solid #ddd; /* Граница */
}

/* Заголовки внутри аккордиона */
.ui-accordion-content h4 {
    color: #333;
    font-size: 18px;
    margin-bottom: 15px;
}

/* Обертка для настроек */
.ai-content-wizard-setting {
    margin-bottom: 15px;
}

/* Стили для меток и элементов форм */
.ai-content-wizard-setting label {
    display: inline-block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
    font-size: 18px;
    text-shadow: 7px 8px 15px rgba(0, 0, 0, 0.5);
}

.ai-content-wizard-setting input[type="text"],
.ai-content-wizard-setting select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; 
	max-width: 100%;
}

.ai-content-wizard-setting input[type="checkbox"] {
    margin-right: 5px;
}

/* Стили для кнопок внутри аккордиона */
.ai-content-wizard-setting button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ai-content-wizard-setting button:hover {
    background-color: #66BB6A;
}






/******попап подсказок на страницу настроек*/
.ai-content-wizard-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ai-content-wizard-popup {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
    max-width: 60%;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
}

.ai-content-wizard-popup h2 {
    font-size: 1.5em;
}

.ai-content-wizard-popup p {
    font-size: 1.2em;
}

.ai-content-wizard-popup .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.5em;
}


/********************Страница настроек******************/

/* Общие стили для страницы настроек */
.ai-content-wizard-settings {
    background: linear-gradient(135deg, #6ddb90 0%, #35a79c 100%);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    margin-top: 20px;
    margin-right: 20px;
}

.ai-content-wizard-settings h1,
.ai-content-wizard-settings h2 {
    color: #fff;
    font-size: 2em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.ai-content-wizard-settings form {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 4px;
    color: #000;
    font-size: 18px;
    line-height: 25px;
}

/* Стили для блока настроек изображений */
.ai-content-wizard-image-settings, .ai-content-wizard-text-settings {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Две колонки одинаковой ширины */
    gap: 10px;
}

.ai-content-wizard-text-settings-additional_requests {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
}

.ai-content-wizard-image-settings h2,
.ai-content-wizard-text-settings h2 {
    grid-column: 1 / -1;
    color: #022b26;
    font-size: 20px;
	line-height: 22px;
    margin-bottom: 10px;
    text-align: left;
}

.ai-content-wizard-image-settings .ai-content-wizard-setting label,
.ai-content-wizard-text-settings .ai-content-wizard-setting label,
.ai-content-wizard-text-settings-additional_requests .ai-content-wizard-setting-wishes label  {
    font-size: 18px;
	line-height: 20px;
    margin-bottom: 10px;
    display: block; /* Чтобы метка была над полем */
    color: #171616;
    text-shadow: 5px 3px 15px rgba(0, 0, 0, 0.5);
	font-weight: 600;
}

.ai-content-wizard-image-settings .ai-content-wizard-setting select, .ai-content-wizard-image-settings .ai-content-wizard-setting input[type="text"],
.ai-content-wizard-text-settings .ai-content-wizard-setting select, .ai-content-wizard-text-settings .ai-content-wizard-setting input[type="text"] {
    width: calc(100% - 30px);
    padding: 5px;
    margin: 0;
    box-sizing: border-box;
    font-size: 18px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 50px;
    margin-bottom: 15px;
    max-width: 100%;
}

.ai-content-wizard-settings input[type="submit"] {
    background-color: #ffcc00;
    color: #000;
    padding: 5px 15px;
    font-size: 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    display: block;
    width: initial;
    text-align: center;
}

.ai-content-wizard-settings input[type="submit"]:hover {
    background-color: #e6b800;
}

/* Стили для адаптивного дизайна */
@media (max-width: 768px) {
    .ai-content-wizard-settings {
        margin-right: 0;
    }

    .ai-content-wizard-image-settings {
        grid-template-columns: 1fr; /* Все элементы в одну колонку на мобильных */
    }

    .ai-content-wizard-image-settings .ai-content-wizard-setting select,
    .ai-content-wizard-image-settings .ai-content-wizard-setting input[type="text"] {
        width: calc(100% - 30px); /* Адаптируем ширину под мобильные устройства */
    }
}

.ai-content-wizard-model-name {
    font-weight: bold;
    color: #f7f32a;
}

.ai-content-wizard-change-model-link {
    font-weight: normal;
    color: #000;
    font-size: 18px;
}

.ai-content-wizard-current-model {
    font-weight: normal;
    color: #f7f32a;
    font-size: 20px;
}




/* Стили для прелоадера */
#preload {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#preload > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #6ddb90 0%, #35a79c 100%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 40%; /* Увеличенный размер попапа */
}

/* #preload h2, */
#preload h3 {
    color: #fff;
    margin-bottom: 10px;
    font-size: 25px; /* Увеличенный размер шрифта */
	line-height: 30px;
}

#preload #subtitle {
    color: #454542;
    font-size: 18px;
    line-height: 25px;
}

#preload #tips {
    color: #ffe200;
    font-style: italic;
    margin-bottom: 10px;
    font-size: 20px;
    padding-bottom: 10px;
    padding-top: 10px;
	line-height: 1.1;
}

#preload #timer {
    color: #fff;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

/* Стили для hi-tech прелоадера */
.ai-loader {
    position: relative;
    width: 80px;
    height: 20px;
    margin: 30px auto;
}

.ai-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #fff;
    color: #fff;
    animation: ai-dot-flashing 1s infinite alternate;
}

.ai-dot:nth-child(1) {
    left: 0px;
    animation-delay: 0s;
}

.ai-dot:nth-child(2) {
    left: 30px;
    animation-delay: 0.2s;
}

.ai-dot:nth-child(3) {
    right: 0px;
    animation-delay: 0.4s;
}

@keyframes ai-dot-flashing {
    0% { transform: scale(0.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Стили для кнопок после генерации */
#viewArticle, #closePreload {
    display: inline-block;
    width: 50%;
    font-size: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    margin: 10px 0; /* Добавляем отступы для лучшего вида */
}

/* Стили для наведения на кнопки */
#viewArticle:hover, #closePreload:hover {
    background-color: #45a049;
}


.ai-content-wizard-reset-all button {
    background-color: #ff4d4d; /* Красный цвет фона */
    color: white; /* Белый цвет текста */
    border: none; /* Убрать границу */
    padding: 10px 20px; /* Отступы вокруг текста */
    border-radius: 5px; /* Скругленные углы */
    font-size: 16px; /* Размер шрифта */
    cursor: pointer; /* Курсор в виде указателя */
    transition: background-color 0.3s ease; /* Плавный переход для фона */
}

.ai-content-wizard-reset-all button:hover {
    background-color: #ff6666; /* Светлее красный при наведении */
}


.ai-wizard-button {
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    padding: 10px 20px;
    font-size: 16px;
    background: linear-gradient(270deg, #32a852, #3294a8);
    background-size: 400% 400%;
    animation: GradientAnimation 8s ease infinite;
    border: none;
    color: #fff;
    text-shadow: none;
    transition: all 0.4s ease;
}
.ai-wizard-button:hover {
    background: linear-gradient(270deg, #3294a8, #32a852);
    box-shadow: 0 4px 8px rgba(50, 152, 88, 0.5);
}
.ai-wizard-button .dashicons {
    margin-right: 8px;
}
@keyframes GradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}















/*************** Оглавление ******************/
/* Основной контейнер оглавления */
.custom-toc {
    max-height: 400px; /* Ограничение высоты */
    overflow-y: auto; /* Включение вертикального скроллинга */
    margin: 20px 0 !important; /* Переопределение инлайнового margin */
    padding: 15px !important; /* Переопределение инлайнового padding */
    background: linear-gradient(135deg, #ffffff, #f1f5f9); /* Градиентный фон */
    border: none !important; /* Убираем стандартную рамку */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Мягкая тень */
    border-radius: 8px !important; /* Скругленные углы */
    transition: all 0.3s ease; /* Плавный переход для эффектов */
}

/* Заголовок оглавления */
.toc-title {
    margin: 0 0 16px 0 !important; /* Переопределение инлайнового margin */
    padding-bottom: 8px !important; /* Переопределение padding-bottom */
    font-size: 1.5em !important; /* Чуть больше шрифт для акцента */
    font-weight: 700 !important; /* Более жирный шрифт */
    color: #1e3a8a !important; /* Современный синий оттенок */
    border-bottom: 2px solid #3b82f6 !important; /* Яркая линия снизу */
    letter-spacing: 0.5px; /* Легкий отступ между буквами */
}

/* Список оглавления */
.toc-list {
    padding-left: 0 !important; /* Убираем отступ слева */
    margin: 0 !important; /* Переопределение инлайнового margin */
}

/* Подсписки */
.toc-sublist {
    padding-left: 20px !important; /* Переопределение инлайнового padding */
    margin: 0 !important; /* Переопределение инлайнового margin */
}

/* Элементы списка */
.toc-item {
    margin: 8px 0 !important; /* Уменьшаем отступы для компактности */
    line-height: 1.6 !important; /* Переопределение line-height */
    position: relative; /* Для псевдоэлементов */
    transition: transform 0.2s ease, background 0.3s ease; /* Анимация */
}

/* Ссылки в оглавлении */
.toc-link {
    text-decoration: none !important; /* Переопределение инлайнового стиля */
    color: #475569 !important; /* Нейтральный серо-синий */
    padding-left: 12px !important; /* Переопределение padding-left */
    display: block; /* Для полной области клика */
    position: relative;
    transition: color 0.3s ease; /* Плавное изменение цвета */
}

/* Эффект при наведении на пункт */
.toc-item:hover {
    transform: translateX(5px); /* Легкий сдвиг вправо */
    background: rgba(59, 130, 246, 0.1); /* Легкий фон при наведении */
}

/* Эффект при наведении на ссылку */
.toc-link:hover {
    color: #3b82f6 !important; /* Яркий синий при наведении */
}

/* Псевдоэлемент для маркера */
.toc-link::before {
    content: "–"; /* Заменяем стандартный маркер */
    position: absolute;
    left: 0;
    color: #3b82f6; /* Цвет маркера */
    font-weight: 700;
    transition: transform 0.2s ease;
}

/* Анимация маркера при наведении */
.toc-item:hover .toc-link::before {
    transform: scale(1.2); /* Увеличение маркера */
}

/* Стилизация скроллбара для современных браузеров */
.custom-toc::-webkit-scrollbar {
    width: 8px;
}

.custom-toc::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.custom-toc::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.custom-toc::-webkit-scrollbar-thumb:hover {
    background: #1e3a8a;
}

/* Уровни вложенности - визуальное различие */
.toc-level-2 .toc-link {
    font-weight: 500;
}

.toc-level-3 .toc-link {
    font-weight: 400;
    color: #64748b !important; /* Более светлый оттенок для подуровней */
}

.toc-level-4 .toc-link {
    font-weight: 300;
    font-size: 0.95em;
}


