/* Test-specific styles */
.test-container {
    max-width: 800px;
    margin: 1rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.tests-container{
    max-width: 800px;
    margin: 1rem auto;
    padding: 2rem;

}
.test-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.test-header h1 {
    margin: 0 0 0.5rem 0;
    color: #333;
    font-size: 1.8rem;
}

.test-info {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    color: #666;
}
.questions-container.hide{
    display: none;
}
.chapter{
    margin-bottom: 1rem;
}

.question-card {
    margin-bottom: 1rem;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
}

.question-header {
    margin-bottom: 1rem;
}
.question-title{
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}
.question-title p{
    margin: 0;
}
.question-title > span{
    font-size: 1.2rem;
}

.question-number {
    font-weight: bold;
    color: #007bff;
    margin-right: 0.5rem;
}

.question-text {
    display: inline;
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.answer-options {
    margin-left: 1.5rem;
}

.option {
    margin-bottom: 0.5rem;
}

.option input[type="radio"] {
    margin-right: 0.5rem;
}

.option label {
    cursor: pointer;
    font-size: 1rem;
}

.fill-blank-input {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 0.5rem;
    box-sizing: border-box;
}

.test-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

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

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-submit {
    background-color: #28a745;
    color: white;
}

.btn:hover {
    opacity: 0.9;
}

.progress-container {
    max-width: 800px;
    margin: 1rem auto;
    padding: 0 2rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress {
    height: 100%;
    background-color: #007bff;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.timer {
    font-family: monospace;
    font-size: 1.1rem;
    color: #007bff;
}
.test-respondent {
    display: flex;
    flex-flow: column nowrap;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.test-respondent > div {
    display: flex;
    flex-flow: column nowrap;
    gap: 1rem;
    margin-bottom: 0.2rem
}
.test-respondent > div input{
    border: none;
    background-color: #f4f4f4;
    border-radius: 10px;
    padding: 1rem;
    max-width: 40%;
}
.test-scoring .scoring{
    display: flex;
    flex-flow: column nowrap;
    gap: 1rem;
}
.test-scoring .result-value{
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 1rem;
}
.test-results-description{
    padding: 2rem;
    /* background-color: #f1f1f1; */
    border-radius: 15px;
    box-shadow: 0 0 20px 0 #f1f1f1;
    margin: 2rem 0;
}
.chapter-audio{
    margin-bottom: 1.2rem;
}
.start-button{
    max-width: 40%;
}
.start-button button{
    padding: 1rem
}
.start-button button.hide{
    display: none;
}

.tests-container .test-link{
    border: 1px solid #ccc;
    padding: 2rem;
    display: block;
    margin: 2rem 0;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.5s;
}
.tests-container .test-link h2{
    margin: 0;
    padding: 0;
}
.tests-container .test-link:hover{
    box-shadow: 0 0 25px 4px #ddd;
}
.timer{
    position: sticky;
    top: 1rem;
    right: 1rem;
    border: 1px solid #ccc;
    box-shadow: 0 0 25px 3px #ddd;
    border-radius: 10px;
    z-index: 100;
    margin: 1rem 0;
    text-align: center;
    background-color: #fff;
}
.timer-value{
    color: var(--timer-color);
    font-size: 2rem;
    font-weight: bold;
    padding: 1rem;
}
.timer.hide{
    display: none;
}
/* Responsive design */
@media (max-width: 768px) {
    .test-container, .tests-container {
        margin: 1rem;
        padding: 1rem;
    }
    
    .test-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .test-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    .test-respondent > div input,
    .start-button{
        max-width: 100%;
    }
}