/* test-styles.css — изолированные стили для тестов */

.test-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 700px;
    margin: 0 auto; /* центрирование внутри main-content */
}

.test-container h1 {
    color: #022E5B;
    margin-bottom: 20px;
    font-size: 1.8rem;
    border-bottom: 2px solid #DAEAFF;
    padding-bottom: 10px;
}

.test-container .question {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
    border-left: 3px solid #499BED;
    padding-left: 12px;
}

.test-container .question:last-child {
    border-bottom: none;
}

.test-container .question-text {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
}

.test-container .options-container {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.test-container .option-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.test-container .option-number {
    font-weight: bold;
    margin-right: 5px;
    color: #022E5B;
}

.test-container .answer-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #DAEAFF;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.test-container .answer-input:focus {
    border-color: #499BED;
    outline: none;
}

.test-container .answer-input.correct {
    border-color: #4CAF50;
    background-color: #e7f7e7;
}

.test-container .answer-input.incorrect {
    border-color: #f44336;
    background-color: #fdeaea;
}

.test-container .answer-input.answered {
    background-color: #f9f9f9;
    border-color: #cccccc;
    cursor: not-allowed;
}

.test-container .chemical-formula {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.test-container .controls {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eaeaea;
}

.test-container .btn {
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    transform: scale(1);
}

.test-container .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.test-container .btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.test-container .btn-answer {
    background-color: #022E5B;
}

.test-container .btn-answer:hover {
    background-color: #031725;
}

.test-container .btn-next {
    background-color: #4CAF50;
}

.test-container .btn-next:hover {
    background-color: #388E3C;
}

.test-container .question-counter {
    color: #499BED;
    font-weight: 600;
    font-size: 0.95rem;
}

.test-container .progress-bar {
    height: 4px;
    background-color: #DAEAFF;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.test-container .progress {
    height: 100%;
    background-color: #499BED;
    width: 0%;
    transition: width 0.3s ease;
}

.test-container .question-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 15px 0 20px;
    flex-wrap: wrap;
}

.test-container .indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: none;
    border: 2px solid #DAEAFF;
    position: relative;
}

.test-container .indicator.current {
    border-color: #499BED;
    transform: scale(1.15);
    z-index: 1;
}

.test-container .indicator.answered {
    border-color: #499BED;
}

.test-container .indicator.correct {
    border-color: #499BED;
    background-color: white;
}

.test-container .indicator.incorrect {
    border-color: #cccccc;
    background-color: white;
}

.test-container .indicator.unanswered {
    border-color: #DAEAFF;
    color: #7a9bb8;
}

.test-container .indicator-number {
    font-size: 0.8rem;
    font-weight: 700;
    color: #022E5B;
}

.test-container .indicator.unanswered .indicator-number {
    color: #7a9bb8;
}

.test-container .indicator-status {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: bold;
    border: 1px solid white;
    display: none;
}

.test-container .indicator.answered .indicator-status {
    display: none;
}

.test-container .indicator.correct .indicator-status {
    display: flex;
    background-color: #4CAF50;
    color: white;
}

.test-container .indicator.incorrect .indicator-status {
    display: flex;
    background-color: #f44336;
    color: white;
}

.test-container .explanation {
    margin-top: 10px;
    padding: 12px;
    background-color: #f9f9f9;
    border-left: 3px solid #499BED;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.4;
    display: none;
}

.test-container .explanation.show {
    display: block;
}

.test-container .explanation-title {
    font-weight: 600;
    color: #022E5B;
    margin-bottom: 5px;
}

.test-container .explanation-content {
    color: #555;
}

.test-container .correct-answer {
    margin-top: 10px;
    padding: 10px;
    background-color: #e7f7e7;
    border-radius: 4px;
    font-weight: 600;
    color: #2d6b2d;
    display: none;
}

.test-container .correct-answer.show {
    display: block;
}

@media (max-width: 768px) {
    .test-container .controls {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .test-container .btn {
        width: 100%;
        padding: 14px;
    }
    
    .test-container .indicator {
        width: 26px;
        height: 26px;
    }
    
    .test-container .indicator.current {
        transform: scale(1.15);
    }
    
    .test-container .question-indicators {
        gap: 5px;
    }
    
    .test-container .indicator-status {
        width: 14px;
        height: 14px;
        font-size: 0.5rem;
        top: -3px;
        right: -3px;
    }
}

/* ===== УБИРАЕМ ВЫДЕЛЕНИЕ У ВАРИАНТОВ ОТВЕТОВ ===== */
/* Убираем фоны, границы и отступы у контейнера варианта */
.test-container .option-item {
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0;
    margin: 2px 0;
}

/* Убираем выделение у самой химической формулы внутри варианта */
.test-container .option-item .chemical-formula {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-left: none !important;
    /* при необходимости можно вернуть обычное начертание */
    font-weight: normal;
    color: #022E5B;
}