/* Минималистичный CSS Grid для таблицы планирования */
.title-planing {
    margin: 10px 0;
}

.table-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-flow: row dense;
}

.item {
    border: 1px solid black; /* Рамка вокруг каждого элемента */
    font-size: .9em; /* Размер шрифта */
    color: black; /* Цвет текста */
    padding: 3px; /* Внутренние отступы */
    text-align: center; /* Выравнивание текста по центру */
    display: flex; /* Активируем Flexbox */
    flex-direction: column; /* Направление расположения дочерних элементов вертикально */
    align-items: center; /* Центруем по горизонтали */
}

.text-orf {
    text-align: left;
}

.item-1, .item-2, .item-3, .item-4, .item-5 {
    background-color: rgb(47, 197, 33);
}

.item-6, .item-7, .item-8, .item-9, .item-10 {
    background-color: rgb(215, 54, 230);
}

.item-11, .item-12, .item-13, .item-14, .item-15 {
    background-color: rgb(255, 255, 0);
    width: 100%;
    height: 55px;
    padding: 7px;
}

.input-text {
    width: 100%;
    resize: vertical; /* Возможность изменять высоту руками пользователя */
    overflow-y: auto; /* Появляется прокрутка, если текста много */
    margin: 0 0;
}

.item-png {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.circle {
    width: 30px;      /* диаметр окружности */
    height: 30px;     /* делаем квадрат для будущей окружности */
    border-radius: 50%; /* преобразует прямоугольник в круг */
    display: flex;    /* центрирование содержимого */
    align-items: center; /* центровка по вертикали */
    justify-content: center; /* центровка по горизонтали */
    background-color: rgb(255, 255, 0); /* желтый фон */
    border: 1px solid black; /* тонкая черная обводка */
}

.text-orf-effects {
    font-weight: bold; /* Выделяем важное слово полужирным */
    text-decoration: underline; /* Подчеркивание текста */
}

.bold {
    font-weight: bold; /* Выделяем полужирным */
}

/* ---------------- контейнер для пунктограмм ------------------- */
.table-container-punktum {
    display: grid;
    grid-template-columns: 5fr 25fr 15fr 55fr; /* = 5% | 25% | 15% | 55% */
    grid-auto-flow: row dense;
    margin: 5px 0;
}

.item-punktum-1 {
    background-color: rgb(56, 238, 40);
}

.item-punktum-2 {
    background-color: rgb(243, 92, 112);
}

.item-punktum-3 {
    background-color: rgb(248, 248, 80);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: start;
    gap: 5px;
}

.wrap-circle-punktum .item {
    border: none;
}

.circle-punktum {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #000;
}

.item-punktum-4 {
    height: 100%;
}

.input-text-punktum {
    height: 100%;
}


/* ---------------- стили для смайла ------------------- */
/* Минимальные отступы и естественный внешний вид смайлов */
.smiley-placeholder {
    width: 25px;
    display: inline-block;
    vertical-align: baseline; /* Вертикальное выравнивание по базовой линии текста */
    position: relative; /* Позиционирование относительное, чтобы можно было слегка подкорректировать расположение */
    margin: 0; /* Без лишних отступов */
    padding: 0; /* Без внутреннего заполнения */
    line-height: normal; /* Высота строки совпадает с обычным текстом */
    margin-right: 5px;
    margin-left: -1px;
}

.smiley-button {
    position: relative; /* Ключевое! Для правильного позиционирования выпадающего списка */
    display: inline-block; /* Чтобы не ломалась строка */
    vertical-align: baseline; /* Выравнивание по базовой линии текста */
    cursor: pointer;
}

/* Оформление смайлов */
.smiley-icon {
    background-color: transparent; /* Прозрачный фон */
    border: none; /* Без границ */
    padding: 0; /* Без отступов */
    width: 24px;
    height: 24px;
    display: inline-block; /* Расположение в одну линию с текстом */
    text-align: center; /* Центрирование иконки */
    line-height: 1.2; /* Однострочный режим */
    transition: color 0.3s ease; /* Анимация цвета */
    font-size: 1.2em; /* Размер шрифта соответствует тексту */
    cursor: pointer;
}

/* Стили списков вариантов ответов */
.practice-line {
    letter-spacing: 0.01em;
}

.smiley-options {
    display: none;
    position: absolute;
    /* Появляется ниже смайлика */
    /* top: 100%; */
    top: calc(100% + 5px); /* Отступ сверху */
    left: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
    min-width: 60px;
}

.smiley-options li {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

/* Серый фон — выбрано, но не проверено */
.smiley-icon.selected {
    background-color: #e9ecef; /* светло-серый */
    color: #495057;
    border-radius: 3px;
    padding: 0 2px;
}

/* Зелёный фон — правильный ответ */
.smiley-icon.correct {
    background-color: #d4edda;
    color: #155724;
}

/* Красный фон — неправильный ответ */
.smiley-icon.incorrect {
    background-color: #f8d7da;
    color: #721c24;
}

/* Прозрачность — при выборе */
.smiley-icon.selected {
    opacity: 0.5;
}

.smiley-options li:hover {
    background-color: #f0f0f0;
}

/* ------- задания к 6 классу -------- */
.orthogram-buttons {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0;
    max-width: 100%;
}


/* ------- задания к егэ -------- */
.block-task, .block-answer, .block-answer-still, .orthogram-buttons-container {
    background-color: #f0f0f0d2;
    border-radius: 5px;
    margin: 20px 0;
    padding: 5px;
}

.block-answer {
    min-height: 20px;
}

.block-planning {
    display: flex;
    align-items: center;
}

.block-planning-title {
    margin-right: 5px;
}

.block-planning-subtitle {
    display: flex;
    flex-wrap: wrap; /* Позволяет элементам переноситься на новую строку при необходимости */
    gap: 10px;
}

.planning-item {
/* Дополнительные стили для элементов */
    padding: 3px 10px;
    border: 1px solid #ff62ff;
    background-color: #f1fc8f;
    border-radius: 10px;
    transition: all 0.3s;
}

.planning-item:hover {
    background-color: #eaff2b;
}

.task-buttons {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 0;
    max-width: 100%;
}

.check-task {
    padding: 3px 5px;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
}

.check-task:hover {
    background-color: #e0e0e0;
}

.task-1-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sub-buttons {
    display: flex;
    gap: 8px;
}

.check-task-sub {
    font-size: 0.9em;
    padding: 4px 8px;
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    cursor: pointer;
}

/* .practice-text {
    white-space: pre-line;
    margin: 10px 0;
    font-size: 1.1em;
    line-height: 1.6;
} */

/* ------- Стилизация ответа нейроасситента -------- */

.practice-buttons {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.practice-buttons button {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

.advice-block {
    display: none;
    margin-top: 16px;
    padding: 12px;
    background-color: #f8f9fa;
    border-left: 4px solid #0d6efd;
    font-style: italic;
    border-radius: 0 4px 4px 0;
}


.green {
    background: rgb(170, 236, 170);
}