/* Основной контейнер для теста */
#ajax-test-container {
    max-width: 1000px; /* Максимальная ширина контейнера */
    width: auto; /* Ширина по содержимому, если меньше max-width */
    margin: 0 auto;
    padding: 10px;
    border-radius: 8px;
    background-color: #f4f4f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Заголовок */
#ajax-test-container h1 {
    text-align: center;
    color: #333;
}

/* Кнопка "Начать тест" */
#start-test {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

#start-test:hover {
    background-color: #0056b3;
}

/* Контейнер для вопроса */
.test-content {
    margin-top: 20px;
}

/* Вопрос и поле для ответа */
.test-content p {
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: normal;
    color: #333;
}

.test-content input[type="text"] {
    width: 100%;
    padding: 12px;
    font-size: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.test-content button {
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 5px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
}

.test-content button:hover {
    background-color: #218838;
}

/* Пагинация */
.pagination-buttons {
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px; /* Равномерные отступы между кнопками */
}

/* Кнопки пагинации */
.pagination-btn {
    background-color: #f0f0f0;
    border: 1px solid #ccc !important;
    padding: 0 !important; /* Убираем внутренние отступы */
    font-size: 14px !important;  /* Уменьшаем шрифт */
    border-radius: 5px !important;
    cursor: pointer;
    margin: 0 5px !important;
    white-space: nowrap !important; /* Запрещаем перенос текста */
    aspect-ratio: 1 / 3;  /* Устанавливаем соотношение сторон (ширина/высота) 1:2 */
    width: 30px !important;  /* Фиксированная ширина */
    height: 40px !important; /* Высота в 2 раза больше ширины */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Активная кнопка */
.pagination-btn.active {
    background-color: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
}

/* Кнопка при наведении */
.pagination-btn:hover {
    background-color: #0056b3 !important;
    color: white !important;
}

/* Медиазапрос для мобильных экранов */
@media (max-width: 600px) {
    .pagination-btn {
        font-size: 12px !important; /* Еще уменьшаем шрифт */
        width: 30px !important;     /* Уменьшаем ширину кнопки */
        height: 60px !important;    /* Высота в 2 раза больше ширины */
    }
}

/* Медиазапрос для экрана до 400px (очень узкие экраны) */
@media (max-width: 400px) {
    .pagination-btn {
        font-size: 10px !important; /* Уменьшаем шрифт еще больше */
        width: 25px !important;     /* Уменьшаем ширину кнопки */
        height: 50px !important;    /* Высота в 2 раза больше ширины */
    }
}



/* Результаты */
.test-results {
    margin-top: 30px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.test-result {
    margin-bottom: 20px;
}

.test-result p {
    font-size: 16px;
    margin: 5px 0;
    color: #555;
}

.test-result p strong {
    color: #333;
}

.test-result p:last-child {
    font-weight: bold;
}

.test-result p:contains('Не верно') {
    color: red;
}

.test-result p:contains('Верно') {
    color: green;
}
.user-statistics-table {
    width: 100%;
    border-collapse: collapse; /* Убираем промежутки между ячейками */
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

.user-statistics-table th, .user-statistics-table td {
    padding: 8px 12px; /* Небольшие отступы внутри ячеек */
    text-align: center; /* Выравнивание по левому краю */
    border: 1px solid #000000; /* Граница между ячейками */
    white-space: nowrap; /* Запрещаем перенос текста */
    overflow: hidden; /* Прячем лишний текст */
    text-overflow: ellipsis; /* Добавляем троеточие, если текст не помещается */
}

.user-statistics-table th {
    background-color: #dd3333; /* Цвет фона заголовков */
    font-weight: bold; /* Полужирный шрифт для заголовков */
}

.user-statistics-table tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Чередуем цвет строк */
}

.user-statistics-table tbody tr:hover {
    background-color: #f1f1f1; /* Цвет строки при наведении */
}


/* Стили для строк с попытками */
.attempts-details {
    background-color: #f9f9f9;
}

.attempts-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
	
}

.attempts-table th,
.attempts-table td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
	text-align: center;
}

.attempts-table th {
    background-color: #dd3333;
}

.attempts-table td {
    background-color: #fafafa;
}

/* Стиль для кнопки раскрытия */
.toggle-attempts {
    color: #0073aa;
    text-decoration: none;
    font-weight: bold;
}

.toggle-attempts:hover {
    color: #005177;
}

/* Стили для пустых строк, чтобы сделать их менее заметными */
.test-row td {
    font-weight: bold;
}

/* Респонсивность */
@media (max-width: 768px) {
    .user-statistics-table,
    .attempts-table {
        font-size: 14px;
    }

    .user-statistics-table th,
    .user-statistics-table td,
    .attempts-table th,
    .attempts-table td {
        padding: 8px;
    }
}
.test-results {
    margin-top: 20px;
}

.test-result-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.test-result-card .card-header {
    background-color: #f7f7f7;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
}

.test-result-card .card-body {
    padding: 15px;
}

.card-correct {
    border-left: 5px solid #28a745; /* Зелёный цвет для верных */
}

.card-incorrect {
    border-left: 5px solid #dc3545; /* Красный цвет для неверных */
}

.correct {
    color: #28a745; /* Зелёный цвет текста для верного ответа */
}

.incorrect {
    color: #dc3545; /* Красный цвет текста для неверного ответа */
}
.question-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.question-text {
    display: inline;
    font-size: 16px;
}

.dialogue-answer, .inline-answer {
    display: inline-block;
    width: 20ch; /* Ширина */
    height: 24px; /* Устанавливаем фиксированную высоту */
    font-size: 16px; /* Размер шрифта */
    padding: 0px; /* Отступы */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
}

.next-button {
    padding: 10px 20px; /* Размер кнопки */
    font-size: 16px; /* Размер шрифта кнопки */
}

.button-container {
    margin-top: 20px; /* Отступ сверху для кнопки */
    text-align: center; /* Центрируем кнопку */
}

.question-description {
    margin-bottom: 1em;
    font-size: 1.1em;
    line-height: 1.5;
}

.pagination-btn.answered {
    background-color: rgb(244, 215, 0);
    color: rgb(0, 0, 0);
}

.pagination-btn.active {
    background-color: #007bff;
    color: white;
}

/* Отступ между textarea и кнопкой "Сохранить и далее" */
.string-answer {
    margin-bottom: 15px; /* Устанавливаем отступ снизу для textarea */
}

/* Можно настроить кнопку */
.save-button {
    margin-top: 10px; /* Отступ сверху для кнопки */
}

.answer-option {
    display: block; /* Обеспечиваем, чтобы метка была на новой строке */
    padding-left: 20px; /* Отступ слева для текста и радио-кнопки */
}

/* Контейнер для пагинации */
.pagination-container {
    margin: 10px auto;
    padding: 10px;
    background-color: #f7f7f7; /* Легкий фон для контейнера */
    border-radius: 8px; /* Округленные углы */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Легкая тень */
    width: fit-content; /* Ширина контейнера будет зависеть от содержимого */
}

