
/* --- Test Page Specific Styles --- */

.test-section {
    padding: 60px 0;
}

.test-header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.test-intro {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* Progress Bar */
.progress-bar-container {
    background: rgba(30, 41, 59, 0.5); /* Darker track */
    border-radius: 50px;
    padding: 16px 24px;
    border: 1px solid var(--border-color);
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--primary-light);
    font-weight: 600;
}

.progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Questions List */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.question-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.question-card:hover, .question-card:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px -5px rgba(6, 182, 212, 0.15);
    transform: translateY(-2px);
}

.question-header {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.question-number {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-light);
    min-width: 30px;
}

.question-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.5;
}

/* Input Fields */
.answer-area {
    width: 100%;
    min-height: 100px;
    padding: 16px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.2s;
}

.answer-area:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(2, 6, 23, 0.8);
}

/* Radio Options */
.options-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.02);
}

.radio-label:hover {
    background: rgba(6, 182, 212, 0.05);
    border-color: var(--primary-light);
}

.radio-label input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s;
    background: transparent;
}

.radio-label input[type="radio"]:checked {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--accent-glow);
}

.radio-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-text {
    color: var(--text-main);
    font-size: 1rem;
}

/* Language Toggle Button */
.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--primary-light);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.lang-toggle:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Submit Button */
.form-actions {
    margin-top: 48px;
    text-align: center;
}

#submitBtn {
    padding: 16px 48px;
    font-size: 1.1rem;
    min-width: 200px;
}

/* --- History Page Specific Styles --- */

.history-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.history-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.1);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.history-meta {
    display: flex;
    gap: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.history-actions {
    display: flex;
    gap: 12px;
}

.btn-toggle-details, .btn-delete-record, .btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-toggle-details:hover, .btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-light);
    background: rgba(6, 182, 212, 0.05);
}

.btn-delete-record:hover {
    border-color: var(--danger-color);
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.05);
}

.history-details {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.history-qa {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--border-color);
}

.history-qa:last-child {
    border-bottom: none;
}

.qa-question {
    color: var(--primary-light);
    margin-bottom: 8px;
    font-size: 1rem;
}

.qa-answer {
    color: var(--text-main);
    font-size: 0.95rem;
}

.highlight {
    color: var(--success-color);
    font-weight: 600;
}

.history-empty {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
    font-size: 1.1rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px dashed var(--border-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .question-card {
        padding: 24px;
    }
    
    .question-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .lang-toggle {
        top: auto;
        bottom: 20px;
        right: 20px;
    }
    
    .history-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 1rem;
    }
    
    .history-header {
        align-items: flex-start;
        flex-direction: column;
    }
    
    .history-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
