/* Exam-specific styles */
.exam-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.exam-sidebar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.exam-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f7fafc;
}

.info-item:last-child {
    border-bottom: none;
}

.label {
    color: #4a5568;
    font-weight: 500;
}

.value {
    color: #2d3748;
    font-weight: 600;
}

.progress-section {
    margin: 2rem 0;
}

.progress-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

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

.progress-fill {
    height: 100%;
    background: #667eea;
    width: 1.75%;
    transition: width 0.3s ease;
}

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

.navigation {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-btn {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.exam-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.question-container {
    margin-bottom: 2rem;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f7fafc;
}

.question-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #667eea;
}

.question-topic {
    font-size: 0.9rem;
    color: #4a5568;
    background: #f7fafc;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.question-text h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.option:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.option input[type="radio"] {
    margin-right: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
    color: #2d3748;
    line-height: 1.5;
}

.option input[type="radio"]:checked + .option-text {
    font-weight: 600;
}

.option:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: #f0f4ff;
}

.explanation {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
}

.explanation h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 1rem;
}

.explanation p {
    color: #0c4a6e;
    margin-bottom: 0.5rem;
}

.question-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.btn-outline {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #4a5568;
}

.btn-outline:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.exam-notice {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    padding: 0.75rem 0;
    margin-top: 2rem;
}

.exam-notice p {
    text-align: center;
    color: #0369a1;
    margin: 0;
    font-size: 0.9rem;
}

.exam-notice a {
    color: #0284c7;
    text-decoration: underline;
    font-weight: 500;
}

/* Demo message styles */
.demo-message {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.demo-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.demo-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.demo-content p {
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.demo-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.demo-actions .btn {
    flex: 1;
    max-width: 180px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .exam-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .exam-sidebar {
        position: static;
        order: 2;
    }
    
    .exam-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .exam-content {
        padding: 1.5rem;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .question-actions {
        flex-direction: column;
    }
    
    .demo-actions {
        flex-direction: column;
    }
    
    .demo-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}
