/* Стили квиза и вопросов */
.quiz-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin: 0 8px 8px;
    position: relative;
}

.question-scrollable {
    flex: 1;
    overflow: hidden;
    padding: 12px;
    display: flex;
    flex-direction: column;
}

.navigation-sticky {
    padding: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(108, 92, 231, 0.3);
    width: 100%;
    max-width: 200px;
}

.btn:active {
    transform: scale(0.98);
}

.question-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.question-number {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 4px;
    opacity: 0.8;
    flex-shrink: 0;
}

#question-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text-color);
    flex-shrink: 0;
}

.options-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    padding-bottom: 8px;
}

#answer-input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 8px;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.submit-btn:active {
    transform: scale(0.98);
}

.explanation-container {
    background: rgba(108, 92, 231, 0.05);
    border-radius: 10px;
    padding: 10px;
    margin: 0 8px 8px;
    font-size: 0.8rem;
    line-height: 1.4;
    border-left: 3px solid var(--primary-color);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.explanation-container.show {
    opacity: 1;
    max-height: 150px;
}

.hidden {
    display: none !important;
}

@media (max-width: 480px) {
    #question-text {
        font-size: 1rem;
    }
    
    #answer-input, .submit-btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .explanation-container {
        font-size: 0.7rem;
        padding: 8px;
    }
}

@media (max-height: 600px) {
    .question-scrollable {
        padding: 6px;
    }
    
    .btn {
        padding: 6px 10px;
    }
}