/* IQ Test Simple CSS - Based on Depression Test Pattern */

/* 우울증 검사와 동일한 스타일 적용 */
.timer {
    color: #dc3545;
    font-weight: 600;
    font-size: 1rem;
}

#question-counter, #question-counter-bottom {
    color: #6c757d;
    font-weight: 500;
    font-size: 1rem;
}

#question-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: #495057;
    line-height: 1.5;
}

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

.form-check {
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.form-check:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.form-check-input:checked + .form-check-label {
    color: #0d6efd;
    font-weight: 500;
}

.form-check:has(.form-check-input:checked) {
    background-color: #e7f1ff;
    border-color: #0d6efd;
}

.form-check-label {
    cursor: pointer;
    width: 100%;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.progress {
    height: 0.5rem;
    border-radius: 0.375rem;
}

.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
}

.btn:disabled {
    opacity: 0.65;
}

/* 결과 화면 스타일 */
.result-score .display-4 {
    color: #0d6efd;
    font-weight: 700;
}

.alert {
    border-radius: 0.5rem;
}

.alert-success {
    background-color: #d1edff;
    border-color: #0d6efd;
    color: #084298;
}

.alert-info {
    background-color: #e2f4ff;
    border-color: #31d2f2;
    color: #055160;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #721c24;
}

/* 카테고리 결과 */
.category-result {
    margin-bottom: 1rem;
}

.category-result .progress {
    height: 0.5rem;
    margin-top: 0.25rem;
}

.category-result .progress-bar {
    background-color: #0dcaf0;
}

/* 반응형 */
@media (max-width: 768px) {
    #question-counter-bottom {
        display: none !important;
    }
    
    .form-check {
        padding: 0.5rem 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    .form-check-label {
        font-size: 0.95rem;
    }
    
    #question-text {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.375rem 1rem;
        font-size: 0.9rem;
    }
}